From 74ba8f8421a064f39d9544b7b9a4e400e07f3b86 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 4 Sep 2020 04:58:17 +0200 Subject: [PATCH] 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). --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2