[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 6dcf0e1 18/42: Add a new option for evince compa
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 6dcf0e1 18/42: Add a new option for evince compatible viewer. |
Date: |
Thu, 23 Nov 2017 06:06:11 -0500 (EST) |
branch: externals/auctex
commit 6dcf0e1083791902563afaac9add4211bd91514a
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>
Add a new option for evince compatible viewer.
* tex.el: (TeX-view-evince-keep-focus): New option.
(TeX-evince-sync-view-1): Pull the focus back to Emacs if the above
new option is non-nil.
---
tex.el | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/tex.el b/tex.el
index e4012b0..d1b7791 100644
--- a/tex.el
+++ b/tex.el
@@ -1305,6 +1305,15 @@ entry in `TeX-view-program-list-builtin'."
(pop-to-buffer (or (find-buffer-visiting pdf)
(find-file-noselect pdf))))))
+(defcustom TeX-view-evince-keep-focus nil
+ "Whether Emacs retains the focus when viewing PDF files with Evince.
+
+When calling `TeX-evince-sync-view', Evince normally captures the
+focus. If this option is set to non-nil, Emacs will retain the
+focus."
+ :group 'TeX-view
+ :type 'boolean)
+
(defvar url-unreserved-chars)
(defun TeX-evince-sync-view-1 (de app)
@@ -1344,7 +1353,14 @@ 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)
+ (when TeX-view-evince-keep-focus
+ (cond ((fboundp #'select-frame-set-input-focus)
+ (select-frame-set-input-focus (selected-frame)))
+ ((fboundp #'x-focus-frame)
+ (x-focus-frame (selected-frame)))
+ ((fboundp #'focus-frame)
+ (focus-frame (selected-frame))))))
(error "Couldn't find the %s instance for %s" (capitalize app) uri))))
(defun TeX-atril-sync-view ()
- [elpa] externals/auctex 2ed9d93 09/42: Add %(PDF) when undumped format is used in preview-latex, (continued)
- [elpa] externals/auctex 2ed9d93 09/42: Add %(PDF) when undumped format is used in preview-latex, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 433b5f9 15/42: Parse package/class option with comments correctly, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 01224b6 11/42: Add test for my commit on Aug 18, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex bfaa079 14/42: Conform to elisp coding convention, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 075eab7 07/42: Improvements for tex-info.el, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex aaf22a9 08/42: Add new style/arabxetex.el, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex cf0ff70 16/42: Add test for infinite loop, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 9e5e5f6 20/42: ; * tex.el (TeX-doc-backend-alist): Use `TeX-search-files-by-type'., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex b43ec94 04/42: * style/XCharter.el ("XCharter"): Update to package v1.094 from 2017/08/08., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex ff07544 05/42: Delay setting Japanese TeX engine in `japanese-latex-mode', Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 6dcf0e1 18/42: Add a new option for evince compatible viewer.,
Tassilo Horn <=
- [elpa] externals/auctex 7863f42 13/42: Prevent possible infinite loop, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex cfad977 17/42: Make correct extensions are returned, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 5a538cb 19/42: Prevent possible truncation of list value, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex a944077 12/42: Use `delete' correctly for list variable, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 20b6fd0 21/42: Add test abount truncation of list, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 474cc4f 23/42: ; * doc/tex-ref.tex (): Fix typo and copyright year., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex fe06211 24/42: Fix doc strings and comments, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 9e1aa85 22/42: Make preview-latex parsing robust to fix Bug#20773, Bug#27088, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 5d8ac95 25/42: Cosmetic Change, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 837d590 27/42: Remove use of .runandhide operator, Tassilo Horn, 2017/11/23