From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: ox-publish: opaque error message when giving a nonexisting file [8.2.1 (8.2.1-dist @ /usr/share/emacs/site-lisp/org-mode/)] Date: Mon, 25 Nov 2013 23:39:50 +0100 Message-ID: <87siuk85s9.fsf@gmail.com> References: <87siuk9m1d.wl%arne_bab@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl4of-0000kr-IR for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 17:39:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vl4oX-0004Ow-5u for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 17:39:41 -0500 Received: from mail-ea0-x22f.google.com ([2a00:1450:4013:c01::22f]:62700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl4oW-0004Oq-Tu for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 17:39:33 -0500 Received: by mail-ea0-f175.google.com with SMTP id z10so2886016ead.6 for ; Mon, 25 Nov 2013 14:39:32 -0800 (PST) In-Reply-To: <87siuk9m1d.wl%arne_bab@web.de> (Arne Babenhauserheide's message of "Mon, 25 Nov 2013 23:03:26 +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: arne_bab@web.de Cc: emacs-orgmode@gnu.org Hello, Arne Babenhauserheide writes: > When you set a publishing project which :include 's a non-existant > file, the error message is=20 > > +: Wrong type argument: integerp, nil > > This should instead be something like =E2=80=9Cspecified nonexstient file= =E2=80=9D.=20 > > The function responsible to this is=20 > > (defun org-publish-cache-ctime-of-src (file) > "Get the ctime of FILE as an integer." > (let ((attr (file-attributes > (expand-file-name (or (file-symlink-p file) file) > (file-name-directory file))))) > (+ (lsh (car (nth 5 attr)) 16) > (cadr (nth 5 attr))))) > > (file-attributes checked to return a clear error message. Thank you for the detailed report. This should be fixed. Regards, --=20 Nicolas Goaziou