From: Drew Adams <drew.adams@oracle.com>
To: torys.anderson@gmail.com
Cc: emacs list <help-gnu-emacs@gnu.org>
Subject: RE: Bookmark a PDF, open in external program
Date: Tue, 10 Feb 2015 13:15:33 -0800 (PST) [thread overview]
Message-ID: <5b8fbc0e-c392-4577-8f0c-cd8d7e5df4dc@default> (raw)
In-Reply-To: <87zj8llhxi.fsf@gmail.com>
> I'm using emacs 25.0.5 and bmkp-default-handlers-for-file-types simply
> isn't working. Here's what I have:
> '(bmkp-default-handlers-for-file-types (quote (("\\.pdf$" . "xdg-open"))))
>
> Nonetheless if just opens with find-file (which is breaking for other
> reasons). Did I get something wrong?
It's better to follow up off list, I think. You can always report back
to the list with any summary info that you think might help others.
Can you use `xdg-open' otherwise than via a bookmark? Is it installed
on your machine? Is it in your PATH? If not, then that's maybe the
problem.
You can also try another file association, to see if the relevant
Bookmark+ code is working for you in general. I.e., to see whether it is
true that "bmkp-default-handlers-for-file-types simply isn't working."
For example, try adding an association such as this:
("\\.html?$" . browse-url) or this (if you have `w32-browser.el'):
("\\.doc$" . w32-browser). If that works then the problem is likely
with `xdg-open' and not with the Bookmark+ code.
Anyway, try this, if the above suggestion didn't help:
1. Load the Bookmark+ source files (*.el, not *.elc).
2. M-x debug-on-entry bmkp-default-handler-for-file
3. Try to invoke the bookmark in question (to a PDF file).
4. Open the source code for `bmkp-default-handler-for-file' and
`bmkp-default-handler-user' (in bookmark+-1.el) in a separate window
or frame, so you can follow along when you use the debugger (step 5).
5. In the debugger, use `d' to step through the code.
You can use `c' to skip through any step that it is uninteresting.
You can use `e' at any time to evaluate a sexp and see its value.
You can also use `C-h v' etc.
Let me know what you see. Thx.
prev parent reply other threads:[~2015-02-10 21:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-31 16:37 Bookmark a PDF, open in external program Tory S. Anderson
2015-01-31 18:31 ` Drew Adams
2015-01-31 18:49 ` Tory S. Anderson
2015-02-10 18:50 ` Tory S. Anderson
2015-02-10 21:15 ` Drew Adams [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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5b8fbc0e-c392-4577-8f0c-cd8d7e5df4dc@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=torys.anderson@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.
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).