GNU bug report logs - #78952
Bug or feature? intern-soft return non-exists symbol

Previous Next

Package: emacs;

Reported by: Lin Sun <sunlin7 <at> hotmail.com>

Date: Fri, 4 Jul 2025 04:28:03 UTC

Severity: normal

Tags: notabug

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#78952: closed (Bug or feature? intern-soft return non-exists
 symbol)
Date: Fri, 04 Jul 2025 13:35:04 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 04 Jul 2025 16:34:18 +0300
with message-id <86qzywxep1.fsf <at> gnu.org>
and subject line Re: bug#78952: Bug or feature? intern-soft return non-exists symbol
has caused the debbugs.gnu.org bug report #78952,
regarding Bug or feature? intern-soft return non-exists symbol
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
78952: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78952
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Lin Sun <sunlin7 <at> hotmail.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Bug or feature? intern-soft return non-exists symbol
Date: Fri, 4 Jul 2025 04:22:38 +0000
Hi, get confused intern-soft return a symbol which already unbound, 

Here are the lines to make a symbol then makunbound the symbol, but after that the intern-soft still return the symbol:

(setq a-test-variable-unbound-later t)

(intern-soft "a-test-variable-unbound-later")

(makunbound 'a-test-variable-unbound-later)

(boundp 'a-test-variable-unbound-later)

(intern-soft "a-test-variable-unbound-later") ;; why not nil?

It's a feature or a bug? Thanks

[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Lin Sun <sunlin7 <at> hotmail.com>
Cc: 78952-done <at> debbugs.gnu.org
Subject: Re: bug#78952: Bug or feature? intern-soft return non-exists symbol
Date: Fri, 04 Jul 2025 16:34:18 +0300
> Date: Fri, 04 Jul 2025 05:20:05 -0700
> From: Lin Sun <sunlin7 <at> hotmail.com>
> Cc: 78952 <at> debbugs.gnu.org
> 
> Thank you for comments, I use the intern-soft to detect symbols existing for package but found it's failed
> even I unbound the variables. :) 

If you want to know whether a symbol is bound as a variable use
'foundp', not 'intern-soft'.

> Please feel free to close the ticket, thank you!

Done.


This bug report was last modified 42 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.