From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: autosave/backup file problem Date: Sat, 16 Jun 2012 09:41:15 +0300 Message-ID: <8362arg3n8.fsf@gnu.org> References: <4FDAEDD7.3080706@yahoo.de> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1339828935 2084 80.91.229.3 (16 Jun 2012 06:42:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2012 06:42:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 16 08:42:15 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sfmi5-0000xy-Nv for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Jun 2012 08:42:13 +0200 Original-Received: from localhost ([::1]:33359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sfmi5-0000ZR-ID for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Jun 2012 02:42:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sfmhu-0000Nf-Mk for help-gnu-emacs@gnu.org; Sat, 16 Jun 2012 02:42:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sfmhs-0005wX-Sj for help-gnu-emacs@gnu.org; Sat, 16 Jun 2012 02:42:02 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:42558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sfmhs-0005wC-K2 for help-gnu-emacs@gnu.org; Sat, 16 Jun 2012 02:42:00 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M5P00A006KCXK00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sat, 16 Jun 2012 09:41:12 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M5P00AWJ6KOOB60@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sat, 16 Jun 2012 09:41:12 +0300 (IDT) In-reply-to: <4FDAEDD7.3080706@yahoo.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85266 Archived-At: > Date: Fri, 15 Jun 2012 10:09:59 +0200 > From: Jannis > > 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.