]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous buffer name fixup in save-some-buffers
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 4 Sep 2020 02:58:17 +0000 (04:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 4 Sep 2020 02:58:17 +0000 (04:58 +0200)
* lisp/files.el (save-some-buffers): Get the file name for the
correct buffer in the buffer name check (bug#43192).

lisp/files.el

index 3403e257a16b809e65f1f8295a6632ca49daa555..5f5902d0cb6eea65ae9a143bc0cf4c336aa084ad 100644 (file)
@@ -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