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

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

bug#44365: 27.1; intern-soft given a symbol never returns nil


From: Philipp Stephani
Subject: bug#44365: 27.1; intern-soft given a symbol never returns nil
Date: Sun, 1 Nov 2020 15:27:39 +0100

Am So., 1. Nov. 2020 um 15:10 Uhr schrieb Lars Ingebrigtsen <larsi@gnus.org>:
>
> Robert Weiner <rsw@gnu.org> writes:
>
> > "Return the canonical symbol named NAME, or nil if none exists.
> > NAME may be a string or a symbol.  If it is a symbol, that exact
> > symbol is searched for."
> >
> > So, the doc string must need changing if your view is correct.
>
> No, it's talking about searching for a symbol in a different obarray, I
> think (the second argument to intern-soft):
>
> (intern-soft 'foo other-obarray)
>


You can also search for a symbol in the current obarray, as long as
the symbol is uninterned:
(intern-soft '#:foo)
(Not that this is very useful, searching for an uninterned symbol will
always return nil)





reply via email to

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