summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-09-04 04:58:17 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-09-04 04:58:17 +0200
commit74ba8f8421a064f39d9544b7b9a4e400e07f3b86 (patch)
tree0ac2033dafaef4a1282fd3cb3aed7adb13cc4290
parenta0e026b274ea76845e1eee94dcc90da07fb06666 (diff)
downloademacs-74ba8f8421a064f39d9544b7b9a4e400e07f3b86.tar.gz
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).
-rw-r--r--lisp/files.el2
1 files changed, 1 insertions, 1 deletions
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