GNU bug report logs - #8134
(Some special files were saved without asking)

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Mon, 28 Feb 2011 02:10:03 UTC

Severity: minor

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8134 in the body.
You can then email your comments to 8134 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8134; Package emacs. (Mon, 28 Feb 2011 02:10:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 28 Feb 2011 02:10:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: (Some special files were saved without asking)
Date: Mon, 28 Feb 2011 10:09:07 +0800
Encountered new message "(Some special files were saved without asking)".
Well at least in C-h e mention what they were.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8134; Package emacs. (Sat, 05 Mar 2011 11:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 8134 <at> debbugs.gnu.org (full text, mbox):

From: David Engster <deng <at> randomsample.de>
To: 8134 <at> debbugs.gnu.org
Cc: jidanni <at> jidanni.org
Subject: Re: bug#8134: (Some special files were saved without asking)
Date: Sat, 05 Mar 2011 12:33:56 +0100
'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)





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8134; Package emacs. (Sat, 05 Mar 2011 11:52:02 GMT) Full text and rfc822 format available.

Message #11 received at 8134 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: David Engster <deng <at> randomsample.de>
Cc: 8134 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#8134: (Some special files were saved without asking)
Date: Sat, 05 Mar 2011 12:50:54 +0100
David Engster <deng <at> randomsample.de> writes:

> --- 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))))

	    (setq some-automatic (cons (buffer-name) some-automatic))

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8134; Package emacs. (Sat, 05 Mar 2011 12:51:01 GMT) Full text and rfc822 format available.

Message #14 received at 8134 <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: schwab <at> linux-m68k.org
Cc: 8134 <at> debbugs.gnu.org, deng <at> randomsample.de
Subject: Re: bug#8134: (Some special files were saved without asking)
Date: Sat, 05 Mar 2011 20:20:22 +0800
Also I bet C-x C-x not asking if one wants to save gnus properly first, is related.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8134; Package emacs. (Sat, 05 Mar 2011 13:05:02 GMT) Full text and rfc822 format available.

Message #17 received at 8134 <at> debbugs.gnu.org (full text, mbox):

From: David Engster <deng <at> randomsample.de>
To: jidanni <at> jidanni.org
Cc: 8134 <at> debbugs.gnu.org, schwab <at> linux-m68k.org
Subject: Re: bug#8134: (Some special files were saved without asking)
Date: Sat, 05 Mar 2011 14:03:18 +0100
'jidanni' writes:
> Also I bet C-x C-x not asking if one wants to save gnus properly first, is related.

You mean C-x C-c.

Yes, it's the same issue, but that was a kludge anyway. Gnus didn't say
"Hey, I'm still running, you sure you want to exit Emacs?". Instead it
just happened to have a changed file open and asked if you wanted to
save .newsrc-dribble.

-David




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8134; Package emacs. (Sat, 05 Mar 2011 22:03:01 GMT) Full text and rfc822 format available.

Message #20 received at 8134 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: David Engster <deng <at> randomsample.de>
Cc: 8134 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#8134: (Some special files were saved without asking)
Date: Sat, 05 Mar 2011 14:38:06 -0500
David Engster <deng <at> randomsample.de> 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):

Committed, with some tweaks.  Thanks.




bug closed, send any further explanations to 8134 <at> debbugs.gnu.org and jidanni <at> jidanni.org Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Sat, 05 Mar 2011 22:03:05 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 03 Apr 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 81 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.