From: Lars Ingebrigtsen Date: Fri, 4 Sep 2020 02:58:17 +0000 (+0200) Subject: Fix previous buffer name fixup in save-some-buffers X-Git-Tag: emacs-28.0.90~6259 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=74ba8f8421a064f39d9544b7b9a4e400e07f3b86;p=emacs.git Fix previous buffer name fixup in save-some-buffers * lisp/files.el (save-some-buffers): Get the file name for the correct buffer in the buffer name check (bug#43192). --- diff --git a/lisp/files.el b/lisp/files.el index 3403e257a16..5f5902d0cb6 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -5574,7 +5574,7 @@ change the additional actions you can take on files." (concat "\\<" (regexp-quote (file-name-nondirectory - buffer-file-name)) + (buffer-file-name buffer))) "<[^>]*>\\'") (buffer-name buffer))) ;; The buffer name is similar to the