GNU bug report logs - #65928
[PATCH] Introduce 'project-save-buffers'

Previous Next

Package: emacs;

Reported by: me <at> elken.dev

Date: Wed, 13 Sep 2023 21:28:02 UTC

Severity: wishlist

Tags: patch, wontfix

Done: Dmitry Gutov <dmitry <at> gutov.dev>

Bug is archived. No further changes may be made.

Full log


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

From: Juri Linkov <juri <at> linkov.net>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: Stefan Kangas <stefankangas <at> gmail.com>, me <at> elken.dev, 65928 <at> debbugs.gnu.org
Subject: Re: bug#65928: [PATCH] Introduce 'project-save-buffers'
Date: Mon, 18 Sep 2023 09:56:03 +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.




This bug report was last modified 157 days ago.

Previous Next


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