From: Juri Linkov <juri@linkov.net>
To: Dmitry Gutov <dmitry@gutov.dev>
Cc: Stefan Kangas <stefankangas@gmail.com>,
me@elken.dev, 65928@debbugs.gnu.org
Subject: bug#65928: [PATCH] Introduce 'project-save-buffers'
Date: Mon, 18 Sep 2023 09:56:03 +0300 [thread overview]
Message-ID: <865y48x94s.fsf@mail.linkov.net> (raw)
In-Reply-To: <c2930525-3a34-4d7b-3810-c25e306c3319@gutov.dev> (Dmitry Gutov's message of "Fri, 15 Sep 2023 19:39:21 +0300")
>>> Would something like
>>> (defalias 'project-save-buffers #'save-some-buffers-root)
>>> do the job?
>> Rather something more like this will do the job:
>> ```
>> (keymap-set project-prefix-map "S"
>> (lambda (&optional arg)
>> (interactive "P")
>> (let ((save-some-buffers-default-predicate 'save-some-buffers-root))
>> (save-some-buffers arg))))
>> ```
>
> Would you say that the added capability to only save certain buffers but
> not others, is something you found useful in practice?
>
> More than once a year or so.
I don't know why might anyone want to save only project's buffer,
but not all. I use 'C-x s' only when 'C-c C-a' from diff-mode modifies
different buffers (hopefully a new diff command will save them at once),
but I don't mind when 'C-x s' saves non-project buffers as well.
prev parent reply other threads:[~2023-09-18 6:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-13 21:26 bug#65928: [PATCH] Introduce 'project-save-buffers' me--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-14 6:51 ` Juri Linkov
2023-09-14 13:45 ` Elken via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-14 14:09 ` Stefan Kangas
2023-09-14 14:12 ` Dmitry Gutov
2023-09-14 14:18 ` me--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-14 14:30 ` Dmitry Gutov
2023-09-14 14:07 ` Stefan Kangas
2023-09-14 14:13 ` Dmitry Gutov
2023-09-14 14:16 ` me--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-15 6:32 ` Juri Linkov
2023-09-15 16:39 ` Dmitry Gutov
2023-09-18 6:56 ` Juri Linkov [this message]
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=865y48x94s.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=65928@debbugs.gnu.org \
--cc=dmitry@gutov.dev \
--cc=me@elken.dev \
--cc=stefankangas@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).