From: Tadeus Prastowo <tadeus.prastowo@unitn.it>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: [pcomplete.el (pcomplete-completions-at-point)] Why max?
Date: Wed, 20 Mar 2019 17:14:57 +0100 [thread overview]
Message-ID: <CAN-HRFbJu716E86qS1rHfjC_6O+hSbZXd9aMPZJ_EX-fniT0wA@mail.gmail.com> (raw)
In-Reply-To: <jwvd0mlprz2.fsf-monnier+emacs@gnu.org>
On Wed, Mar 20, 2019 at 3:00 PM Stefan Monnier <monnier@iro.umontreal.ca> 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)
next prev parent reply other threads:[~2019-03-20 16:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-16 22:29 [pcomplete.el (pcomplete-completions-at-point)] Why max? Tadeus Prastowo
2019-03-19 9:55 ` Tadeus Prastowo
2019-03-19 16:37 ` Stefan Monnier
2019-03-19 16:40 ` Tadeus Prastowo
2019-03-20 2:09 ` Stefan Monnier
2019-03-20 11:00 ` Tadeus Prastowo
2019-03-20 14:00 ` Stefan Monnier
2019-03-20 16:14 ` Tadeus Prastowo [this message]
2019-03-20 17:11 ` Stefan Monnier
2019-03-20 17:17 ` Tadeus Prastowo
2019-03-20 23:38 ` John Wiegley
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=CAN-HRFbJu716E86qS1rHfjC_6O+hSbZXd9aMPZJ_EX-fniT0wA@mail.gmail.com \
--to=tadeus.prastowo@unitn.it \
--cc=emacs-devel@gnu.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).