branch: externals/auctex
commit dc2c2d60bd0ddcb8bd2af421662d6bf251683d8c
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Make "PDF Tools" viewer available under Windows and macOS
* tex.el (TeX-view-program-list-builtin): Make entry for "PDF
Tools" available under Windows and macOS. (bug#37152)
* doc/changes.texi: Mention availability of "PDF Tools" under
Windows and macOS in `TeX-view-program-list-builtin'.
* doc/install.texi (Prerequisites): Replace "Mac OS X" with
"macOS".
---
doc/changes.texi | 9 +++++++++
doc/install.texi | 4 ++--
tex.el | 2 ++
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/doc/changes.texi b/doc/changes.texi
index b1b95e2..41e73da 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -74,6 +74,15 @@ Support for column specifiers @samp{w} and @samp{W} provided
by
of columns only works when the @samp{align} parameter is enclosed in
braces, e.g., @samp{w@{l@}@{3cm@}}. The short version @samp{wl@{3cm@}}
is not supported.
+
+@item
+Entries for @samp{PDF Tools} are added in
+@code{TeX-view-program-list-builtin} for Windows and macOS. This viewer
+can be configured under these operating systems with an entry like this
+in an init file:
+@lisp
+(setq TeX-view-program-selection '((output-pdf "PDF Tools")))
+@end lisp
@end itemize
@heading News in 12.1
diff --git a/doc/install.texi b/doc/install.texi
index 1940d9d..0e88cec 100644
--- a/doc/install.texi
+++ b/doc/install.texi
@@ -94,8 +94,8 @@ support.
@item Windows
Precompiled versions are available from
@uref{https://ftp.gnu.org/gnu/emacs/windows/}.
-@item Mac OS X
-For an overview of precompiled versions of Emacs for Mac OS X see for
+@item macOS
+For an overview of precompiled versions of Emacs for macOS see for
example @uref{https://www.emacswiki.org/emacs/EmacsForMacOS}.
@item GNU/Linux
Most GNU/Linux distributions nowadays provide a recent variant of Emacs
diff --git a/tex.el b/tex.el
index 4a28e20..95448d8 100644
--- a/tex.el
+++ b/tex.el
@@ -1266,6 +1266,7 @@ viewer."
(paper-letter "-y=Letter ")
(paper-executive "-y=Executive ")
"%d" (mode-io-correlate " \"# %n '%b'\"")) "dviout")
+ ("PDF Tools" TeX-pdf-tools-sync-view)
("SumatraPDF"
("SumatraPDF -reuse-instance"
(mode-io-correlate " -forward-search \"%b\" %n") " %o")
@@ -1275,6 +1276,7 @@ viewer."
((eq system-type 'darwin)
'(("Preview.app" "open -a Preview.app %o" "open")
("Skim" "open -a Skim.app %o" "open")
+ ("PDF Tools" TeX-pdf-tools-sync-view)
("displayline" "displayline %n %o %b" "displayline")
("open" "open %o" "open")))
(t