emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] PDF-tools... and LaTeX


From: AW
Subject: Re: [O] PDF-tools... and LaTeX
Date: Tue, 17 Nov 2015 09:17:07 +0100
User-agent: KMail/4.14.10 (Linux/4.3.0-1-default; KDE/4.14.12; x86_64; ; )

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]