From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1667: 23.0.60; env var completion in shell mode - case sensitivity Date: Tue, 30 Dec 2008 14:33:34 -0800 Message-ID: <002401c96ace$a7261d70$0200a8c0@us.oracle.com> References: <000801c963c9$cccaaa20$0200a8c0@us.oracle.com> Reply-To: Drew Adams , 1667@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230677499 31427 80.91.229.12 (30 Dec 2008 22:51:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2008 22:51:39 +0000 (UTC) To: "'Drew Adams'" , <1667@emacsbugs.donarmstrong.com>, Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 30 23:52:46 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LHnS5-0006W8-Pb for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Dec 2008 23:52:42 +0100 Original-Received: from localhost ([127.0.0.1]:56216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHnQs-0004U5-53 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Dec 2008 17:51:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LHnJB-0001Uw-HU for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2008 17:43:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LHnJ9-0001TG-1V for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2008 17:43:28 -0500 Original-Received: from [199.232.76.173] (port=37270 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHnJ8-0001Sz-QS for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2008 17:43:26 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40525) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LHnJ6-0006k6-TB for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2008 17:43:25 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBUMhMOR005122; Tue, 30 Dec 2008 14:43:23 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mBUMe60a004114; Tue, 30 Dec 2008 14:40:06 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 30 Dec 2008 22:40:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1667 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12306764312629 (code B ref -1); Tue, 30 Dec 2008 22:40:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 30 Dec 2008 22:33:51 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBUMXmSp002623 for ; Tue, 30 Dec 2008 14:33:49 -0800 Original-Received: from mail.gnu.org ([199.232.76.166]:44022 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LHn8m-0000zz-VS for emacs-pretest-bug@gnu.org; Tue, 30 Dec 2008 17:32:45 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LHn9l-0005oS-DU for emacs-pretest-bug@gnu.org; Tue, 30 Dec 2008 17:33:47 -0500 Original-Received: from rcsinet11.oracle.com ([148.87.113.123]:21133 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LHn9l-0005oM-0Z for emacs-pretest-bug@gnu.org; Tue, 30 Dec 2008 17:33:45 -0500 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBUMYxcf002959 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 30 Dec 2008 22:35:00 GMT Original-Received: from acsmt702.oracle.com (acsmt702.oracle.com [141.146.40.80]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBUMSMPG026457; Tue, 30 Dec 2008 22:28:23 GMT Original-Received: from dradamslap1 (/141.144.90.249) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 30 Dec 2008 22:33:30 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <000801c963c9$cccaaa20$0200a8c0@us.oracle.com> Thread-Index: AcljycwQ3tKROwW0QquZrVDlQ99XmgHA6/pg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt702.oracle.com [141.146.40.80] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.495AA1BC.0076:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 30 Dec 2008 17:43:28 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23597 gmane.emacs.pretest.bugs:23576 Archived-At: > From: Drew Adams Sent: Sunday, December 21, 2008 4:11 PM > emacs -Q > > I'm on MS Windows. I load these two files, in order: > http://www.emacswiki.org/emacs/cygwin-mount.el > http://www.emacswiki.org/emacs/setup-cygwin.el > > M-x shell > > In buffer *shell*, I type lowercase "$hom", then hit TAB. It completes > to "$homE". > > Dunno whether that is TRT (probably not), but when I hit TAB a second > time, it shows no possible completions. Whereas, there are these > completions for "$HOME": "HOME", "HOMEDRIVE", "HOMEPATH". > > The same bug appears in Emacs 22. > > In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) > of 2008-12-19 on LENNART-69DE564 > Windowing system distributor `Microsoft Corp.', version 5.1.2600 > configured using `configure --with-gcc (3.4) --no-opt > --cflags -Ic:/g/include -fno-crossjumping' FYI - The problem comes from the two calls to `string-equal' in the definition of `comint-dynamic-simple-complete'. Even though the function goes to the trouble of binding `completion-ignore-case', it defeats this by using `string-equal', which takes no account of `completion-ignore-case'. `comint-dynamic-simple-complete' is general, and can be used for different thingies - in this case, it is called by `shell-dynamic-complete-as-environment-variable'. Should env var completion be case-insensitive on Windows? (dunno) Either (1) The calling program needs some control over the behavior of `completion-ignore-case' wrt case, so it can have a say in whether completion should be case-sensitive for a particular kind of thingy (e.g. env vars). Or (2) case-insensitive string comparison should be used everywhere in `comint-dynamic-simple-complete', for (memq system-type '(ms-dos windows-nt cygwin)).