GNU bug report logs - #8300
save-some-buffers no longer asks user about each one

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Sun, 20 Mar 2011 05:24:01 UTC

Severity: minor

Done: Glenn Morris <rgm <at> gnu.org>

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 8300 in the body.
You can then email your comments to 8300 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, ding <at> gnus.org, bug-gnu-emacs <at> gnu.org:
bug#8300; Package emacs. (Sun, 20 Mar 2011 05:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to ding <at> gnus.org, bug-gnu-emacs <at> gnu.org. (Sun, 20 Mar 2011 05:24:02 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: save-some-buffers no longer asks user about each one
Date: Sun, 20 Mar 2011 13:02:00 +0800
X-Debbugs-Cc: ding <at> gnus.org

Gentlemen,
   C-x s runs the command save-some-buffers, which is an interactive
   compiled Lisp function in `files.el'.

   It is bound to C-x s.

   (save-some-buffers &optional ARG PRED)

   Save some modified file-visiting buffers.  Asks user about each one.
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^

Not any more.
Try it.
You'll see "(Saved .newsrc-dribble)", even before asking.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8300; Package emacs. (Sun, 20 Mar 2011 10:12:02 GMT) Full text and rfc822 format available.

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

From: Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
To: jidanni <at> jidanni.org
Cc: 8300 <at> debbugs.gnu.org, ding <at> gnus.org
Subject: Re: bug#8300: save-some-buffers no longer asks user about each one
Date: Sun, 20 Mar 2011 11:11:13 +0100
2011/3/20  <jidanni <at> jidanni.org>:
> X-Debbugs-Cc: ding <at> gnus.org
>
> Gentlemen,
>   C-x s runs the command save-some-buffers, which is an interactive
>   compiled Lisp function in `files.el'.
>
>   It is bound to C-x s.
>
>   (save-some-buffers &optional ARG PRED)
>
>   Save some modified file-visiting buffers.  Asks user about each one.
>                                              ^^^^^^^^^^^^^^^^^^^^^^^^^
>                                              ^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Not any more.
> Try it.
> You'll see "(Saved .newsrc-dribble)", even before asking.
>

You're not passing ARG are you?

What version are you using? I cannot reproduce it on:

GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2011-03-07 on 3249CTO

-- 
Deniz Dogan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8300; Package emacs. (Sun, 20 Mar 2011 11:11:01 GMT) Full text and rfc822 format available.

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

From: David Engster <deng <at> randomsample.de>
To: Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
Cc: 8300 <at> debbugs.gnu.org, ding <at> gnus.org, jidanni <at> jidanni.org
Subject: Re: bug#8300: save-some-buffers no longer asks user about each one
Date: Sun, 20 Mar 2011 12:09:03 +0100
Deniz Dogan writes:
> 2011/3/20  <jidanni <at> jidanni.org>:
>> X-Debbugs-Cc: ding <at> gnus.org
>>
>> Gentlemen,
>>   C-x s runs the command save-some-buffers, which is an interactive
>>   compiled Lisp function in `files.el'.
>>
>>   It is bound to C-x s.
>>
>>   (save-some-buffers &optional ARG PRED)
>>
>>   Save some modified file-visiting buffers.  Asks user about each one.
>>                                              ^^^^^^^^^^^^^^^^^^^^^^^^^
>>                                              ^^^^^^^^^^^^^^^^^^^^^^^^^
>>
>> Not any more.
>> Try it.
>> You'll see "(Saved .newsrc-dribble)", even before asking.
>>
>
> You're not passing ARG are you?
>
> What version are you using? I cannot reproduce it on:

This is because Gnus now sets buffer-save-without-query for the dribble
file. This is desired behavior and hence only a documentation bug. The
doc-string for save-some-buffers should say something like

"Asking can be disabled for a buffer by setting the buffer-local
variable `buffer-save-without-query' to a non-nil value."

-David




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

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

From: fourquet.d <at> gmail.com (R. Fourquet)
To: Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
Cc: 8300 <at> debbugs.gnu.org, ding <at> gnus.org, jidanni <at> jidanni.org
Subject: Re: bug#8300: save-some-buffers no longer asks user about each one
Date: Sun, 20 Mar 2011 12:33:02 +0100
Deniz Dogan <deniz.a.m.dogan <at> gmail.com> writes:

>> Not any more.
>> Try it.
>> You'll see "(Saved .newsrc-dribble)", even before asking.
>
> You're not passing ARG are you?
>
> What version are you using? I cannot reproduce it on:
>
> GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2011-03-07 on 3249CTO

