From 43a9c268c7165094c4ec639b3a54bc3cb354bb62 Mon Sep 17 00:00:00 2001 From: Roland Winkler Date: Thu, 24 May 2018 13:38:48 -0500 Subject: [PATCH] Move window-point in bibtex-search-entry * lisp/textmodes/bibtex.el (bibtex-search-entry): Move window-point to record found. --- lisp/textmodes/bibtex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index a3f98043581..efab9d8e3bd 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el @@ -4105,10 +4105,10 @@ A prefix arg negates the value of `bibtex-search-entry-globally'." (setq buffer (pop buffer-list))) (with-current-buffer buffer (if (cdr (assoc-string key bibtex-reference-keys)) - ;; `bibtex-search-entry' moves point if key found (setq found (bibtex-search-entry key))))) (cond ((and found display) (switch-to-buffer buffer) + (goto-char found) (bibtex-reposition-window)) (found (set-buffer buffer)) (display (message "Key `%s' not found" key))) -- 2.39.5