From: Lars Ingebrigtsen <larsi@gnus.org>
To: Carsten Bormann <cabo@tzi.org>
Cc: 13236@debbugs.gnu.org
Subject: bug#13236: 24.3.50; insert-char case-insensitivity damaged by completion customizations
Date: Fri, 16 Aug 2019 00:18:56 -0700 [thread overview]
Message-ID: <874l2hr31b.fsf@mouse.gnus.org> (raw)
In-Reply-To: <B3BB368E-6297-4940-BD6B-7E843570328A@tzi.org> (Carsten Bormann's message of "Thu, 20 Dec 2012 13:55:52 +0100")
Carsten Bormann <cabo@tzi.org> writes:
> insert-char prompts for a Unicode character name.
>
> As those are typically all upper case, and the user is likely to enter
> lower case input, the completion needs to be case-insensitive.
>
> This works as long as there is no customization of the completion.
> E.g.,
> M-x insert-char RET gree TAB
> shows a number of greek characters, and a number of characters whose
> names start with "GREEN": GREEN APPLE, GREEN BOOK, GREEN HEART.
>
> 1) For
>
> (setq completion-styles '(partial-completion initials))
>
> M-x insert-char RET gree TAB
> leads to:
>
> completion--some: Internal error: GREEN BOOK doesn't match \`gree
(I'm going through old bug reports that have unfortunately gotten no
responses yet.)
I tried reproducing this in Emacs 27, and I didn't get that error
message -- instead TAB seemed to complete as normal.
Are you still seeing this error in modern Emacsen?
> 2) For
>
> (setq completion-pcm-complete-word-inserts-delimiters t)
>
> M-x insert-char RET SPC ellipsis TAB
>
> (note the SPC) at the prompt doesn't provide a match, while
>
> M-x insert-char RET SPC ELLIPSIS TAB
>
> shows several character names that contain the word ELLIPSIS.
Ditto with this case -- I get lots of ELLIPSIS completions with "
ellipsis".
> I didn't try this exhaustively, but it seems there are several
> interactions the current code does not consider.
>
> Patching read-char-by-name like this seems to make work the cases
> I'm interested in:
>
> (let* ((enable-recursive-minibuffers t)
> (input
> + (let ((completion-ignore-case t)) ; HACK
> (completing-read
Looks like pretty much this was done in 2013 -- the code now reads:
(let* ((enable-recursive-minibuffers t)
(completion-ignore-case t)
(input
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-08-16 7:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-20 12:55 bug#13236: 24.3.50; insert-char case-insensitivity damaged by completion customizations Carsten Bormann
2019-08-16 7:18 ` Lars Ingebrigtsen [this message]
2019-10-14 6:03 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874l2hr31b.fsf@mouse.gnus.org \
--to=larsi@gnus.org \
--cc=13236@debbugs.gnu.org \
--cc=cabo@tzi.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.