From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#12615: 24.2.50; Non-ignored case in insert-char Date: Fri, 04 Jan 2013 02:13:13 +0200 Organization: JURTA Message-ID: <878v89u7pg.fsf@mail.jurta.org> References: <20121010.173658.77853335142870486.hanche@math.ntnu.no> <87d2xsxy9q.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357258623 31646 80.91.229.3 (4 Jan 2013 00:17:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jan 2013 00:17:03 +0000 (UTC) Cc: 12615@debbugs.gnu.org, Harald Hanche-Olsen To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 04 01:17:19 2013 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 1TquyN-0006Vc-Q1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jan 2013 01:17:19 +0100 Original-Received: from localhost ([::1]:58253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tquy8-0003hB-Eh for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jan 2013 19:17:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tquy3-0003gW-Ci for bug-gnu-emacs@gnu.org; Thu, 03 Jan 2013 19:17:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tquy2-0006w0-9F for bug-gnu-emacs@gnu.org; Thu, 03 Jan 2013 19:16:59 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tquy2-0006vv-6F for bug-gnu-emacs@gnu.org; Thu, 03 Jan 2013 19:16:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tquy5-0006XW-Os for bug-gnu-emacs@gnu.org; Thu, 03 Jan 2013 19:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Jan 2013 00:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12615 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12615-submit@debbugs.gnu.org id=B12615.135725860125102 (code B ref 12615); Fri, 04 Jan 2013 00:17:01 +0000 Original-Received: (at 12615) by debbugs.gnu.org; 4 Jan 2013 00:16:41 +0000 Original-Received: from localhost ([127.0.0.1]:42215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tquxl-0006Wk-1v for submit@debbugs.gnu.org; Thu, 03 Jan 2013 19:16:41 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:58915 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tquxi-0006Wa-OY for 12615@debbugs.gnu.org; Thu, 03 Jan 2013 19:16:39 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id D604D20012C225; Thu, 3 Jan 2013 16:16:33 -0800 (PST) In-Reply-To: <87d2xsxy9q.fsf@mail.jurta.org> (Juri Linkov's message of "Sun, 30 Dec 2012 00:56:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) 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:69354 Archived-At: >>> Some observations: C-x 8 C-m is bound to insert-char, a C function. >>> And insert-char calls read-char-by-name, which let-binds >>> completion-ignore-case to t. The clear intention is that unicode name >>> searches should always be case insensitive, and this seems always to >>> be the case if completion-ignore-case is not buffer local. >> >> Indeed, a buffer-local setting of completion-ignore-case can >> bring surprises. I think the patch below will fix this problem for this >> particular case. > > I just stumbled upon the case where this fix causes the regression: > typing `C-x 8 RET *acc TAB' results in "[No match]". > > I don't know why this case disobeys the let-binding of > `completion-ignore-case' and whether a simpler fix is possible, > but at least this patch fixes it for the emacs-24 branch: Please ignore this patch. Just search the source tree with grep "completion-ignore-case t" and see the remaining 100 places that have exactly the same problem. Take for example the first grep hit in bookmark.el. Evaluate the following in the *scratch* buffer: (make-local-variable 'completion-ignore-case) Then type `C-x r b' (`bookmark-jump') followed by a lower-case letter and TAB. Completion is not case insensitive. Maybe to fix all them at once, `read_minibuf' should make a local variable `completion-ignore-case' in the minibuffer and copy its value from the original buffer?