all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: autosave/backup file problem
Date: Sat, 16 Jun 2012 09:41:15 +0300	[thread overview]
Message-ID: <8362arg3n8.fsf@gnu.org> (raw)
In-Reply-To: <4FDAEDD7.3080706@yahoo.de>

> Date: Fri, 15 Jun 2012 10:09:59 +0200
> From: Jannis <bt_jannis@yahoo.de>
> 
> i have the problem that emacs creates
> 
> .#filename.txt
> 
> files in the directory file while working on a file. These files create 
> problems when I want to automatically create Software packages of the 
> parent folder.
> 
> Is there any way to tell emacs to create these files in a different 
> location?
> 
> 
> I have put the following in my .emacs file but it seems to not change 
> the behaviour of the above mentioned files:
> 
> 
> ;; Put autosave files (ie #foo#) and backup files (ie foo~) in ~/.emacs.d/.
> (custom-set-variables
>    '(auto-save-file-name-transforms '((".*" "~/.emacs.d/autosaves/\\1" t)))
>    '(backup-directory-alist '((".*" . "~/.emacs.d/backups/"))))

These are not backup or auto-save files.  These are lockfiles.  They
indicate that filename.txt is being edited by an Emacs session, so
that when another Emacs session (perhaps by another user) will visit
the same file, Emacs will warn that other user about the situation.

I don't understand what kind of problems these files could create (and
you didn't explain that).  But if you need to turn off creation of
lockfiles, set the variable create-lockfiles to a nil value.



  reply	other threads:[~2012-06-16  6:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-15  8:09 autosave/backup file problem Jannis
2012-06-16  6:41 ` Eli Zaretskii [this message]
     [not found] <mailman.2895.1339792377.855.help-gnu-emacs@gnu.org>
2012-06-15 20:52 ` Barry Margolin

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=8362arg3n8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.