all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Hansen <david.hansen@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Hot to prevent emacs from generating ".#xxxx" files?
Date: Sun, 31 Aug 2008 11:21:54 +0200	[thread overview]
Message-ID: <87zlmto7yl.fsf@localhorst.mine.nu> (raw)
In-Reply-To: fa69d4570808310201t634fd4eat79b247a1bbbe9237@mail.gmail.com

On Sun, 31 Aug 2008 17:01:55 +0800 s. ticket wrote:

>>> Because when emacs exits abnormally, it may leave a lot of ".#xxx" files.
>>> It may break some compiling as some compile tools just search all ".c" files
>>> in the directory and complain "can't open .#xxx.c" ;
>>
>> That's exactly why you want them.  After a crash you can M-x
>> recover-this-file and get you changes back.
> Yes. But it's better if I can put them in a special directory like
> backup files and auto-save files.

If such a file is present you have a far more serious problem, namely
potential data loss.  After you solved that (M-x recover-this-file) the
auto-save file will disappear automatically and the minor problem is
solved as well.

If you insist you can have a look how the tramp package works around
this.  AFAIK it doesn't use the remote directory for auto-save files, or
at least it can be configured to not do so.

David





      reply	other threads:[~2008-08-31  9:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-30 18:57 Hot to prevent emacs from generating ".#xxxx" files? gooood
2008-08-31  7:43 ` David Hansen
2008-08-31  8:37   ` s ticket
2008-08-31  8:41     ` David Hansen
2008-08-31  9:01       ` s ticket
2008-08-31  9:21         ` David Hansen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zlmto7yl.fsf@localhorst.mine.nu \
    --to=david.hansen@gmx.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.