From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Irrelevant/misleading error message (due to bad syntax in init-file) Date: Tue, 15 May 2018 13:50:41 -0400 Message-ID: <87mux04xla.fsf@alphaville.usersys.redhat.com> References: <23290.50105.737996.252220@frac.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIe69-0000UR-2m for emacs-orgmode@gnu.org; Tue, 15 May 2018 13:50:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIe65-00054a-Uk for emacs-orgmode@gnu.org; Tue, 15 May 2018 13:50:53 -0400 Received: from [195.159.176.226] (port=50708 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIe65-00053k-Mv for emacs-orgmode@gnu.org; Tue, 15 May 2018 13:50:49 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fIe3w-0001b8-BW for emacs-orgmode@gnu.org; Tue, 15 May 2018 19:48:36 +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 Alain.Cochard@unistra.fr 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