bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: could you please help me with my problem


From: Colin Walters
Subject: Re: could you please help me with my problem
Date: 22 May 2001 13:20:39 -0400
User-agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.0.103

bildfell@astro.uwo.ca (Chris Bildfell) writes:

> not only does the auto-saved file "#filename#" appear but also another
> file
> called ".#filename -> bildfell@phobos.astro.uwo.ca.'some number':1"
> 
> The origin of this extra, unwanted file is puzzleing to me.

I believe this has been fixed for the next version of Emacs; here's
the relevant patch:

cd /usr/src/emacs-21.0.103/src/
diff -u /usr/src/emacs-20.7/src/filelock.c 
/usr/src/emacs-21.0.103/src/filelock.c
--- /usr/src/emacs-20.7/src/filelock.c  Tue May 16 07:02:19 2000
+++ /usr/src/emacs-21.0.103/src/filelock.c      Tue Oct 24 16:54:30 2000
@@ -632,17 +656,12 @@
   register Lisp_Object tail;
   register struct buffer *b;
 
-  for (tail = Vbuffer_alist; GC_CONSP (tail); tail = XCONS (tail)->cdr)
+  for (tail = Vbuffer_alist; GC_CONSP (tail); tail = XCDR (tail))
     {
-      b = XBUFFER (XCONS (XCONS (tail)->car)->cdr);
+      b = XBUFFER (XCDR (XCAR (tail)));
       if (STRINGP (b->file_truename) && BUF_SAVE_MODIFF (b) < BUF_MODIFF (b))
        {
-         register char *lfname;
-
-         MAKE_LOCK_NAME (lfname, b->file_truename);
-
-         if (current_lock_owner (0, lfname) == 2)
-           unlink (lfname);
+         unlock_file(b->file_truename);
        }
     }
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]