unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: 65928@debbugs.gnu.org, me@elken.dev
Subject: bug#65928: [PATCH] Introduce 'project-save-buffers'
Date: Fri, 15 Sep 2023 09:32:25 +0300	[thread overview]
Message-ID: <86ttrw6l0m.fsf@mail.linkov.net> (raw)
In-Reply-To: <CADwFkmnBfnerK=Nc858fuzaE710LEQjZU4ieSeJ096siCXFbSg@mail.gmail.com> (Stefan Kangas's message of "Thu, 14 Sep 2023 07:07:30 -0700")

>> It could be bound to 'C-x p C-x s'.

After more thoughts, it's not the best keybinding:
the global 'C-x s' could be used to save all buffers
in another project with 'C-x p p ... C-x s'
implemented in bug#63648.

> What's the binding in projectile?  All else being equal, I'd suggest we
> use the same one.

Maybe Projectile's binding 'C-x p S' is not too bad.

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





  parent reply	other threads:[~2023-09-15  6:32 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 [this message]
2023-09-15 16:39       ` Dmitry Gutov
2023-09-18  6:56         ` Juri Linkov

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=86ttrw6l0m.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=65928@debbugs.gnu.org \
    --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).