From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: frayedultrasonicaligator@disroot.org, 72511@debbugs.gnu.org
Subject: bug#72511: 30.0.50; prefix-completions is always nil in help--symbol-completion-table
Date: Sat, 17 Aug 2024 12:35:05 +0300 [thread overview]
Message-ID: <86wmkf331y.fsf@gnu.org> (raw)
In-Reply-To: <jwvv8036rey.fsf-monnier+emacs@gnu.org> (bug-gnu-emacs@gnu.org)
> Cc: 72511@debbugs.gnu.org
> Date: Wed, 14 Aug 2024 11:50:47 -0400
> From: Stefan Monnier via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> > (when help-enable-completion-autoload
> > (let ((prefixes (radix-tree-prefixes (help-definition-prefixes) string)))
> > (help--load-prefixes prefixes)))
> > (let ((prefix-completions
> > (and help-enable-completion-autoload
> > (mapcar #'intern (all-completions string definition-prefixes)))))
> >
> > By default, `help-enable-completion-autoload' is t, so this code should
> > normally run. The perceived problem here is that the definition of
> > `help-definition-prefixes' function is as follows:
> >
> > (defun help-definition-prefixes ()
> > "Return the up-to-date radix-tree form of `definition-prefixes'."
> > (when (> (hash-table-count definition-prefixes) 0)
> > (maphash (lambda (prefix files)
> > (let ((old (radix-tree-lookup help-definition-prefixes prefix)))
> > (setq help-definition-prefixes
> > (radix-tree-insert help-definition-prefixes
> > prefix (append old files)))))
> > definition-prefixes)
> > (clrhash definition-prefixes))
> > help-definition-prefixes)
> >
> > Because of the `clrhash', `definition-prefixes' will always be empty
> > after the function call to `help-definition-prefixes'.
>
> Duh, indeed.
> IIRC it's a leftover from some older version of the code.
> I think the patch below is in order.
Thanks, please install on the emacs-30 branch.
next prev parent reply other threads:[~2024-08-17 9:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-07 11:53 bug#72511: 30.0.50; prefix-completions is always nil in help--symbol-completion-table Chris Roberts via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-07 14:20 ` Eli Zaretskii
2024-08-14 15:50 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-17 9:35 ` Eli Zaretskii [this message]
2024-08-20 12:13 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=86wmkf331y.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=72511@debbugs.gnu.org \
--cc=frayedultrasonicaligator@disroot.org \
--cc=monnier@iro.umontreal.ca \
/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).