emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64351: closed (probabe bug associated with “completion-regexp-list”)


From: GNU bug Tracking System
Subject: bug#64351: closed (probabe bug associated with “completion-regexp-list”)
Date: Sun, 02 Jul 2023 06:19:02 +0000

Your message dated Sun, 02 Jul 2023 09:18:54 +0300
with message-id <833526q1ip.fsf@gnu.org>
and subject line Re: bug#64351: probabe bug associated with 
“completion-regexp-list”
has caused the debbugs.gnu.org bug report #64351,
regarding probabe bug associated with “completion-regexp-list”
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
64351: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64351
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: probabe bug associated with “completion-regexp-list” Date: Thu, 29 Jun 2023 18:53:28 +0000
Evaluate this:

    (setq completion-regexp-list '("^[^-]"))

Then type “C-h v -l TAB”, an error will be thrown.

--
shynur


--- End Message ---
--- Begin Message --- Subject: Re: bug#64351: probabe bug associated with “completion-regexp-list” Date: Sun, 02 Jul 2023 09:18:54 +0300
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: one.last.kiss@outlook.com,  64351@debbugs.gnu.org
> Date: Sat, 01 Jul 2023 10:19:50 -0400
> 
> > Would you mind telling more about valid uses of this?
> > I'd like to improve the documentation.
> 
> Here's what I know: `completion-regexp-list` used to be virtually unused
> in Emacs's code base, so I don't know what was its intended use.
> 
> But when completion UIs started to offer other styles than just
> prefix-based completion, they also started to use
> `try/all/test-completion` more "internally" (i.e. for intermediate
> computations rather than to compute the final list of completions
> displayed to the user) and they did it without paying attention to
> `completion-regexp-list`, i.e. in ways which tended to just misbehave
> when `completion-regexp-list` wasn't nil.
> 
> So, in practice nowadays, the only reliable way to use
> `completion-regexp-list` is to think of it as an optional argument to
> `try/all/test-completion`, but one that has to be provided via a nearby
> let-binding rather than by listing it explicitly at the call site.

Thanks, I added something along these lines to the documentation.

> > You are saying that you don't like my proposed patch for the emacs-29
> > branch, and would even prefer to leave it unfixed?
> 
> Your patch is harmless, IMO, so it's OK to install it.

Installed on the emacs-29 branch, and closing the bug.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]