emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: AW <alexander.willand@t-online.de>
To: emacs-orgmode@gnu.org
Cc: Nick Dokos <ndokos@gmail.com>
Subject: Re: PDF-tools... and LaTeX
Date: Tue, 17 Nov 2015 09:17:07 +0100	[thread overview]
Message-ID: <6379615.HOOKOosaiH@linux-k2bd.site> (raw)
In-Reply-To: <87r3jp9ykj.fsf@alphaville.usersys.redhat.com>

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

  parent reply	other threads:[~2015-11-17  8:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-16 20:17 PDF-tools... and LaTeX AW
2015-11-17  1:58 ` Nick Dokos
2015-11-17  2:17   ` briangpowell .
2015-11-17  8:17   ` AW [this message]
2015-11-17  9:26 ` PDF-tools... and LaTeX (solved) AW

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6379615.HOOKOosaiH@linux-k2bd.site \
    --to=alexander.willand@t-online.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=ndokos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).