[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Emacs doesn't remove locks on modified buffers during save-buffers-kill-
Emacs doesn't remove locks on modified buffers during save-buffers-kill-emacs
24 Sep 2000 17:32:00 -0400
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
When using 'C-x C-c' to exit Emacs, when there are modified buffers,
but the user says "n" to the query about saving the buffer, the lock
on the file is not deleted before Emacs exits.
I am not sure if this is the intended behavior; the following patch
removes all lock files before `kill-emacs' in
--- emacs-20.7-old/lisp/files.el Sat Jul 8 18:03:58 2000
+++ emacs-20.7/lisp/files.el Sun Sep 24 17:24:46 2000
@@ -3322,7 +3322,11 @@
(yes-or-no-p "Active processes exist; kill them and exit
;; Query the user for other things, perhaps.
+ ;; unlock all buffers - we don't want to leave dead locks around
+ (progn (mapcar (function (lambda (buf) (with-current-buffer buf
;; We use /: as a prefix to "quote" a file name
;; so that magic file name handlers will not apply to it.
|[Prev in Thread]
||[Next in Thread]|
- Emacs doesn't remove locks on modified buffers during save-buffers-kill-emacs,
Colin Walters <=