From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-pdfview-open doesn't work anymore Date: Sat, 06 Feb 2016 17:41:23 +0100 Message-ID: <8737t5pz9o.fsf@nicolasgoaziou.fr> References: <87a8nfzp44.fsf@free.fr> <8760y3qdfw.fsf@nicolasgoaziou.fr> <87si16pylj.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS5tM-0000Q0-TI for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 11:39:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aS5tJ-0005Hd-La for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 11:39:24 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS5tJ-0005HE-Ex for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 11:39:21 -0500 In-Reply-To: (Michael Brand's message of "Sat, 6 Feb 2016 09:08:37 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Brand Cc: Org Mode , Julien Cubizolles Hello, Michael Brand writes: > I just notice that in our case at least in case of wrong-type-argument the > `cmd' is missing, so I suggest > > ((wrong-number-of-arguments wrong-type-argument invalid-function) > (user-error "Please see Org News for version 9.0 about \ > `org-file-apps'--Lisp error: The function %S leads to %S" cmd err)) > > for the attached intermediate patch version. For the above example of > (zerop nil) it would not only report "wrong-type-argument" and > "numberp" together with "nil" but also "zerop" which in our case is > the registered application, the source of the problem where the user > needs to look. IMO, notifying user that there's something rotten in the state of `org-file-apps' is enough. There's no need to go into the gory details of the problem. Anyway, if you feel strongly about it, your patch looks good and you can push it. Thank you. Regards, -- Nicolas Goaziou