From: AW <alexander.willand@t-online.de>
To: "Pablo S. Casas" <pabloscasas@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Adapting to orgmode 9.0: deprecated usage of (org-pdfview-open link) - howto ?
Date: Wed, 09 Nov 2016 20:10:03 +0100 [thread overview]
Message-ID: <3202280.ULfv5Q6JRN@linux-k2bd.site> (raw)
In-Reply-To: <20161109.180050.1019973336738069806.pabloscasas@gmail.com>
Am Mittwoch, 9. November 2016, 18:00:50 CET schrieb Pablo S. Casas:
> From: AW <alexander.willand@t-online.de>
> Subject: [O] Adapting to orgmode 9.0: deprecated usage of (org-pdfview-open
> link) - howto ? Date: Wed, 09 Nov 2016 11:01:13 +0100
>
> > OK, I don't speak lisp, but I tried this in my .emacs:
> >
> > ,----
> >
> > | (add-to-list 'org-file-apps '("\\.pdf\\'" . (lambda (link) (
> > | org-pdfview-
> >
> > open))))
> >
> > | (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (lambda (link)
> > | (org->
> > pdfview-open))))
> > `----
>
> For me it works replacing the former:
> (add-to-list 'org-file-apps '("\\.pdf\\'" . (org-pdfview-open link)))
> (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (org-pdfview-open
> link)))
>
> by simply:
>
> (add-to-list 'org-file-apps
> '("\\.pdf\\'" . (lambda (file link) (org-pdfview-open link))))
>
> Hope it helps.
>
> Pablo
Yes! Thank you!
prev parent reply other threads:[~2016-11-09 19:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-09 10:01 Adapting to orgmode 9.0: deprecated usage of (org-pdfview-open link) - howto ? AW
2016-11-09 17:00 ` Pablo S. Casas
2016-11-09 19:10 ` 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=3202280.ULfv5Q6JRN@linux-k2bd.site \
--to=alexander.willand@t-online.de \
--cc=emacs-orgmode@gnu.org \
--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).