From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Bormann Newsgroups: gmane.emacs.bugs Subject: bug#13236: 24.3.50; insert-char case-insensitivity damaged by completion customizations Date: Thu, 20 Dec 2012 13:55:52 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1356008233 31756 80.91.229.3 (20 Dec 2012 12:57:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Dec 2012 12:57:13 +0000 (UTC) To: 13236@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 20 13:57:25 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tlfgd-0001gB-8M for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Dec 2012 13:57:19 +0100 Original-Received: from localhost ([::1]:33940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlfgO-00081D-SL for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Dec 2012 07:57:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlfgH-0007jT-KF for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2012 07:57:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlfgF-0008QR-2c for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2012 07:56:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlfgE-0008QL-V0 for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2012 07:56:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TlfgM-0005qe-CN for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2012 07:57:02 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.135600818822435 (code B ref -1); Thu, 20 Dec 2012 12:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Dec 2012 12:56:28 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:68787 Archived-At: 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)