From unknown Sun Jun 22 17:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13236: 24.3.50; insert-char case-insensitivity damaged by completion customizations Resent-From: Carsten Bormann Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Dec 2012 12:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13236 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13236@debbugs.gnu.org X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.135600818822435 (code B ref -1); Thu, 20 Dec 2012 12:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Dec 2012 12:56:28 +0000 Received: from localhost ([127.0.0.1]:51924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tlffn-0005pn-Nv for submit@debbugs.gnu.org; Thu, 20 Dec 2012 07:56:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60477) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tlffk-0005pg-Pi for submit@debbugs.gnu.org; Thu, 20 Dec 2012 07:56:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlffZ-0008Id-CO for submit@debbugs.gnu.org; Thu, 20 Dec 2012 07:56:17 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:42825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlffZ-0008IZ-93 for submit@debbugs.gnu.org; Thu, 20 Dec 2012 07:56:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlffW-0007QX-Cq for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2012 07:56:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlffT-0008IH-HP for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2012 07:56:10 -0500 Received: from mailhost.informatik.uni-bremen.de ([2001:638:708:30c9::12]:35019 helo=informatik.uni-bremen.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlffT-0008FI-1W for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2012 07:56:07 -0500 X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by informatik.uni-bremen.de (8.14.3/8.14.3) with ESMTP id qBKCtuEp019040 for ; Thu, 20 Dec 2012 13:55:56 +0100 (CET) Received: from [192.168.217.105] (p54893288.dip.t-dialin.net [84.137.50.136]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id CEEE299C; Thu, 20 Dec 2012 13:55:55 +0100 (CET) From: Carsten Bormann Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 20 Dec 2012 13:55:52 +0100 Message-Id: Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) 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.,=20 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 (Note that M-x insert-char RET asterism TAB properly shows the only match, ASTERISM.) 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. =E2=81=82 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=20 I'm interested in: (let* ((enable-recursive-minibuffers t) (input + (let ((completion-ignore-case t)) ; HACK (completing-read In GNU Emacs 24.3.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-12-17 on bob.porkrind.org Bzr revision: 111254 rudalics@gmx.at-20121217075457-afkz5nrni0hvzfkj Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure '--host=3Dx86_64-apple-darwin' '--build=3Di686-apple-darwin' '--with-ns' 'build_alias=3Di686-apple-darwin' 'host_alias=3Dx86_64-apple-darwin' 'CC=3Dgcc -mmacosx-version-min=3D10.7 -isystem = /Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOS= X.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/ = -F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/Mac= OSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks'' Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: InactiveMinibuffer Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-rcs misearch multi-isearch help-mode easymenu time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) From unknown Sun Jun 22 17:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13236: 24.3.50; insert-char case-insensitivity damaged by completion customizations 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 X-GNU-PR-Keywords: To: Carsten Bormann Cc: 13236@debbugs.gnu.org Received: via spool by 13236-submit@debbugs.gnu.org id=B13236.15659399443211 (code B ref 13236); Fri, 16 Aug 2019 07:20:01 +0000 Received: (at 13236) by debbugs.gnu.org; 16 Aug 2019 07:19:04 +0000 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 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 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 From: Lars Ingebrigtsen References: Date: Fri, 16 Aug 2019 00:18:56 -0700 In-Reply-To: (Carsten Bormann's message of "Thu, 20 Dec 2012 13:55:52 +0100") Message-ID: <874l2hr31b.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 16 03:19:11 2019 Received: (at control) by debbugs.gnu.org; 16 Aug 2019 07:19:11 +0000 Received: from localhost ([127.0.0.1]:52998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyWVy-0000q3-RH for submit@debbugs.gnu.org; Fri, 16 Aug 2019 03:19:11 -0400 Received: from quimby.gnus.org ([80.91.231.51]:55480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyWVx-0000pu-Ia for control@debbugs.gnu.org; Fri, 16 Aug 2019 03:19:09 -0400 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 1hyWVu-0003My-Lx for control@debbugs.gnu.org; Fri, 16 Aug 2019 09:19:08 +0200 Date: Fri, 16 Aug 2019 00:19:04 -0700 Message-Id: <8736i1r313.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #13236 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 13236 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 13236 + moreinfo quit From unknown Sun Jun 22 17:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13236: 24.3.50; insert-char case-insensitivity damaged by completion customizations Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Oct 2019 06:04:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13236 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Carsten Bormann Cc: 13236@debbugs.gnu.org Received: via spool by 13236-submit@debbugs.gnu.org id=B13236.157103302326471 (code B ref 13236); Mon, 14 Oct 2019 06:04:05 +0000 Received: (at 13236) by debbugs.gnu.org; 14 Oct 2019 06:03:43 +0000 Received: from localhost ([127.0.0.1]:37709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJtSI-0006st-Mh for submit@debbugs.gnu.org; Mon, 14 Oct 2019 02:03:42 -0400 Received: from [80.91.231.51] (port=50092 helo=quimby.gnus.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJtSG-0006sj-GK for 13236@debbugs.gnu.org; Mon, 14 Oct 2019 02:03:40 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJtSB-0002LQ-Cd; Mon, 14 Oct 2019 08:03:39 +0200 From: Lars Ingebrigtsen References: <874l2hr31b.fsf@mouse.gnus.org> Date: Mon, 14 Oct 2019 08:03:34 +0200 In-Reply-To: <874l2hr31b.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Fri, 16 Aug 2019 00:18:56 -0700") Message-ID: <87d0ezoocp.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > 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? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Lars Ingebrigtsen writes: > 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? Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Lars Ingebrigtsen writes: > 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? More information was requested some weeks back, but no response was given, so I'm closing this bug report. If you're still seeing this problem, please reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 14 02:03:48 2019 Received: (at control) by debbugs.gnu.org; 14 Oct 2019 06:03:48 +0000 Received: from localhost ([127.0.0.1]:37712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJtSN-0006tB-VM for submit@debbugs.gnu.org; Mon, 14 Oct 2019 02:03:48 -0400 Received: from [80.91.231.51] (port=50106 helo=quimby.gnus.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJtSL-0006t3-MU for control@debbugs.gnu.org; Mon, 14 Oct 2019 02:03:46 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJtSJ-0002LX-2e for control@debbugs.gnu.org; Mon, 14 Oct 2019 08:03:45 +0200 Date: Mon, 14 Oct 2019 08:03:42 +0200 Message-Id: <87blujooch.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #13236 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 13236 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 13236 quit Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) close 13236 quit