From 83e08dfef338e23c90fa9a75eda30d198a7d026b Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 25 Sep 2021 07:32:48 +0200 Subject: [PATCH] save-some-buffers-root doc string change * lisp/files.el (save-some-buffers-root): Improve doc string. --- etc/NEWS | 6 +++--- lisp/files.el | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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." -- 2.39.2