]> git.eshelyaron.com Git - emacs.git/commitdiff
(reftex-make-separate-toc-frame): Try x-focus-frame before
authorGlenn Morris <rgm@gnu.org>
Tue, 4 Dec 2007 03:52:39 +0000 (03:52 +0000)
committerGlenn Morris <rgm@gnu.org>
Tue, 4 Dec 2007 03:52:39 +0000 (03:52 +0000)
focus-frame.  Only try focus-frame on XEmacs.

lisp/textmodes/reftex-toc.el

index ae147cc6b97057d0d3ab51e2c452548455e25e6d..d1d979b3fc053c56941d6d8882bdefb9ba79e451 100644 (file)
@@ -995,8 +995,10 @@ always show the current section in connection with the option
       (select-frame current-toc-frame)
       (switch-to-buffer "*toc*")
       (select-frame current-frame)
-      (if (fboundp 'focus-frame) (focus-frame current-frame)
-        (if (fboundp 'x-focus-frame) (x-focus-frame current-frame)))
+      (if (fboundp 'x-focus-frame) (x-focus-frame current-frame)
+        ;; focus-frame has done nothing in Emacs since at least v21.
+        (if (featurep 'xemacs)
+            (if (fboundp 'focus-frame) (focus-frame current-frame))))
       (select-window current-window)
       (when (eq reftex-auto-recenter-toc 'frame)
         (unless reftex-toc-auto-recenter-timer