From: Lars Ingebrigtsen <larsi@gnus.org>
To: JD Smith <jdtsmith@gmail.com>
Cc: 55491@debbugs.gnu.org
Subject: bug#55491: All completion fragments get added to obarray
Date: Tue, 17 May 2022 22:30:23 +0200 [thread overview]
Message-ID: <87sfp7hpgg.fsf@gnus.org> (raw)
In-Reply-To: <8AB5676F-ABCB-4849-AD65-B302AC5BDE6F@gmail.com> (JD Smith's message of "Tue, 17 May 2022 16:22:35 -0400")
JD Smith <jdtsmith@gmail.com> writes:
> (intern-soft "ohno") <C-M-x> -> nil
> (ohno <M-TAB> -> No match
> (intern-soft "ohno") <C-M-x> -> ohno :(
>
> This has the result that, e.g.:
>
> (test-completion "ohno" obarray nil) <C-M-x> ; t! Sigh
>
> will always return t during completion, for any completed fragment.
> For completion systems that complete against obarray
> (e.g. emacs-lisp), this is obviously undesirable.
Completion in emacs-lisp-mode doesn't take unbound variables into
account, I think? So putting stuff into the obarray shouldn't have much
(if any) noticeable effect.
Where do you see anything undesirable as a result of this?
(This behaviour is still present in Emacs 29.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2022-05-17 20:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-17 20:22 bug#55491: All completion fragments get added to obarray JD Smith
2022-05-17 20:30 ` Lars Ingebrigtsen [this message]
2022-05-17 22:50 ` JD Smith
2022-05-18 11:03 ` Lars Ingebrigtsen
2022-05-18 11:07 ` Lars Ingebrigtsen
2022-05-18 22:19 ` Richard Stallman
2022-05-20 0:03 ` Lars Ingebrigtsen
2022-06-04 17:59 ` Dmitry Gutov
2022-06-05 14:15 ` Lars Ingebrigtsen
2022-06-05 23:36 ` Dmitry Gutov
2022-06-06 12:44 ` Lars Ingebrigtsen
2022-06-06 21:30 ` Dmitry Gutov
2022-06-07 9:30 ` Lars Ingebrigtsen
2022-06-11 0:46 ` Dmitry Gutov
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=87sfp7hpgg.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=55491@debbugs.gnu.org \
--cc=jdtsmith@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).