all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* non-nil not valid any more?
@ 2020-06-11 16:54 Andreas Röhler
  2020-06-11 17:06 ` tomas
  2020-06-11 18:10 ` Michael Heerdegen
  0 siblings, 2 replies; 14+ messages in thread
From: Andreas Röhler @ 2020-06-11 16:54 UTC (permalink / raw)
  To: Help GNU Emacs

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)

GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32, 
cairo version 1.16.0) of 2020-06-10

Thanks,
Andreas



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

* Re: non-nil not valid any more?
  2020-06-11 16:54 non-nil not valid any more? Andreas Röhler
@ 2020-06-11 17:06 ` tomas
  2020-06-11 17:14   ` Eli Zaretskii
  2020-06-11 18:10 ` Michael Heerdegen
  1 sibling, 1 reply; 14+ messages in thread
From: tomas @ 2020-06-11 17:06 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 349 bytes --]

On Thu, Jun 11, 2020 at 06:54:23PM +0200, Andreas Röhler wrote:
> Hi,
> 
> IIRC it was possible to write something like
> 
> (if non-nil (message "%s" "Wahr")(message "%s" "Falsch"))

Hm. I didn't know about this one. "My" Emacs calls it `t' ;-)

Now more seriously: what would be the difference between
`non-nil' and '?

Cheers
-- t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: non-nil not valid any more?
  2020-06-11 17:06 ` tomas
@ 2020-06-11 17:14   ` Eli Zaretskii
  2020-06-11 17:41     ` Michael Albinus
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2020-06-11 17:14 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Thu, 11 Jun 2020 19:06:13 +0200
> From: <tomas@tuxteam.de>
> 
> > IIRC it was possible to write something like
> > 
> > (if non-nil (message "%s" "Wahr")(message "%s" "Falsch"))
> 
> Hm. I didn't know about this one. "My" Emacs calls it `t' ;-)

Isn't `t` an obsolete alias for `non-nil`?



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

* Re: non-nil not valid any more?
  2020-06-11 17:14   ` Eli Zaretskii
@ 2020-06-11 17:41     ` Michael Albinus
  2020-06-11 17:58       ` Stefan Monnier
  0 siblings, 1 reply; 14+ messages in thread
From: Michael Albinus @ 2020-06-11 17:41 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Thu, 11 Jun 2020 19:06:13 +0200
>> From: <tomas@tuxteam.de>
>>
>> > IIRC it was possible to write something like
>> >
>> > (if non-nil (message "%s" "Wahr")(message "%s" "Falsch"))
>>
>> Hm. I didn't know about this one. "My" Emacs calls it `t' ;-)
>
> Isn't `t` an obsolete alias for `non-nil`?

Not obsolete. It's already removed in master.



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

* Re: non-nil not valid any more?
  2020-06-11 17:41     ` Michael Albinus
@ 2020-06-11 17:58       ` Stefan Monnier
  2020-06-11 18:00         ` Drew Adams
  0 siblings, 1 reply; 14+ messages in thread
From: Stefan Monnier @ 2020-06-11 17:58 UTC (permalink / raw)
  To: help-gnu-emacs

>> Isn't `t` an obsolete alias for `non-nil`?
> Not obsolete. It's already removed in master.

... which was hence renamed `maser`.


        Sefan




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

* RE: non-nil not valid any more?
  2020-06-11 17:58       ` Stefan Monnier
@ 2020-06-11 18:00         ` Drew Adams
  2020-06-11 18:44           ` tomas
  0 siblings, 1 reply; 14+ messages in thread
From: Drew Adams @ 2020-06-11 18:00 UTC (permalink / raw)
  To: Stefan Monnier, help-gnu-emacs

> >> Isn't `t` an obsolete alias for `non-nil`?
> > Not obsolete. It's already removed in master.
> 
> ... which was hence renamed `maser`.

So `masnon-niler' is no longer supported? ;-)



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

* Re: non-nil not valid any more?
  2020-06-11 16:54 non-nil not valid any more? Andreas Röhler
  2020-06-11 17:06 ` tomas
@ 2020-06-11 18:10 ` Michael Heerdegen
  2020-06-12 10:48   ` Andreas Röhler
  1 sibling, 1 reply; 14+ messages in thread
From: Michael Heerdegen @ 2020-06-11 18:10 UTC (permalink / raw)
  To: help-gnu-emacs

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.




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

* Re: non-nil not valid any more?
  2020-06-11 18:00         ` Drew Adams
@ 2020-06-11 18:44           ` tomas
  2020-06-11 19:18             ` Drew Adams
  0 siblings, 1 reply; 14+ messages in thread
From: tomas @ 2020-06-11 18:44 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

On Thu, Jun 11, 2020 at 11:00:46AM -0700, Drew Adams wrote:
> > >> Isn't `t` an obsolete alias for `non-nil`?
> > > Not obsolete. It's already removed in master.
> > 
> > ... which was hence renamed `maser`.
> 
> So `masnon-niler' is no longer supported? ;-)

