From: Pablo S. Casas <pabloscasas@gmail.com>
To: AW <alexander.willand@t-online.de>
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 18:00:50 +0100 (CET) [thread overview]
Message-ID: <20161109.180050.1019973336738069806.pabloscasas@gmail.com> (raw)
In-Reply-To: <7214691.semUaP70I3@linux-k2bd.site>
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
next prev parent reply other threads:[~2016-11-09 17:00 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 [this message]
2016-11-09 19:10 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161109.180050.1019973336738069806.pabloscasas@gmail.com \
--to=pabloscasas@gmail.com \
--cc=alexander.willand@t-online.de \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.