GNU bug report logs - #14340
24.3.50; Case insensitivity with read-file-name

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: Harald Hanche-Olsen <hanche@HIDDEN>; dated Fri, 3 May 2013 06:20:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 14340) by debbugs.gnu.org; 3 May 2013 12:24:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 03 08:24:05 2013
Received: from localhost ([127.0.0.1]:56628 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UYF1u-0005dg-7Y
	for submit <at> debbugs.gnu.org; Fri, 03 May 2013 08:24:05 -0400
Received: from hylle02.itea.ntnu.no ([129.241.56.101]:48294)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <hanche+bounces@HIDDEN>) id 1UYF1q-0005dC-Cq
	for 14340 <at> debbugs.gnu.org; Fri, 03 May 2013 08:24:00 -0400
Received: from localhost (localhost [127.0.0.1])
	by hylle02.itea.ntnu.no (Postfix) with ESMTP id A2C6F2C011
	for <14340 <at> debbugs.gnu.org>; Fri,  3 May 2013 14:23:16 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at hylle02.itea.ntnu.no
Received: from localhost (unknown [IPv6:2001:700:300:1470:6915:ecf8:d6de:bc05])
	(using TLSv1 with cipher RC4-SHA (128/128 bits))
	(No client certificate requested) (Authenticated sender: hanche)
	by hylle02.itea.ntnu.no (Postfix) with ESMTPSA id 2309D171ECD;
	Fri,  3 May 2013 14:23:16 +0200 (CEST)
Date: Fri, 03 May 2013 14:23:21 +0200 (CEST)
Message-Id: <20130503.142321.637350155585874250.hanche@HIDDEN>
To: 14340 <at> debbugs.gnu.org
Subject: Re: 24.3.50; Case insensitivity with read-file-name
From: Harald Hanche-Olsen <hanche@HIDDEN>
In-Reply-To: <20130503.094951.1228770496385794619.hanche@HIDDEN>
References: <20130503.081837.977303885239716743.hanche@HIDDEN>
	<handler.14340.B.136756196815016.ack <at> debbugs.gnu.org>
	<20130503.094951.1228770496385794619.hanche@HIDDEN>
X-URL: http://www.math.ntnu.no/~hanche/
X-Mailer: Mew version 6.5 on Emacs 24.3.50 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: -4.9 (----)
X-Debbugs-Envelope-To: 14340
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.8 (------)

I had already forgotten(!) about a similar bug I reported about half a
year ago, namely #12615: It was a similar issue with completion of
unicode names in insert-char.

There is quite a bit of discussion about the general problem on that
thread. The issue seems to be both thorny and pervasive.

- Harald




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14340; Package emacs. Full text available.

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


Received: (at 14340) by debbugs.gnu.org; 3 May 2013 07:50:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 03 03:50:38 2013
Received: from localhost ([127.0.0.1]:56353 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UYAlH-00027w-Re
	for submit <at> debbugs.gnu.org; Fri, 03 May 2013 03:50:37 -0400
Received: from hylle02.itea.ntnu.no ([129.241.56.101]:40137)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <hanche+bounces@HIDDEN>) id 1UYAlE-00027k-RZ
	for 14340 <at> debbugs.gnu.org; Fri, 03 May 2013 03:50:34 -0400
Received: from localhost (localhost [127.0.0.1])
	by hylle02.itea.ntnu.no (Postfix) with ESMTP id 587F0171F24
	for <14340 <at> debbugs.gnu.org>; Fri,  3 May 2013 09:49:52 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at hylle02.itea.ntnu.no
Received: from localhost (183.69.202.84.customer.cdi.no [84.202.69.183])
	(using TLSv1 with cipher RC4-SHA (128/128 bits))
	(No client certificate requested) (Authenticated sender: hanche)
	by hylle02.itea.ntnu.no (Postfix) with ESMTPSA id CEF48171F19;
	Fri,  3 May 2013 09:49:51 +0200 (CEST)
Date: Fri, 03 May 2013 09:49:51 +0200 (CEST)
Message-Id: <20130503.094951.1228770496385794619.hanche@HIDDEN>
To: 14340 <at> debbugs.gnu.org
Subject: Re: bug#14340: Acknowledgement (24.3.50; Case insensitivity with
	read-file-name)
