Emacs: fixed syntec support in pdf-viewer-args

master
Pierre Neidhardt 2014-02-27 10:27:29 +01:00
parent f0a43a9c19
commit 7751ff20ac
1 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@
(defvar pdf-viewer-args (defvar pdf-viewer-args
'("--fork" "-s" '("--fork" "-s"
"-x" "\"emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"'\"'\"%{input}\"'\"'\")) (goto-line %{line}))'\"") "-x" "emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"%{input}\")) (goto-line %{line}))'")
"List of arguments passed to `pdf-viewer' when called. "List of arguments passed to `pdf-viewer' when called.
You may want to fork the viewer so that it detects when the same You may want to fork the viewer so that it detects when the same
document is launched twice, and persists when Emacs gets closed.\n document is launched twice, and persists when Emacs gets closed.\n
@ -14,8 +14,9 @@ For instance with `zathura':\n
zathura --fork\n zathura --fork\n
We can use\n We can use\n
emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"%{input}\")) (goto-line %{line}))'\n emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"%{input}\")) (goto-line %{line}))'\n
to reverse-search a PDF using SyncTeX. Note that the quotes and to reverse-search a PDF using SyncTeX. Note this can only work
double-quotes matter and must be escaped appropriately.") with emacsclient since we need to communicate the command to an
existing instance.")
;;;###autoload ;;;###autoload
(defun pdf-compress (&optional file) (defun pdf-compress (&optional file)