* All completion fragments get added to obarray
@ 2022-05-12 13:35 JD Smith
2022-05-17 3:06 ` Michael Heerdegen
0 siblings, 1 reply; 2+ messages in thread
From: JD Smith @ 2022-05-12 13:35 UTC (permalink / raw)
To: emacs-devel; +Cc: daniel
[-- Attachment #1: Type: text/plain, Size: 517 bytes --]
In Emacs 27 or 28, each and every partial fragment of text introduced to the completion system gets put into obarray. From emacs -Q:
(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.
[-- Attachment #2: Type: text/html, Size: 2661 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-17 3:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12 13:35 All completion fragments get added to obarray JD Smith
2022-05-17 3:06 ` Michael Heerdegen
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).