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: Andreas Schwab
Subject: bug#44365: 27.1; intern-soft given a symbol never returns nil
Date: Sun, 01 Nov 2020 15:20:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

On Nov 01 2020, Robert Weiner wrote:

> "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.

There is no bug here.  Since the symbol already exists in the obarry, it
is returned.  If you pass it a symbol that doesn't exist in the obarray,
the function returns nil.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





reply via email to

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