From 7751ff20ac42e65d4f72d3b7dc13e37e99d6ef2d Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 27 Feb 2014 10:27:29 +0100 Subject: [PATCH] Emacs: fixed syntec support in pdf-viewer-args --- .emacs.d/tool-pdf.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.emacs.d/tool-pdf.el b/.emacs.d/tool-pdf.el index 11c6ef7e..28916f70 100644 --- a/.emacs.d/tool-pdf.el +++ b/.emacs.d/tool-pdf.el @@ -6,7 +6,7 @@ (defvar pdf-viewer-args '("--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. 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 @@ -14,8 +14,9 @@ For instance with `zathura':\n zathura --fork\n We can use\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 -double-quotes matter and must be escaped appropriately.") +to reverse-search a PDF using SyncTeX. Note this can only work +with emacsclient since we need to communicate the command to an +existing instance.") ;;;###autoload (defun pdf-compress (&optional file)