[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8134: (Some special files were saved without asking)
From: |
David Engster |
Subject: |
bug#8134: (Some special files were saved without asking) |
Date: |
Sat, 05 Mar 2011 12:33:56 +0100 |
User-agent: |
Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) |
'jidanni' writes:
> Encountered new message "(Some special files were saved without asking)".
> Well at least in C-h e mention what they were.
I agree.
That you're suddenly seeing this message is due to a change in Gnus,
which now saves the .newsrc-dribble file without asking when you invoke
stuff like 'compile' and other functions which call `save-some-buffers'.
I'm proposing the following change (against trunk):
--- lisp/files.el 2011-03-05 08:48:52 +0000
+++ lisp/files.el 2011-03-05 11:03:02 +0000
@@ -4616,7 +4616,7 @@
;; That way the following code won't ask about them.
(with-current-buffer buffer
(when (and buffer-save-without-query (buffer-modified-p))
- (setq some-automatic t)
+ (setq some-automatic (append some-automatic (list (buffer-name))))
(save-buffer))))
;; Ask about those buffers that merit it,
;; and record the number thus saved.
@@ -4663,7 +4663,9 @@
(setq abbrevs-done t)))
(or queried (> files-done 0) abbrevs-done
(message (if some-automatic
- "(Some special files were saved without asking)"
+ (concat
+ "(The following special buffers were saved without
asking: "
+ (mapconcat 'identity some-automatic " ") ")")
"(No files need saving)"))))))
(defun not-modified (&optional arg)