unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Noam Postavsky <npostavs@gmail.com>
Cc: "Søren Pilgård" <fiskomaten@gmail.com>,
	"Lars Ingebrigtsen" <larsi@gnus.org>,
	"Emacs developers" <emacs-devel@gnu.org>
Subject: Re: Option for saving all buffers always?
Date: Mon, 05 Aug 2019 17:02:26 +0200	[thread overview]
Message-ID: <mvmef1z4pvh.fsf@suse.de> (raw)
In-Reply-To: <CAM-tV-8my=bJ9F4Zgb+VpO-ctDfyeRD8RaevZJZ2dPat6EOxQw@mail.gmail.com> (Noam Postavsky's message of "Mon, 5 Aug 2019 10:25:16 -0400")

On Aug 05 2019, Noam Postavsky <npostavs@gmail.com> wrote:

> On Mon, 5 Aug 2019 at 09:53, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>>
>> Noam Postavsky <npostavs@gmail.com> writes:
>>
>> > I guess (setq-default buffer-save-without-query t) might work though.
>>
>> That will make Emacs offer to save even the buffers that aren't
>> connected to files.  :-)
>
> Hah, you're right. Maybe
>
> (add-hook 'find-file-hook (lambda () (setq buffer-save-without-query t)))

buffer-file-name can change any time.

It's probably easiest to advice save-some-buffers and make arg always be
non-nil.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



  reply	other threads:[~2019-08-05 15:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-05 10:51 Option for saving all buffers always? Lars Ingebrigtsen
2019-08-05 13:16 ` Søren Pilgård
2019-08-05 13:44   ` Lars Ingebrigtsen
2019-08-05 13:50     ` Noam Postavsky
2019-08-05 13:52       ` Lars Ingebrigtsen
2019-08-05 14:25         ` Noam Postavsky
2019-08-05 15:02           ` Andreas Schwab [this message]
2019-08-05 15:46 ` Eric Abrahamsen
2019-08-07 18:29   ` Lars Ingebrigtsen
2019-08-10 18:54     ` Stephen Leake
     [not found]       ` <CADoYgq-np68aTT=XekhoYOWS_wyi7YH7t8gJuiMOoHwNOe5iog@mail.gmail.com>
2019-08-11  4:35         ` Fwd: " Bob Newell
2019-08-07 15:07 ` Marcin Borkowski
2019-08-10 19:40 ` Clément Pit-Claudel
2019-08-10 20:57   ` Óscar Fuentes
2019-08-10 23:12   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mvmef1z4pvh.fsf@suse.de \
    --to=schwab@suse.de \
    --cc=emacs-devel@gnu.org \
    --cc=fiskomaten@gmail.com \
    --cc=larsi@gnus.org \
    --cc=npostavs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).