[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pcomplete.el (pcomplete-completions-at-point)] Why max?
From: |
Stefan Monnier |
Subject: |
Re: [pcomplete.el (pcomplete-completions-at-point)] Why max? |
Date: |
Wed, 20 Mar 2019 10:00:55 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> $ 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!
Stefan
* 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)