emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] elpa 5745c81 02/35: Fix compatibility with GNU Emacs < 24


From: Tassilo Horn
Subject: [elpa] elpa 5745c81 02/35: Fix compatibility with GNU Emacs < 24
Date: Thu, 1 Sep 2016 15:57:48 +0000 (UTC)

branch: elpa
commit 5745c81b322984932bffa4265f757769af9fad97
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Fix compatibility with GNU Emacs < 24
    
    * tex.el (TeX-source-correlate-sync-source): Call `x-focus-frame' only
      when it is available.
---
 tex.el |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tex.el b/tex.el
index 58c8a04..923ce32 100644
--- a/tex.el
+++ b/tex.el
@@ -1886,7 +1886,10 @@ or newer."
                  (> pos (point-max)))
          (widen))
        (goto-char pos))
-      (x-focus-frame (selected-frame)))))
+      ;; Grab focus after inverse search (only if `x-focus-frame' function is
+      ;; available).
+      (when (fboundp 'x-focus-frame)
+       (x-focus-frame (selected-frame))))))
 
 (define-minor-mode TeX-source-correlate-mode
   "Minor mode for forward and inverse search.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]