summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorEric Abrahamsen <eric@ericabrahamsen.net>2017-09-18 13:29:44 -0700
committerEric Abrahamsen <eric@ericabrahamsen.net>2017-09-18 13:29:44 -0700
commitee512e9a825a6dbdf438a432b75b7e18d9a983c7 (patch)
tree1bb91d83d5e1140bb4351bcd30e9fa12c6902a29 /lisp/files.el
parent9e1b5bd92ce26291c71ddb33a6291225e6ec1152 (diff)
downloademacs-ee512e9a825a6dbdf438a432b75b7e18d9a983c7.tar.gz
Ignore buffers whose name begins with a space in save-some-buffers
* lisp/files.el (save-some-buffers): Consider these buffers "internal", and don't prompt the user to save them. * doc/lispref/files.texi: Document.
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 133fed90c34..ff0ab706338 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -5188,6 +5188,7 @@ change the additional actions you can take on files."
(and (buffer-live-p buffer)
(buffer-modified-p buffer)
(not (buffer-base-buffer buffer))
+ (not (eq (aref (buffer-name buffer) 0) ?\s))
(or
(buffer-file-name buffer)
(and pred