From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Li Subject: Re: Bug: Missing agenda files file causes org to fail [9.1.2 (9.1.2-22-ga2a034-elpaplus)] Date: Sun, 29 Oct 2017 14:33:04 -0700 Message-ID: References: <87fua3y83u.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8vCd-0004sn-1m for emacs-orgmode@gnu.org; Sun, 29 Oct 2017 17:33:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8vCc-0000Wb-1I for emacs-orgmode@gnu.org; Sun, 29 Oct 2017 17:33:06 -0400 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:56903) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e8vCb-0000WI-T2 for emacs-orgmode@gnu.org; Sun, 29 Oct 2017 17:33:05 -0400 Received: by mail-qk0-x22c.google.com with SMTP id l194so13938274qke.13 for ; Sun, 29 Oct 2017 14:33:05 -0700 (PDT) In-Reply-To: <87fua3y83u.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On Sat, Oct 28, 2017 at 1:44 AM, Nicolas Goaziou wrote: > Hello, > > Allen Li writes: > >> If org-agenda-files is set to a file through customize.el and that >> file is missing, Org will fail to load at all. > > I cannot reproduce it. Could you provide the error message and a recipe? 1. emacs -Q 2. Evaluate in *scratch* buffer: (custom-set-variables '(org-agenda-files "~/some-nonexistent-file")) 3. Open up any Org file: C-x f ~/tmp.org 4. Error appears in minibuffer: File mode specification error: (file-error Opening input file No such file or directory /home/bob/some-nonexistent-file) 5. Type * asdf 6. Type M-RET, get error org-heading-components: Wrong type argument: stringp, nil This is because org.el was loaded partially (I think). Other symptoms of partial loading: #+STARTUP does not have a face, some other commands (but not all) result in errors > > Regards, > > -- > Nicolas Goaziou