]> git.eshelyaron.com Git - emacs.git/commit
find-buffer-visiting: Fix test breakage introduced in b7a737ef49
authorIhor Radchenko <yantar92@posteo.net>
Sat, 30 Dec 2023 10:31:51 +0000 (11:31 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 2 Jan 2024 07:53:47 +0000 (08:53 +0100)
commit73a97e7de265283dab2e5f48625460673245c587
tree44e23fa1509e5b9ab0d46a5751da0161197b2c91
parent17a284d5c98a04001636d1fd029cf2ef35b7c43c
find-buffer-visiting: Fix test breakage introduced in b7a737ef49

* lisp/files.el (find-buffer-visiting): Fix code branch checking for
buffers referring to the same file number.  We should check the found
buffer with the file number, not current.

Link: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66117#412
(cherry picked from commit 46a93aa7b0753e7e1ba7c557709b2680ebb24fde)
lisp/files.el