GNU bug report logs - #13236
24.3.50; insert-char case-insensitivity damaged by completion customizations

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Carsten Bormann <cabo@HIDDEN>; dated Thu, 20 Dec 2012 12:57:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Dec 2012 12:56:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 20 07:56:28 2012
Received: from localhost ([127.0.0.1]:51924 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Tlffn-0005pn-Nv
	for submit <at> 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 <cabo@HIDDEN>) id 1Tlffk-0005pg-Pi
	for submit <at> 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 <cabo@HIDDEN>) id 1TlffZ-0008Id-CO
	for submit <at> 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 <cabo@HIDDEN>)
	id 1TlffZ-0008IZ-93
	for submit <at> 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 <cabo@HIDDEN>) id 1TlffW-0007QX-Cq
	for bug-gnu-emacs@HIDDEN; Thu, 20 Dec 2012 07:56:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cabo@HIDDEN>) id 1TlffT-0008IH-HP
	for bug-gnu-emacs@HIDDEN; 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 <cabo@HIDDEN>)
	id 1TlffT-0008FI-1W
	for bug-gnu-emacs@HIDDEN; 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 <bug-gnu-emacs@HIDDEN>; 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 <cabo@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Date: Thu, 20 Dec 2012 13:55:52 +0100
Subject: 24.3.50;
	insert-char case-insensitivity damaged by completion customizations
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Message-Id: <B3BB368E-6297-4940-BD6B-7E843570328A@HIDDEN>
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-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> 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@HIDDEN
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)





Acknowledgement sent to Carsten Bormann <cabo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#13236; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.