[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 96/299: Raise frame on backward search.
From: |
Stefan Monnier |
Subject: |
[elpa] 96/299: Raise frame on backward search. |
Date: |
Sun, 02 Nov 2014 03:10:35 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 26a6266ad717ec64cadf17fbf78619d74e012922
Author: Tassilo Horn <address@hidden>
Date: Mon Apr 15 10:52:06 2013 +0200
Raise frame on backward search.
* tex.el (TeX-source-correlate-sync-source): Raise frame when
placing point on the source location.
---
ChangeLog | 5 +++++
tex.el | 14 +++++++++-----
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index bb2b0c2..739010c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-15 Tassilo Horn <address@hidden>
+
+ * tex.el (TeX-source-correlate-sync-source): Raise frame when
+ placing point on the source location.
+
2013-04-12 Mos� Giordano <address@hidden>
* Makefile.in (STYLESRC): Add style/acro.el and style/acronym.el.
diff --git a/tex.el b/tex.el
index e82fce3..ca246e7 100644
--- a/tex.el
+++ b/tex.el
@@ -1494,10 +1494,11 @@ You could use this for unusual mouse bindings.")
(defun TeX-source-correlate-sync-source (file linecol &rest ignored)
"Show TeX FILE with point at LINECOL.
-This function is called when emacs receives a SyncSource signal
-emitted from the Evince document viewer. IGNORED absorbs an
-unused id field accompanying the DBUS signal sent by Evince-3.0.0
-or newer."
+If the external wmctrl program is installed, the emacs frame will
+also be risen. This function is called when emacs receives a
+SyncSource signal emitted from the Evince document viewer.
+IGNORED absorbs an unused id field accompanying the DBUS signal
+sent by Evince-3.0.0 or newer."
;; FILE may be given as relative path to the TeX-master root document or as
;; absolute file:// URL. In the former case, the tex file has to be already
;; opened.
@@ -1521,7 +1522,10 @@ or newer."
(goto-char (point-min))
(forward-line (1- line))
(unless (= col -1)
- (move-to-column col)))))
+ (move-to-column col))
+ (let ((wmctrl (executable-find "wmctrl")))
+ (when wmctrl
+ (start-process "wmctrl" nil wmctrl "-R" (frame-parameter nil
'name)))))))
(define-minor-mode TeX-source-correlate-mode
"Minor mode for forward and inverse search.
- [elpa] 93/299: Fix bug in TeX-evince-sync-view., (continued)
- [elpa] 93/299: Fix bug in TeX-evince-sync-view., Stefan Monnier, 2014/11/01
- [elpa] 86/299: Make LaTeX-outline-level work for customized outline-regexp., Stefan Monnier, 2014/11/01
- [elpa] 88/299: Improve TeX-math-input-method-off-regexp., Stefan Monnier, 2014/11/01
- [elpa] 89/299: Fix a bug in font-latex-add-to-syntax-alist., Stefan Monnier, 2014/11/01
- [elpa] 97/299: Replace completing-read-multiple with TeX-completing-read-multiple., Stefan Monnier, 2014/11/01
- [elpa] 98/299: Use crm-separator as separator in XEmacs TeX-completing-read-multiple., Stefan Monnier, 2014/11/01
- [elpa] 99/299: Add prompt argument to TeX-read-key-val and TeX-arg-key-val., Stefan Monnier, 2014/11/01
- [elpa] 101/299: Improve Evince backward search., Stefan Monnier, 2014/11/01
- [elpa] 94/299: Fix 2 bugs in DBUS communication., Stefan Monnier, 2014/11/01
- [elpa] 104/299: Change default value of `LaTeX-default-author' and adapt `LaTeX-arg-author'., Stefan Monnier, 2014/11/01
- [elpa] 96/299: Raise frame on backward search.,
Stefan Monnier <=
- [elpa] 105/299: Fix plain TeX abbrev table name., Stefan Monnier, 2014/11/01
- [elpa] 102/299: Document some missing functions and options., Stefan Monnier, 2014/11/01
- [elpa] 103/299: Use user-full-name as initial input to author macro., Stefan Monnier, 2014/11/01
- [elpa] 100/299: Better unbinding of SPC in LaTeX-arg-acro-key-val and LaTeX-arg-siunitx-unit., Stefan Monnier, 2014/11/01
- [elpa] 106/299: Add beamer class options., Stefan Monnier, 2014/11/01
- [elpa] 95/299: Add new style files acro.el and acronym.el., Stefan Monnier, 2014/11/01
- [elpa] 108/299: Some improvements to amsthm style file., Stefan Monnier, 2014/11/01
- [elpa] 107/299: Add counters and pagestyle to some class styles., Stefan Monnier, 2014/11/01
- [elpa] 110/299: Set default environment for some class styles., Stefan Monnier, 2014/11/01
- [elpa] 113/299: Change BibTeX button to Biber when LaTeX-using-biber is non-nil., Stefan Monnier, 2014/11/01