From: Harald Hanche-Olsen <hanche@HIDDEN>
In-Reply-To: <handler.14340.B.136756196815016.ack <at> debbugs.gnu.org>
References: <20130503.081837.977303885239716743.hanche@HIDDEN>
	<handler.14340.B.136756196815016.ack <at> debbugs.gnu.org>
X-URL: http://www.math.ntnu.no/~hanche/
X-Mailer: Mew version 6.5 on Emacs 24.3.50 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: -4.8 (----)
X-Debbugs-Envelope-To: 14340
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.7 (------)

Upon further reflection (in the bath), I think I understand the nature
of the bug, if not its resolution:

read-file-name-default let binds completion-ignore-case to the value of
read-file-name-completion-ignore-case before doing a pile of setup
work and calling completing-read.

When completion-ignore-case is buffer local, let overrides the buffer
local binding and not the global binding. But because completing-read
evaluates the variable in the minibuffer, it gets the global value
instead, i.e., nil.

(I may be wrong about some details in this, but I but this is the gist
of the problem.)

- Harald




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14340; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 3 May 2013 06:19:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 03 02:19:28 2013
Received: from localhost ([127.0.0.1]:56264 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UY9L5-0003u8-Mj
	for submit <at> debbugs.gnu.org; Fri, 03 May 2013 02:19:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42432)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <hanche+bounces@HIDDEN>) id 1UY9L2-0003ty-Gb
	for submit <at> debbugs.gnu.org; Fri, 03 May 2013 02:19:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hanche+bounces@HIDDEN>) id 1UY9KN-0007aG-QJ
	for submit <at> debbugs.gnu.org; Fri, 03 May 2013 02:18:46 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-104.1 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_MED,
	RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:48579)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hanche+bounces@HIDDEN>) id 1UY9KN-0007aC-NK
	for submit <at> debbugs.gnu.org; Fri, 03 May 2013 02:18:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53786)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hanche+bounces@HIDDEN>) id 1UY9KL-0003UV-Ao
	for bug-gnu-emacs@HIDDEN; Fri, 03 May 2013 02:18:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hanche+bounces@HIDDEN>) id 1UY9KI-0007Z9-Nn
	for bug-gnu-emacs@HIDDEN; Fri, 03 May 2013 02:18:41 -0400
Received: from hylle02.itea.ntnu.no ([129.241.56.101]:57241)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hanche+bounces@HIDDEN>) id 1UY9KI-0007Yi-Fi
	for bug-gnu-emacs@HIDDEN; Fri, 03 May 2013 02:18:38 -0400
Received: from localhost (localhost [127.0.0.1])
	by hylle02.itea.ntnu.no (Postfix) with ESMTP id AD0122C008
	for <bug-gnu-emacs@HIDDEN>; Fri,  3 May 2013 08:18:34 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at hylle02.itea.ntnu.no
Received: from localhost (183.69.202.84.customer.cdi.no [84.202.69.183])
	(using TLSv1 with cipher RC4-SHA (128/128 bits))
	(No client certificate requested) (Authenticated sender: hanche)
	by hylle02.itea.ntnu.no (Postfix) with ESMTPSA id 340F92C002;
	Fri,  3 May 2013 08:18:34 +0200 (CEST)
Date: Fri, 03 May 2013 08:18:37 +0200 (CEST)
Message-Id: <20130503.081837.977303885239716743.hanche@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50; Case insensitivity with read-file-name
From: Harald Hanche-Olsen <hanche@HIDDEN>
X-URL: http://www.math.ntnu.no/~hanche/
X-Mailer: Mew version 6.5 on Emacs 24.3.50 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -5.0 (-----)
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 (------)

This concerns what seems like wrong handling of a buffer local
variable which is let bound. To reproduce:

From emacs -Q, evaluate the following in the *scratch* buffer,
one by one:

(setq read-file-name-completion-ignore-case t)
(read-file-name "file: ")
;;; confirm that filename completion is case insensitive
(setq-local completion-ignore-case t)
(read-file-name "file: ")
;;; notice that filename completion is case sensitive,
;;; contrary to expectation

My configuration is below (emacs compiled from trunk on the day
indicated, abot three weeks ago); however, note that on the
emacs-devel list, Michael Heerdegen reports that he could reproduce
this on GNU/Linux.

In GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37)
 of 2013-04-11 on airy
Windowing system distributor `Apple', version 10.3.1187
Configured using:
 `configure --with-ns'

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

- Harald




Acknowledgement sent to Harald Hanche-Olsen <hanche@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#14340; 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.