I can (partially) reproduce on the same version: save-some-buffers will
automatically save ".newsrc-dribble" if needed. But with my other
buffers, the behavior is as usual. So we can see the message "(Saved
.newsrc-dribble)" in the echo area only if there is no other buffer to
save (but it is always recorded in the *Message* buffer).




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8300; Package emacs. (Sun, 20 Mar 2011 11:37:01 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: deniz.a.m.dogan <at> gmail.com
Cc: 8300 <at> debbugs.gnu.org, ding <at> gnus.org
Subject: Re: bug#8300: save-some-buffers no longer asks user about each one
Date: Sun, 20 Mar 2011 19:36:13 +0800
Glad this was tracked down.

Too bad there is no longer such an easy way to find out what buffers are
not saved yet without saving them just by asking.

The other ways to find out are much harder.

> What version are you using?
Ha ha ha very funny. We are all using the same version number
emacs-version "24.0.50.1" for years because it is stuck.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8300; Package emacs. (Sun, 20 Mar 2011 11:46:01 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: fourquet.d <at> gmail.com
Cc: 8300 <at> debbugs.gnu.org, ding <at> gnus.org, deniz.a.m.dogan <at> gmail.com
Subject: Re: bug#8300: save-some-buffers no longer asks user about each one
Date: Sun, 20 Mar 2011 19:44:54 +0800
I think the documentation should stay put.
It is only some kiddie MicroSoft system that insists it is smarter than
you and saves things just because you ask. What if the cops sent a car
just because you called 911 and even before they asked what the problem was.




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

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

From: David Engster <deng <at> randomsample.de>
To: jidanni <at> jidanni.org
Cc: fourquet.d <at> gmail.com, 8300 <at> debbugs.gnu.org, ding <at> gnus.org,
	deniz.a.m.dogan <at> gmail.com
Subject: Re: bug#8300: save-some-buffers no longer asks user about each one
Date: Sun, 20 Mar 2011 12:59:22 +0100
'jidanni' writes:
> I think the documentation should stay put.
> It is only some kiddie MicroSoft system that insists it is smarter than
> you and saves things just because you ask. What if the cops sent a car
> just because you called 911 and even before they asked what the problem was.

save-some-buffers gets called a lot when you use packages which call
external tools (like AucTeX, compile, magit, etc.), and people were
annoyed to get asked every time if the dribble file should be saved, so
in the end Lars decided to set buffer-save-without-query. I think this
is a very minor issue (and hence perfect for bikeshedding, strange
analogies and MS bashing).

-David




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8300; Package emacs. (Sun, 20 Mar 2011 12:17:02 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: fourquet.d <at> gmail.com
Cc: 8300 <at> debbugs.gnu.org, ding <at> gnus.org, deniz.a.m.dogan <at> gmail.com
Subject: Re: bug#8300: save-some-buffers no longer asks user about each one
Date: Sun, 20 Mar 2011 20:16:35 +0800
OK fine. Better get used to
  Gnus auto-save file exists.  Do you want to read it? (y or n)  y
often the next time you start emacs. Because there is nothing left to
remind you you haven't closed gnus properly last session.




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

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

From: David Engster <deng <at> randomsample.de>
To: jidanni <at> jidanni.org
Cc: fourquet.d <at> gmail.com, 8300 <at> debbugs.gnu.org, ding <at> gnus.org,
	deniz.a.m.dogan <at> gmail.com
Subject: Re: bug#8300: save-some-buffers no longer asks user about each one
Date: Sun, 20 Mar 2011 13:45:02 +0100
'jidanni' writes:
> OK fine. Better get used to
>   Gnus auto-save file exists.  Do you want to read it? (y or n)  y
> often the next time you start emacs. Because there is nothing left to
> remind you you haven't closed gnus properly last session.

(add-hook 'kill-emacs-hook
	  (lambda ()
	    (when (gnus-alive-p)
	      (unless (y-or-n-p "Gnus still running! Really quit?")
		(error "User aborted kill-emacs. Quit Gnus and exit again.")))))

Although using this implies that Emacs thinks it's smarter than
you... ;-)

-David




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Mon, 04 Apr 2011 16:37:02 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni.org:
bug acknowledged by developer. (Mon, 04 Apr 2011 16:37:02 GMT) Full text and rfc822 format available.

Message #34 received at 8300-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 8300-done <at> debbugs.gnu.org
Subject: Re: bug#8300: save-some-buffers no longer asks user about each one
Date: Mon, 04 Apr 2011 12:36:40 -0400
David Engster wrote:

> doc-string for save-some-buffers should say something like
>
> "Asking can be disabled for a buffer by setting the buffer-local
> variable `buffer-save-without-query' to a non-nil value."

Now it does. (This feature has existed since at least Emacs 22.1.)




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

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

Previous Next


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