summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/comp-tests.el
diff options
context:
space:
mode:
authorSpencer Baugh <sbaugh@janestreet.com>2024-03-26 08:44:25 -0400
committerDmitry Gutov <dmitry@gutov.dev>2024-03-28 05:23:23 +0200
commit5efa2ddf62d4876fb62f23b571f4cc0af5885639 (patch)
tree4dca9f58af263171afda916314f55d75fa20d68f /test/lisp/emacs-lisp/comp-tests.el
parent5a7c46355be1b5a9a8dbfb36ba44969963a3f558 (diff)
downloademacs-5efa2ddf62d4876fb62f23b571f4cc0af5885639.tar.gz
emacs-5efa2ddf62d4876fb62f23b571f4cc0af5885639.tar.bz2
emacs-5efa2ddf62d4876fb62f23b571f4cc0af5885639.zip
Correctly check buffer mtime when displaying xref matches
This was just a typo: we were checking the modification time of current-buffer instead of checking the modification time of the passed-in buffer. This caused matches to not be shown if they weren't present in the current in-Emacs state of the buffer. This was easily reproduced by writing a string to a file outside Emacs, then searching for that string with e.g. project-find-regexp. The string would seemingly not be found, although in reality it was found, just not displayed. * lisp/progmodes/xref.el (xref--find-file-buffer): Check buf, not current-buffer (bug#70008).
Diffstat (limited to 'test/lisp/emacs-lisp/comp-tests.el')
0 files changed, 0 insertions, 0 deletions