Hey, folks -- you managed to confuse the hell out of me ;-)

Cheers
-- t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* RE: non-nil not valid any more?
  2020-06-11 18:44           ` tomas
@ 2020-06-11 19:18             ` Drew Adams
  2020-06-11 20:23               ` tomas
  0 siblings, 1 reply; 14+ messages in thread
From: Drew Adams @ 2020-06-11 19:18 UTC (permalink / raw)
  To: tomas, help-gnu-emacs

> > > >> Isn't `t` an obsolete alias for `non-nil`?
> > > > Not obsolete. It's already removed in master.
> > >
> > > ... which was hence renamed `maser`.
> >
> > So `masnon-niler' is no longer supported? ;-)
> 
> Hey, folks -- you managed to confuse the hell out of me ;-)

Sorry.  I think Stefan was making a joke about
the letter `t' having been removed.  Mine was
just to replace `t' with `non-nil'.  Ignore...



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

* Re: non-nil not valid any more?
  2020-06-11 19:18             ` Drew Adams
@ 2020-06-11 20:23               ` tomas
  2020-06-11 21:19                 ` Stefan Monnier
  0 siblings, 1 reply; 14+ messages in thread
From: tomas @ 2020-06-11 20:23 UTC (permalink / raw)
  To: Drew Adams; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

On Thu, Jun 11, 2020 at 12:18:26PM -0700, Drew Adams wrote:
> > > > >> Isn't `t` an obsolete alias for `non-nil`?
> > > > > Not obsolete. It's already removed in master.
> > > >
> > > > ... which was hence renamed `maser`.
> > >
> > > So `masnon-niler' is no longer supported? ;-)
> > 
> > Hey, folks -- you managed to confuse the hell out of me ;-)
> 
> Sorry.  I think Stefan was making a joke about
> the letter `t' having been removed.  Mine was
> just to replace `t' with `non-nil'.  Ignore...

No need to apologize: though initially confused, I had my fun, too :)

Cheers
-- t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: non-nil not valid any more?
  2020-06-11 20:23               ` tomas
@ 2020-06-11 21:19                 ` Stefan Monnier
  2020-06-12  7:43                   ` tomas
  2020-06-13  9:36                   ` Michael Heerdegen
  0 siblings, 2 replies; 14+ messages in thread
From: Stefan Monnier @ 2020-06-11 21:19 UTC (permalink / raw)
  To: help-gnu-emacs

Hi omas,

> No need o apologize: hough iniially confused, I had my fun, oo :)

Wha?


        Sefan




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

* Re: non-nil not valid any more?
  2020-06-11 21:19                 ` Stefan Monnier
@ 2020-06-12  7:43                   ` tomas
  2020-06-13  9:36                   ` Michael Heerdegen
  1 sibling, 0 replies; 14+ messages in thread
From: tomas @ 2020-06-12  7:43 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]

On Thu, Jun 11, 2020 at 05:19:40PM -0400, Stefan Monnier wrote:
> Hi omas,
> 
> > No need o apologize: hough iniially confused, I had my fun, oo :)
> 
> Wha?

;-D

-- omás

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: non-nil not valid any more?
  2020-06-11 18:10 ` Michael Heerdegen
@ 2020-06-12 10:48   ` Andreas Röhler
  0 siblings, 0 replies; 14+ messages in thread
From: Andreas Röhler @ 2020-06-12 10:48 UTC (permalink / raw)
  To: help-gnu-emacs


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.






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

* Re: non-nil not valid any more?
  2020-06-11 21:19                 ` Stefan Monnier
  2020-06-12  7:43                   ` tomas
@ 2020-06-13  9:36                   ` Michael Heerdegen
  1 sibling, 0 replies; 14+ messages in thread
From: Michael Heerdegen @ 2020-06-13  9:36 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: help-gnu-emacs

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>         Sefan

So we can think of you as a part of Emacs?  Good to know!

Michael.



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

end of thread, other threads:[~2020-06-13  9:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-11 16:54 non-nil not valid any more? Andreas Röhler
2020-06-11 17:06 ` tomas
2020-06-11 17:14   ` Eli Zaretskii
2020-06-11 17:41     ` Michael Albinus
2020-06-11 17:58       ` Stefan Monnier
2020-06-11 18:00         ` Drew Adams
2020-06-11 18:44           ` tomas
2020-06-11 19:18             ` Drew Adams
2020-06-11 20:23               ` tomas
2020-06-11 21:19                 ` Stefan Monnier
2020-06-12  7:43                   ` tomas
2020-06-13  9:36                   ` Michael Heerdegen
2020-06-11 18:10 ` Michael Heerdegen
2020-06-12 10:48   ` Andreas Röhler

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.