From: Lars Ingebrigtsen Date: Sat, 25 Sep 2021 05:32:48 +0000 (+0200) Subject: save-some-buffers-root doc string change X-Git-Tag: emacs-28.0.90~658 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=83e08dfef338e23c90fa9a75eda30d198a7d026b;p=emacs.git save-some-buffers-root doc string change * lisp/files.el (save-some-buffers-root): Improve doc string. --- diff --git a/etc/NEWS b/etc/NEWS index 94df3de1550..40e85c67c05 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1001,10 +1001,10 @@ If nil, Emacs does not prompt, but instead shows the buffer with its contents before the change, and provides instructions how to revert the buffer. +--- ** New value 'save-some-buffers-root' of 'save-some-buffers-default-predicate'. -They allow to ask about saving only those files that are under the -project root or in subdirectories of the directory that was default -during command invocation. +When using this predicate, only buffers under the current project root +will be considered when saving buffers with 'save-some-buffers'. --- ** New user option 'save-place-abbreviate-file-names'. diff --git a/lisp/files.el b/lisp/files.el index 2f7e936ff61..05875b48e39 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -5756,7 +5756,7 @@ be saved." :version "26.1") (defun save-some-buffers-root () - "A predicate to check whether the buffer is under the root directory. + "A predicate to check whether the buffer is under the project root directory. Can be used as a value of `save-some-buffers-default-predicate' to save buffers only under the project root or in subdirectories of the directory that was default during command invocation."