Emacs 24.5 on openSuse Tumbleweed. *.org file with a link to a pdf:
[[.\somefile.pdf::2][myfile p 2]]
I'm using the PDF Tools to display a PDF in Emacs. What I expect is that page 2 of the PDF will be shown. But it always opens on page 1.
I have no idea, what could be wrong. I asked on the orgmode-mailinglist, as well as the maintainer of org-pdfview.el -- without any success.
Unfortunately I'm lacking of lisp skills. How could I debug e.g. org-pdfview.el and find out, why it does not provide a pagenumber to PDF-Tools?
I open org-pdfview.el, M-x eval-buffer, point the cursor inside a function and "instrument" it: C-u S-M-C-x. But how can I change to an org-mode buffer containing a link like given above? If I just change the buffer and open a link C-c C-o
, I never get any reaction inside the buffer of org-pdfview.el.
Well, I ran out of ideas.
Edit:
In my .emacs there are these commands:
(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))