[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
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] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing.,
Hong Xu <=
- Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing., Mosè Giordano, 2017/08/09
- Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing., Hong Xu, 2017/08/09
- Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing., Colin Baxter, 2017/08/09
- Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing., Hong Xu, 2017/08/10
- Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing., Colin Baxter, 2017/08/10
- Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing., Hong Xu, 2017/08/20
- Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing., Mosè Giordano, 2017/08/20
- Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing., David Kastrup, 2017/08/20
- Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing., Colin Baxter, 2017/08/20
- Re: [AUCTeX-devel] [PATCH] When using SyncTeX with Evince, do not switch focus after syncing., Hong Xu, 2017/08/21