auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 5745c81b322984932bffa


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 5745c81b322984932bffa4265f757769af9fad97
Date: Tue, 31 May 2016 10:30:57 +0000 (UTC)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  5745c81b322984932bffa4265f757769af9fad97 (commit)
      from  bb9f42732d4037962e44274a098283dab61e0b43 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5745c81b322984932bffa4265f757769af9fad97
Author: Mosè Giordano <address@hidden>
Date:   Tue May 31 12:30:11 2016 +0200

    Fix compatibility with GNU Emacs < 24
    
    * tex.el (TeX-source-correlate-sync-source): Call `x-focus-frame' only
      when it is available.

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.

-----------------------------------------------------------------------

Summary of changes:
 tex.el |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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