all messages for Emacs-related lists mirrored at yhetil.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:31:49 +0100	[thread overview]
Message-ID: <CAArVCkR0JPRRAxQ-ft14+B-q7HQPbUpBuF=EoQBm61T3OYmA8Q@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)

I don't think this can ever return non-nil (assuming other-obarray is
a separate obarray from the default one), as the reader interns
symbols in the default obarray, so the symbol isn't found in the other
obarray:

(let ((other-obarray (make-vector 10 nil)))
  (list (intern-soft 'foo other-obarray)
        (intern "foo" other-obarray)
        (intern-soft 'foo other-obarray)))
=> (nil foo nil)





  parent reply	other threads:[~2020-11-01 14:31 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
2020-11-01 14:31       ` Philipp Stephani [this message]
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

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

  git send-email \
    --in-reply-to='CAArVCkR0JPRRAxQ-ft14+B-q7HQPbUpBuF=EoQBm61T3OYmA8Q@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 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.