emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: AW <alexander.willand@t-online.de>
To: emacs-orgmode@gnu.org
Cc: "Pablo S. Casas" <pabloscasas@gmail.com>,
	Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: Re: orgmode & pdf-tools
Date: Tue, 16 Aug 2016 13:19:08 +0200	[thread overview]
Message-ID: <6552002.O9kBNmLeUn@linux-k2bd.site> (raw)
In-Reply-To: <87a8h6vt0y.fsf@saiph.selenimh>

Am Montag, 25. Juli 2016, 13:47:25 CEST schrieb Nicolas Goaziou:
> Hello,
> 
> Pablo S. Casas <pabloscasas@gmail.com> writes:
> >    After edebugging org-open-file I found a possible solution. The
> > 
> > documentation string for org-file-apps should be modified for the sexp
> > case to use the link variable instead of file.
> > 
> > #+BEGIN_SRC elisp
> > (add-to-list 'org-file-apps '("\\.pdf\\'" . (org-pdfview-open link)))
> > (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (org-pdfview-open
> > link))) #+END_SRC
> 
> I'm not sure about what the initial problem is, but there is no more
> "sexp" case in `org-file-apps' in development version. You can use
> a function instead.
> 
> 
> Regards,

@ Pablo, thank you, that solved it! Great!

@ all:
My initial setup was:

(eval-after-load 'org '(require 'org-pdfview))
 (delete '("\\.pdf\\'" . default) org-file-apps)
 (add-to-list 'org-file-apps '("\\.pdf\\'" . org-pdfview-open))
(add-to-list 'org-file-apps '("\\.pdf::\\([[:digit:]]+\\)\\'" . org-pdfview-
open))

Now and working:

 (eval-after-load 'org '(require 'org-pdfview))
 (delete '("\\.pdf\\'" . default) org-file-apps)

(add-to-list 'org-file-apps '("\\.pdf\\'" . (org-pdfview-open link)))
(add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (org-pdfview-open 
link)))

So the way to include org-pdfview-open did not work with openSuse and Emacs 
24.5

If somebody _please_ could swap the "sexp" in org-file-apps with whatever 
function, as Nicolas mentioned? It really is helpful to open a lengthy PDF at 
the right page...

And sorry for answering so late, I missed the email.

Regards,

Alexander

      reply	other threads:[~2016-08-16 11:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-03 10:19 orgmode & pdf-tools AW
2016-04-19 19:53 ` AW
2016-07-24 18:03   ` Pablo S. Casas
2016-07-25 11:47     ` Nicolas Goaziou
2016-08-16 11:19       ` AW [this message]

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=6552002.O9kBNmLeUn@linux-k2bd.site \
    --to=alexander.willand@t-online.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    --cc=pabloscasas@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).