Function: TeX-view-program-select-evince
TeX-view-program-select-evince is a byte-compiled function defined in
tex.el.
Signature
(TeX-view-program-select-evince DE APP)
Documentation
Select how to call the Evince-like viewer.
DE is the name of the desktop environment, APP is the name of viewer.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-view-program-select-evince (de app)
"Select how to call the Evince-like viewer.
DE is the name of the desktop environment, APP is the name of
viewer."
(if (TeX-evince-dbus-p de app :forward)
(intern (format "TeX-%s-sync-view" app))
`(,app (mode-io-correlate
;; When tex.el is loaded as response to opening a tex file
;; in a non-existent directory, we need to make sure
;; `default-directory' exists, otherwise the shell-command
;; below will error (bug#50225).
,(let ((default-directory (file-name-as-directory
(expand-file-name "~"))))
;; With evince 3, -p N opens the page *labeled* N,
;; and -i,--page-index the physical page N.
(if (string-match "--page-index"
(shell-command-to-string (concat app " --help")))
" -i %(outpage)"
" -p %(outpage)"))) " %o")))