emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Missing agenda files file causes org to fail [9.1.2 (9.1.2-22-ga2a034-elpaplus)]
@ 2017-10-27 18:16 Allen Li
  2017-10-28  8:44 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Allen Li @ 2017-10-27 18:16 UTC (permalink / raw)
  To: emacs-orgmode

If org-agenda-files is set to a file through customize.el and that
file is missing, Org will fail to load at all.

Org should not fail to load, either it should create an empty file or
it should print a warning and still load itself.  I think the former
would be easier to implement.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug: Missing agenda files file causes org to fail [9.1.2 (9.1.2-22-ga2a034-elpaplus)]
  2017-10-27 18:16 Bug: Missing agenda files file causes org to fail [9.1.2 (9.1.2-22-ga2a034-elpaplus)] Allen Li
@ 2017-10-28  8:44 ` Nicolas Goaziou
  2017-10-29 21:33   ` Allen Li
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2017-10-28  8:44 UTC (permalink / raw)
  To: Allen Li; +Cc: emacs-orgmode

Hello,

Allen Li <vianchielfaura@gmail.com> 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?

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug: Missing agenda files file causes org to fail [9.1.2 (9.1.2-22-ga2a034-elpaplus)]
  2017-10-28  8:44 ` Nicolas Goaziou
@ 2017-10-29 21:33   ` Allen Li
  2017-10-29 23:52     ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Allen Li @ 2017-10-29 21:33 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

On Sat, Oct 28, 2017 at 1:44 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Hello,
>
> Allen Li <vianchielfaura@gmail.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug: Missing agenda files file causes org to fail [9.1.2 (9.1.2-22-ga2a034-elpaplus)]
  2017-10-29 21:33   ` Allen Li
@ 2017-10-29 23:52     ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2017-10-29 23:52 UTC (permalink / raw)
  To: Allen Li; +Cc: emacs-orgmode

Hello,

Allen Li <vianchielfaura@gmail.com> writes:

> 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

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou                                                0x80A93738

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-29 23:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-27 18:16 Bug: Missing agenda files file causes org to fail [9.1.2 (9.1.2-22-ga2a034-elpaplus)] Allen Li
2017-10-28  8:44 ` Nicolas Goaziou
2017-10-29 21:33   ` Allen Li
2017-10-29 23:52     ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).