From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Bookmark a PDF, open in external program Date: Tue, 10 Feb 2015 13:15:33 -0800 (PST) Message-ID: <5b8fbc0e-c392-4577-8f0c-cd8d7e5df4dc@default> References: <87lhkiewjy.fsf@gmail.com> <790c44d6-43b0-496b-8a49-29acf0ea8de0@default> <87zj8llhxi.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423602974 12884 80.91.229.3 (10 Feb 2015 21:16:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2015 21:16:14 +0000 (UTC) Cc: emacs list To: torys.anderson@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 10 22:15:59 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YLIA3-0001c9-4t for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Feb 2015 22:15:59 +0100 Original-Received: from localhost ([::1]:41985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLIA2-0000Cy-95 for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Feb 2015 16:15:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLI9l-0000BM-HY for help-gnu-emacs@gnu.org; Tue, 10 Feb 2015 16:15:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLI9i-00049X-5b for help-gnu-emacs@gnu.org; Tue, 10 Feb 2015 16:15:41 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:25427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLI9h-00048E-Iz for help-gnu-emacs@gnu.org; Tue, 10 Feb 2015 16:15:37 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t1ALFYVT012752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 10 Feb 2015 21:15:35 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t1ALFX6a029228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 10 Feb 2015 21:15:34 GMT Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t1ALFXn6029198; Tue, 10 Feb 2015 21:15:33 GMT In-Reply-To: <87zj8llhxi.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102623 Archived-At: > 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")))= ) >=20 > 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.