help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: non-nil not valid any more?


From: Andreas Röhler
Subject: Re: non-nil not valid any more?
Date: Fri, 12 Jun 2020 12:48:33 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.9.0


On 11.06.20 20:10, Michael Heerdegen wrote:
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

Hi,

IIRC it was possible to write something like

(if non-nil (message "%s" "Wahr")(message "%s" "Falsch"))

Now get

Debugger entered--Lisp error: (void-variable non-nil)
Are you sure it wasn't quoted:

   (if 'non-nil (message "%s" "Wahr")(message "%s" "Falsch"))

or did you define the symbol `non-nil' as a variable (with a non-nil
value)?  :non-nil would work, too.

Michael.


Seems that was a long living mistake. As `t' is a common char, assumed in earlier lisp existed nil and non-nil as symbols for true and false.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]