summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-08-25 17:07:39 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-08-25 17:07:39 +0200
commitf3e29733bbe63950b3ef1259744723193ff5f388 (patch)
tree0fb8891a62d3d85eb14cd842d086e41a668da868
parent7445560d0cd4d94f93988d51a98bdba465173f44 (diff)
downloademacs-f3e29733bbe63950b3ef1259744723193ff5f388.tar.gz
Tweak the file/buffer comparison from previous save-some-buffers change
* lisp/files.el (save-some-buffers): Relax the "similarity" regexp from the previous regexp: Don't show both file and buffer names if the file is /tmp/foo and the buffer name is foo<zot>.
-rw-r--r--lisp/files.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index f1931c7d92f..9a20ad41bae 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -5575,7 +5575,7 @@ change the additional actions you can take on files."
(regexp-quote
(file-name-nondirectory
buffer-file-name))
- "<[0-9]+>\\'")
+ "<[^>]*>\\'")
(buffer-name buffer)))
;; The buffer name is similar to the
;; file name.