[Top][All Lists]

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

[AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch foc

From: Hong Xu
Subject: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.
Date: Wed, 9 Aug 2017 17:21:41 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

The current behavior switches focus to Evince, which is inconvenient for
editing. This change pulls the focus back to Emacs after syncing. This
also make the behavior of syncing using Evince consistent with syncing using
 tex.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tex.el b/tex.el
index 972110b3b54b..8cbc822a1852 100644
--- a/tex.el
+++ b/tex.el
@@ -1340,7 +1340,8 @@ viewer."
                 ;; line.  What is the right number to specify here?
                 ;; number of letters? bytes in UTF8? or other?
                 :int32 (1+ (current-column)))
-          :uint32 0))
+          :uint32 0)
+          (select-frame-set-input-focus (selected-frame)))
       (error "Couldn't find the %s instance for %s" (capitalize app)
  (defun TeX-atril-sync-view ()

reply via email to

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