The current behavior switches focus to Evince, which is inconvenient for
editing. This change pulls the focus back to Emacs after syncing. This
change
also make the behavior of syncing using Evince consistent with syncing using
Zathura.
---
 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)
uri))))
  (defun TeX-atril-sync-view ()
-- 
2.11.0



_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to