]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak the file/buffer comparison from previous save-some-buffers change
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 25 Aug 2020 15:07:39 +0000 (17:07 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 25 Aug 2020 15:07:39 +0000 (17:07 +0200)
* 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>.

lisp/files.el

index f1931c7d92fd8510c88c59ffc495ed1d601eefe6..9a20ad41bae7a4016b88508d6ebc58b022c69fae 100644 (file)
@@ -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.