[Top][All Lists]

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

Re: non-nil not valid any more?

From: Michael Heerdegen
Subject: Re: non-nil not valid any more?
Date: Thu, 11 Jun 2020 20:10:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Andreas Röhler <> 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.


reply via email to

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