From mboxrd@z Thu Jan 1 00:00:00 1970 From: AW Subject: Re: PDF-tools... and LaTeX Date: Tue, 17 Nov 2015 09:17:07 +0100 Message-ID: <6379615.HOOKOosaiH@linux-k2bd.site> References: <3135430.GIe9WkF5XZ@linux-k2bd.site> <87r3jp9ykj.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZybRz-000814-S1 for emacs-orgmode@gnu.org; Tue, 17 Nov 2015 03:17:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZybRw-0007sU-NK for emacs-orgmode@gnu.org; Tue, 17 Nov 2015 03:17:15 -0500 Received: from mailout07.t-online.de ([194.25.134.83]:39075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZybRw-0007sE-H8 for emacs-orgmode@gnu.org; Tue, 17 Nov 2015 03:17:12 -0500 In-Reply-To: <87r3jp9ykj.fsf@alphaville.usersys.redhat.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Nick Dokos Am Montag, 16. November 2015, 20:58:20 schrieb Nick Dokos: > > From here https://github.com/politza/pdf-tools/issues/128 > > is this setup for .emacs: > > > > ============= 8< ============== > > > > > > (pdf-tools-install) > > (load "pdf-tools") > > (setq TeX-view-program-selection '((output-dvi "Okular") > > (output-pdf "PDF Tools") ;; > > )) > > > > (require 'subr-x) > > (defun th/pdf-view-revert-buffer-maybe (file) > > (when-let ((buf (find-buffer-visiting file))) > > (with-current-buffer buf > > (when (derived-mode-p 'pdf-view-mode) > > (pdf-view-revert-buffer nil t))))) > > > > (add-hook 'TeX-after-TeX-LaTeX-command-finished-hook > > > > #'th/pdf-view-revert-buffer-maybe) > > > > ================ >8 ============ > > > > If I compile a *.tex file again, I get the error > > > > "error in process sentinel: Symbol's function definition is void: > > when-let" > > > > ...and the PDF won't get updated. > > So when-let is not defined above, and it is not defined by emacs, so you > got to get the definition from somewhere. Go back to the link and you'll > see further down that the OP complains about the same thing. The > solution seems to be > > (require 'subr-x) Yes, well, this is already part of the code I posted, see above. However, thank you, I admit my question is a little bit OT! Regards, -- Alexander