aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1999-06-27 23:36:46 +0000
committerKarl Heuer1999-06-27 23:36:46 +0000
commit57ec4af047b914b8ff493f3f072fbb84a52ed11c (patch)
tree95e6c8c9730ca75186fb5b251c880c4aa58a4b9c
parent263230fae969d185a7499e2a7c77f9aecbe778bc (diff)
downloademacs-57ec4af047b914b8ff493f3f072fbb84a52ed11c.tar.gz
emacs-57ec4af047b914b8ff493f3f072fbb84a52ed11c.zip
(reftex-pop-to-bibtex-entry): don't pop up
a frame when `return' is requested (even if pop-up-frames = t)
-rw-r--r--lisp/textmodes/reftex.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el
index 16799662d94..22c19a7381c 100644
--- a/lisp/textmodes/reftex.el
+++ b/lisp/textmodes/reftex.el
@@ -4100,17 +4100,16 @@ During a selection process, these are the local bindings.
4100 (concat "\\\\bibitem\\(\\[[^]]*\\]\\)?{" (regexp-quote key) "}") 4100 (concat "\\\\bibitem\\(\\[[^]]*\\]\\)?{" (regexp-quote key) "}")
4101 (concat "@[a-zA-Z]+[ \t\n\r]*[{(][ \t\n\r]*" (regexp-quote key) 4101 (concat "@[a-zA-Z]+[ \t\n\r]*[{(][ \t\n\r]*" (regexp-quote key)
4102 "[, \t\r\n}]"))) 4102 "[, \t\r\n}]")))
4103 (window-conf (current-window-configuration)) 4103 (buffer-conf (current-buffer))
4104 file buf) 4104 file buf)
4105 4105
4106 (catch 'exit 4106 (catch 'exit
4107 (switch-to-buffer-other-window (current-buffer))
4108 (while file-list 4107 (while file-list
4109 (setq file (car file-list) 4108 (setq file (car file-list)
4110 file-list (cdr file-list)) 4109 file-list (cdr file-list))
4111 (unless (setq buf (reftex-get-file-buffer-force file mark-to-kill)) 4110 (unless (setq buf (reftex-get-file-buffer-force file mark-to-kill))
4112 (error "No such file %s" file)) 4111 (error "No such file %s" file))
4113 (switch-to-buffer buf) 4112 (set-buffer buf)
4114 (widen) 4113 (widen)
4115 (goto-char (point-min)) 4114 (goto-char (point-min))
4116 (when (re-search-forward re nil t) 4115 (when (re-search-forward re nil t)
@@ -4120,13 +4119,15 @@ During a selection process, these are the local bindings.
4120 (if item (goto-char (match-end 0))) 4119 (if item (goto-char (match-end 0)))
4121 (setq return (buffer-substring 4120 (setq return (buffer-substring
4122 (point) (reftex-end-of-bib-entry item))) 4121 (point) (reftex-end-of-bib-entry item)))
4123 (set-window-configuration window-conf) 4122 (set-buffer buffer-conf)
4124 (throw 'exit return)) 4123 (throw 'exit return))
4124 (switch-to-buffer-other-window buffer-conf)
4125 (switch-to-buffer buf)
4125 (recenter 0) 4126 (recenter 0)
4126 (if highlight 4127 (if highlight
4127 (reftex-highlight 0 (match-beginning 0) (match-end 0))) 4128 (reftex-highlight 0 (match-beginning 0) (match-end 0)))
4128 (throw 'exit (selected-window)))) 4129 (throw 'exit (selected-window))))
4129 (set-window-configuration window-conf) 4130 (set-buffer buffer-conf)
4130 (if item 4131 (if item
4131 (error "No \\bibitem with citation key %s" key) 4132 (error "No \\bibitem with citation key %s" key)
4132 (error "No BibTeX entry with citation key %s" key))))) 4133 (error "No BibTeX entry with citation key %s" key)))))