[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 124/299: Make forward PDF search with Okular work.
From: |
Stefan Monnier |
Subject: |
[elpa] 124/299: Make forward PDF search with Okular work. |
Date: |
Sun, 02 Nov 2014 03:10:48 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 11969380bd3728000a05e7c3a56a3341d75d73da
Author: Mosè Giordano <address@hidden>
Date: Thu May 30 15:57:33 2013 +0200
Make forward PDF search with Okular work.
* tex.el (TeX-expand-list): Add new expander "%a", it returns the
quoted absolute path of the file visiting current buffer.
(TeX-view-program-list-builtin): Use "%a" expander for forward PDF
search.
---
ChangeLog | 7 +++++++
tex.el | 4 +++-
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 93621c2..2a12e48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-05-30 Mos� Giordano <address@hidden>
+
+ * tex.el (TeX-expand-list): Add new expander "%a", it returns the
+ quoted absolute path of the file visiting current buffer.
+ (TeX-view-program-list-builtin): Use "%a" expander for forward PDF
+ search.
+
2013-05-28 Tassilo Horn <address@hidden>
* tex.el (TeX-source-correlate-sync-source): Fix docstring.
diff --git a/tex.el b/tex.el
index fee2643..af57c9b 100644
--- a/tex.el
+++ b/tex.el
@@ -510,6 +510,8 @@ string."
;; command needs to be relative to the master file, just in
;; case the file is in a different subdirectory
("%b" TeX-current-file-name-master-relative)
+ ;; Okular forward PDF search requires absolute path.
+ ("%a" (lambda nil (prin1-to-string (expand-file-name (buffer-file-name)))))
;; the following is for preview-latex.
("%m" preview-create-subdirectory))
"List of expansion strings for TeX command names.
@@ -1112,7 +1114,7 @@ the requirements are met."
(shell-command-to-string
"evince --help"))
" -i %(outpage)"
" -p %(outpage)")) " %o")))
- ("Okular" ("okular --unique %o" (mode-io-correlate "#src:%n%b")))
+ ("Okular" ("okular --unique %o" (mode-io-correlate "#src:%n%a")))
("xdg-open" "xdg-open %o"))))
"Alist of built-in viewer specifications.
This variable should not be changed by the user who can use
- [elpa] 110/299: Set default environment for some class styles., (continued)
- [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
- [elpa] 112/299: Add new variable `LaTeX-default-document-environment'., Stefan Monnier, 2014/11/01
- [elpa] 111/299: Add history variables in some style files., Stefan Monnier, 2014/11/01
- [elpa] 115/299: Document LaTeX-default-document-environment., Stefan Monnier, 2014/11/01
- [elpa] 114/299: Wrap dollars around active region typing `$'., Stefan Monnier, 2014/11/01
- [elpa] 119/299: Fixes to TeX-arg-index-tag, TeX-arg-cite, TeX-parse-arguments., Stefan Monnier, 2014/11/01
- [elpa] 117/299: Insert one $ when point is in a verbatim construct., Stefan Monnier, 2014/11/01
- [elpa] 109/299: Fix in TeX-arg-insert-braces., Stefan Monnier, 2014/11/01
- [elpa] 121/299: Silence some compilation warning., Stefan Monnier, 2014/11/01
- [elpa] 124/299: Make forward PDF search with Okular work.,
Stefan Monnier <=
- [elpa] 123/299: Fix docstring of `TeX-source-correlate-sync-source'., Stefan Monnier, 2014/11/01
- [elpa] 116/299: Temporary fix for font-latex-jit-lock-force-redisplay., Stefan Monnier, 2014/11/01
- [elpa] 126/299: Fix for autogen.sh., Stefan Monnier, 2014/11/01
- [elpa] 118/299: Add new style files fancyvrb.el and xparse.el., Stefan Monnier, 2014/11/01
- [elpa] 125/299: Simplify LaTeX-env-figure function., Stefan Monnier, 2014/11/01
- [elpa] 127/299: Execute TeX-run-compile in TeX-master-directory., Stefan Monnier, 2014/11/01
- [elpa] 120/299: Move remaining .cvsignore to .gitignore., Stefan Monnier, 2014/11/01
- [elpa] 122/299: Expand biblatex style file., Stefan Monnier, 2014/11/01
- [elpa] 129/299: Document LaTeX-find-matching-begin and LaTeX-find-matching-end., Stefan Monnier, 2014/11/01
- [elpa] 128/299: New variable TeX-electric-math., Stefan Monnier, 2014/11/01