summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Winkler <winkler@gnu.org>2018-05-24 13:38:48 -0500
committerRoland Winkler <winkler@gnu.org>2018-05-24 13:38:48 -0500
commit43a9c268c7165094c4ec639b3a54bc3cb354bb62 (patch)
tree3e42e712f65f0cfad6c1307ddd9149561256967e
parent4bb2741b7e28c0899af272f85a17e4f4399646de (diff)
downloademacs-43a9c268c7165094c4ec639b3a54bc3cb354bb62.tar.gz
Move window-point in bibtex-search-entry
* lisp/textmodes/bibtex.el (bibtex-search-entry): Move window-point to record found.
-rw-r--r--lisp/textmodes/bibtex.el2
1 files changed, 1 insertions, 1 deletions
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)))