From: Lars Ingebrigtsen Date: Tue, 25 Aug 2020 15:07:39 +0000 (+0200) Subject: Tweak the file/buffer comparison from previous save-some-buffers change X-Git-Tag: emacs-28.0.90~6408 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f3e29733bbe63950b3ef1259744723193ff5f388;p=emacs.git 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. --- 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.