From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#13236: 24.3.50; insert-char case-insensitivity damaged by completion customizations Date: Fri, 16 Aug 2019 00:18:56 -0700 Message-ID: <874l2hr31b.fsf@mouse.gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="171393"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 13236@debbugs.gnu.org To: Carsten Bormann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 16 09:20:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hyWWx-000iTG-3R for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Aug 2019 09:20:11 +0200 Original-Received: from localhost ([::1]:49942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyWWv-0006bc-K1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Aug 2019 03:20:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36164) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyWWp-0006bQ-JL for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2019 03:20:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hyWWo-0003i6-72 for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2019 03:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44177) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hyWWo-0003hm-2k for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2019 03:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hyWWn-0000rC-Ri for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2019 03:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Aug 2019 07:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13236 X-GNU-PR-Package: emacs Original-Received: via spool by 13236-submit@debbugs.gnu.org id=B13236.15659399443211 (code B ref 13236); Fri, 16 Aug 2019 07:20:01 +0000 Original-Received: (at 13236) by debbugs.gnu.org; 16 Aug 2019 07:19:04 +0000 Original-Received: from localhost ([127.0.0.1]:52995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyWVs-0000pj-Et for submit@debbugs.gnu.org; Fri, 16 Aug 2019 03:19:04 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:55462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyWVq-0000pZ-Sg for 13236@debbugs.gnu.org; Fri, 16 Aug 2019 03:19:03 -0400 Original-Received: from [50.225.213.182] (helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hyWVm-0003Mk-MN; Fri, 16 Aug 2019 09:19:01 +0200 In-Reply-To: (Carsten Bormann's message of "Thu, 20 Dec 2012 13:55:52 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165189 Archived-At: Carsten Bormann 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