[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Irrelevant/misleading error message (due to bad syntax in init-f
From: |
Nick Dokos |
Subject: |
Re: [O] Irrelevant/misleading error message (due to bad syntax in init-file) |
Date: |
Tue, 15 May 2018 13:50:41 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
address@hidden writes:
> ...
> (setq org-agenda-files '"/tmp/bug-agenda.org") ; <- bad syntax!
> ...
> NB: there is no message caused by "-debug-init" related to the bad
> syntax in the setq instruction.
>
That's because it's legal: it's not bad syntax:
'"foo" is equivalent to (quote "foo"). Now `quote' inhibits
evaluation but since strings evaluate to themselves, it does
not matter whether you evaluate or not.
--
Nick
"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler