emacs-devel
[Top][All Lists]
Advanced

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

Re: [pcomplete.el (pcomplete-completions-at-point)] Why max?


From: Tadeus Prastowo
Subject: Re: [pcomplete.el (pcomplete-completions-at-point)] Why max?
Date: Wed, 20 Mar 2019 17:14:57 +0100

On Wed, Mar 20, 2019 at 3:00 PM Stefan Monnier <address@hidden> wrote:
>
> > $ emacs -Q
> > M-x shell
> > cd /tmp
> > mkdir ABCD\ EF\ GHIJKL
> > cd ABCD\ EF<tab>
> >
> > The echo area shows "No match".
>
> I see it now!
> I just pushed the fix below which seems to do the trick!

I confirm that commit 18fc4ac5294d85e37d9e544c04b5d4e89ef3237c solves
the problem.

Why the problem seems to be dependent on the number of characters and
their cases?

Thank you very much.

>         Stefan

--
Best regards,
Tadeus

>  * lisp/minibuffer.el (completion-table-subvert): Fix typo from rev 5697ca55cb
>
> diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
> index df0acbb343..dbd24dfa0a 100644
> --- a/lisp/minibuffer.el
> +++ b/lisp/minibuffer.el
> @@ -269,7 +269,7 @@ completion-table-subvert
>                      (+ beg (- (length s1) (length s2))))
>                . ,(and (eq (car-safe res) 'boundaries) (cddr res)))))
>           ((stringp res)
> -          (if (string-prefix-p s2 string completion-ignore-case)
> +          (if (string-prefix-p s2 res completion-ignore-case)
>                (concat s1 (substring res (length s2)))))
>           ((eq action t)



reply via email to

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