unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8300: save-some-buffers no longer asks user about each one
@ 2011-03-20  5:02 ` jidanni
  2011-03-20 10:11   ` Deniz Dogan
                     ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: jidanni @ 2011-03-20  5:02 UTC (permalink / raw)
  To: 8300; +Cc: ding

X-Debbugs-Cc: ding@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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#8300: save-some-buffers no longer asks user about each one
  2011-03-20  5:02 ` bug#8300: save-some-buffers no longer asks user about each one jidanni
@ 2011-03-20 10:11   ` Deniz Dogan
  2011-03-20 11:09     ` David Engster
  2011-03-20 11:33     ` R. Fourquet
  2011-03-20 11:36   ` jidanni
                     ` (2 subsequent siblings)
  3 siblings, 2 replies; 10+ messages in thread
From: Deniz Dogan @ 2011-03-20 10:11 UTC (permalink / raw)
  To: jidanni; +Cc: 8300, ding

2011/3/20  <jidanni@jidanni.org>:
> X-Debbugs-Cc: ding@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





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#8300: save-some-buffers no longer asks user about each one
  2011-03-20 10:11   ` Deniz Dogan
@ 2011-03-20 11:09     ` David Engster
  2011-03-20 11:33     ` R. Fourquet
  1 sibling, 0 replies; 10+ messages in thread
From: David Engster @ 2011-03-20 11:09 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: 8300, ding, jidanni

Deniz Dogan writes:
> 2011/3/20  <jidanni@jidanni.org>:
>> X-Debbugs-Cc: ding@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





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#8300: save-some-buffers no longer asks user about each one
  2011-03-20 10:11   ` Deniz Dogan
  2011-03-20 11:09     ` David Engster
@ 2011-03-20 11:33     ` R. Fourquet
       [not found]       ` <87pqpmxbgp.fsf@jidanni.org>
  1 sibling, 1 reply; 10+ messages in thread
From: R. Fourquet @ 2011-03-20 11:33 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: 8300, ding, jidanni

Deniz Dogan <deniz.a.m.dogan@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).





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#8300: save-some-buffers no longer asks user about each one
  2011-03-20  5:02 ` bug#8300: save-some-buffers no longer asks user about each one jidanni
  2011-03-20 10:11   ` Deniz Dogan
@ 2011-03-20 11:36   ` jidanni
  2011-03-20 11:44   ` jidanni
  2011-03-20 12:16   ` jidanni
  3 siblings, 0 replies; 10+ messages in thread
From: jidanni @ 2011-03-20 11:36 UTC (permalink / raw)
  To: deniz.a.m.dogan; +Cc: 8300, ding

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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#8300: save-some-buffers no longer asks user about each one
  2011-03-20  5:02 ` bug#8300: save-some-buffers no longer asks user about each one jidanni
  2011-03-20 10:11   ` Deniz Dogan
  2011-03-20 11:36   ` jidanni
@ 2011-03-20 11:44   ` jidanni
  2011-03-20 12:16   ` jidanni
  3 siblings, 0 replies; 10+ messages in thread
From: jidanni @ 2011-03-20 11:44 UTC (permalink / raw)
  To: fourquet.d; +Cc: 8300, ding

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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#8300: save-some-buffers no longer asks user about each one
       [not found]       ` <87pqpmxbgp.fsf@jidanni.org>
@ 2011-03-20 11:59         ` David Engster
  0 siblings, 0 replies; 10+ messages in thread
From: David Engster @ 2011-03-20 11:59 UTC (permalink / raw)
  To: jidanni; +Cc: fourquet.d, 8300, ding

'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





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#8300: save-some-buffers no longer asks user about each one
  2011-03-20  5:02 ` bug#8300: save-some-buffers no longer asks user about each one jidanni
                     ` (2 preceding siblings ...)
  2011-03-20 11:44   ` jidanni
@ 2011-03-20 12:16   ` jidanni
  3 siblings, 0 replies; 10+ messages in thread
From: jidanni @ 2011-03-20 12:16 UTC (permalink / raw)
  To: fourquet.d; +Cc: 8300, ding

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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#8300: save-some-buffers no longer asks user about each one
       [not found] ` <878vwam1gc.fsf@jidanni.org>
@ 2011-03-20 12:45   ` David Engster
  0 siblings, 0 replies; 10+ messages in thread
From: David Engster @ 2011-03-20 12:45 UTC (permalink / raw)
  To: jidanni; +Cc: fourquet.d, 8300, ding

'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





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#8300: save-some-buffers no longer asks user about each one
       [not found] <87pqpmhwvk.fsf@engster.org>
  2011-03-20  5:02 ` bug#8300: save-some-buffers no longer asks user about each one jidanni
@ 2011-04-04 16:36 ` Glenn Morris
  1 sibling, 0 replies; 10+ messages in thread
From: Glenn Morris @ 2011-04-04 16:36 UTC (permalink / raw)
  To: 8300-done


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





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-04-04 16:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87pqpmhwvk.fsf@engster.org>
2011-03-20  5:02 ` bug#8300: save-some-buffers no longer asks user about each one jidanni
2011-03-20 10:11   ` Deniz Dogan
2011-03-20 11:09     ` David Engster
2011-03-20 11:33     ` R. Fourquet
     [not found]       ` <87pqpmxbgp.fsf@jidanni.org>
2011-03-20 11:59         ` David Engster
2011-03-20 11:36   ` jidanni
2011-03-20 11:44   ` jidanni
2011-03-20 12:16   ` jidanni
2011-04-04 16:36 ` Glenn Morris
     [not found] <87ipvehujp.fsf@randomsample.de>
     [not found] ` <878vwam1gc.fsf@jidanni.org>
2011-03-20 12:45   ` David Engster

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).