From mboxrd@z Thu Jan 1 00:00:00 1970 From: nljlistbox2@gmail.com (N. Jackson) Subject: Capture broken with org-plus-contrib-20170917 Date: Thu, 21 Sep 2017 12:14:26 -0400 Message-ID: <87efr01125.fsf@moondust.localdomain> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dv47e-0000NA-Qr for emacs-orgmode@gnu.org; Thu, 21 Sep 2017 12:14:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dv47c-00079g-27 for emacs-orgmode@gnu.org; Thu, 21 Sep 2017 12:14:42 -0400 Received: from [195.159.176.226] (port=57736 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dv47b-00076V-QO for emacs-orgmode@gnu.org; Thu, 21 Sep 2017 12:14:39 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dv47R-00041I-Jk for emacs-orgmode@gnu.org; Thu, 21 Sep 2017 18:14:29 +0200 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" To: emacs-orgmode@gnu.org After an Emacs package update a few days ago, my Org captures no longer work. This is with org-plus-contib-20170917 from http://orgmode.org/elpa/. After I select a capture template to run, I get the error message Invalid file location: nil and setting debug-on-error I see this: Debugger entered--Lisp error: (error "Invalid file location: nil") signal(error ("Invalid file location: nil")) error("Invalid file location: %S" nil) org-capture-expand-file((concat org-directory "/notes.org")) org-capture-target-buffer((concat org-directory "/notes.org")) org-capture-set-target-location() org-capture(nil) funcall-interactively(org-capture nil) call-interactively(org-capture nil nil) command-execute(org-capture) . Checking the value returned by the concat, M-: (concat org-directory "/notes.org") the correct value "/data/org/notes.org" is returned. This is the correct file and it exists etc.. There have been no changes to my org configuration since June of 2016 and I have had no problem with my captures until the latest Emacs package update. An example of the capture templates that are suddenly failing is this one: (setq org-capture-templates '( ("n" "Note" ;; This one is a bit ugly. I see the guts of the template while the prompt is displayed. Also the PROPERTIES drawer is after the LOGBOOK instead of before. entry (file (concat org-directory "/notes.org")) "* %^{Enter Note Title} %^g\n :PROPERTIES:\n :Created: %U\n :END:\n\n%?\n%i\n" :kill-buffer t :empty-lines 1 :clock-in t :clock-resume t) ) ) I found a work-around, in that if I change the `entry' line of the capture template to read entry (file "notes.org") the capture works again (taking advantage of what I assume must be a new(ish) feature that org-directory is automatically used when the file name in the capture template is unqualified). Is this problem a new bug in Org, or is it simply that my capture templates are wrong and that they've only worked all these years by some accident? If my capture templates are valid, then I would much rather see Org put back the way it was so that they work, rather than have to go through the error-prone process of having to edit them all (I have dozens of them). Thank you and best regards, N.