unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Robert Weiner <rsw@gnu.org>, rswgnu@gmail.com, 44365@debbugs.gnu.org
Subject: bug#44365: 27.1; intern-soft given a symbol never returns nil
Date: Sun, 1 Nov 2020 15:27:39 +0100	[thread overview]
Message-ID: <CAArVCkSk2A3Pt8jkGc+eAMQo8jTCC+qqcnc9bRCvLpxx8agG4g@mail.gmail.com> (raw)
In-Reply-To: <87mu01b24i.fsf@gnus.org>

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	other threads:[~2020-11-01 14:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-01  5:04 bug#44365: 27.1; intern-soft given a symbol never returns nil Robert Weiner
2020-11-01 13:19 ` Lars Ingebrigtsen
2020-11-01 13:55   ` Robert Weiner
2020-11-01 14:09     ` Lars Ingebrigtsen
2020-11-01 14:27       ` Philipp Stephani [this message]
2020-11-01 14:31       ` Philipp Stephani
2020-11-01 14:20     ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAArVCkSk2A3Pt8jkGc+eAMQo8jTCC+qqcnc9bRCvLpxx8agG4g@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=44365@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=rsw@gnu.org \
    --cc=rswgnu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).