From unknown Wed Jun 18 23:08:08 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#14907 <14907@debbugs.gnu.org> To: bug#14907 <14907@debbugs.gnu.org> Subject: Status: 24.3.50; Too few completions shown when case ignored Reply-To: bug#14907 <14907@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:08:08 +0000 retitle 14907 24.3.50; Too few completions shown when case ignored reassign 14907 emacs submitter 14907 Stephen Berman severity 14907 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 19 08:53:39 2013 Received: (at submit) by debbugs.gnu.org; 19 Jul 2013 12:53:39 +0000 Received: from localhost ([127.0.0.1]:37059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V0ABm-0004Hg-1t for submit@debbugs.gnu.org; Fri, 19 Jul 2013 08:53:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39150) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V0ABh-0004H7-Nm for submit@debbugs.gnu.org; Fri, 19 Jul 2013 08:53:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V0ABZ-00078Z-KR for submit@debbugs.gnu.org; Fri, 19 Jul 2013 08:53:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:59412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0ABZ-00078V-Gt for submit@debbugs.gnu.org; Fri, 19 Jul 2013 08:53:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0ABW-0004fV-Oa for bug-gnu-emacs@gnu.org; Fri, 19 Jul 2013 08:53:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V0ABU-00076z-1v for bug-gnu-emacs@gnu.org; Fri, 19 Jul 2013 08:53:22 -0400 Received: from mout.gmx.net ([212.227.17.20]:62097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0ABT-00076t-PX for bug-gnu-emacs@gnu.org; Fri, 19 Jul 2013 08:53:19 -0400 Received: from rosalinde.fritz.box ([89.245.110.192]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lp3Qu-1UWa3V2bCe-00exph for ; Fri, 19 Jul 2013 14:53:17 +0200 From: Stephen Berman To: bug-gnu-emacs@gnu.org Subject: 24.3.50; Too few completions shown when case ignored Date: Fri, 19 Jul 2013 14:53:17 +0200 Message-ID: <87ppuehfsy.fsf@rosalinde.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:NbAJVipm944spAjwCWSBbOeSNOvXU1QatWN5ia9KIDEXsccNnZn Vdyv9GYLB9mvrTh08YkKHQ1NzYC6tUHfcNnsgrqdu/R80zFGPW9yaKOMB4eLZ9aejzT3xND Lug4CjjI7vS7kMOiOgGb4POElMU5ZIpC5Xb0vbdVp7J5ks55Z2JUobubm546Uye3Y//bYto ypY5d5YYaShWPMnJZiaRQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) -1. cd /tmp; touch a A 0. emacs -Q 1. M-x set-variable RET read-file-name-completion-ignore-case RET t RET 2. C-x C-f a TAB => [Complete, but not unique] 3. TAB => *Completions* buffer shows only file `a'. Likewise, if at step 2 you type C-c C-f A TAB, then after the TAB in step 3, *Completions* shows only file `A'. If I debugged this correctly, the problem is due to completion--twq-all not distinguishing between prefix strings for completions that differ only in case. The following patch fixes this problem for me (I tried to reuse the relevant part of the requoting code, but haven't tested such cases). === modified file 'lisp/minibuffer.el' *** lisp/minibuffer.el 2013-05-30 03:18:06 +0000 --- lisp/minibuffer.el 2013-07-19 07:26:59 +0000 *************** *** 568,573 **** --- 568,580 ---- (cl-assert (string-prefix-p prefix completion 'ignore-case) t) (let* ((new (substring completion (length prefix))) (qnew (funcall qfun new)) + (rest (substring completion 0 (length prefix))) + (qrest (funcall qfun rest)) + ;; Distinguish completions that differ only in case. + (qprefix (if (completion--string-equal-p qprefix qrest) + (propertize qrest 'face + 'completions-common-part) + qprefix)) (qcompletion (concat qprefix qnew))) ;; FIXME: Similarly here, Cygwin's mapping trips this ;; assertion. In GNU Emacs 24.3.50.28 (x86_64-suse-linux-gnu, GTK+ Version 3.4.4) of 2013-07-18 on rosalinde Bzr revision: 113449 yamaoka@jpl.org-20130718112604-s5mf1r4odkd66rfe Windowing system distributor `The X.Org Foundation', version 11.0.11203000 System Description: openSUSE 12.2 (x86_64) Configured using: `configure --without-toolkit-scroll-bars CFLAGS=-g3 -O0' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default enable-multibyte-characters: t From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 20 04:20:50 2013 Received: (at 14907) by debbugs.gnu.org; 20 Jul 2013 08:20:50 +0000 Received: from localhost ([127.0.0.1]:38986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V0SPJ-0004Zc-AU for submit@debbugs.gnu.org; Sat, 20 Jul 2013 04:20:49 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:46108) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V0SPH-0004ZP-4d for 14907@debbugs.gnu.org; Sat, 20 Jul 2013 04:20:47 -0400 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r6K8Kicn027322; Sat, 20 Jul 2013 04:20:45 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id EE6E6AE2E1; Sat, 20 Jul 2013 04:20:44 -0400 (EDT) From: Stefan Monnier To: Stephen Berman Subject: Re: bug#14907: 24.3.50; Too few completions shown when case ignored Message-ID: References: <87ppuehfsy.fsf@rosalinde.fritz.box> Date: Sat, 20 Jul 2013 04:20:44 -0400 In-Reply-To: <87ppuehfsy.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Fri, 19 Jul 2013 14:53:17 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4644=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4644> : streams <1003324> : uri <1481863> X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: 14907 Cc: 14907@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > If I debugged this correctly, the problem is due to completion--twq-all > not distinguishing between prefix strings for completions that differ > only in case. The following patch fixes this problem for me (I tried to > reuse the relevant part of the requoting code, but haven't tested such > cases). Thanks for the patch. Will look at it ASAP (hopefully this week). Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 30 16:42:14 2013 Received: (at 14907-done) by debbugs.gnu.org; 30 Jul 2013 20:42:14 +0000 Received: from localhost ([127.0.0.1]:59038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V4GkI-0004ns-1P for submit@debbugs.gnu.org; Tue, 30 Jul 2013 16:42:14 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:7381) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V4GkC-0004nY-ML for 14907-done@debbugs.gnu.org; Tue, 30 Jul 2013 16:42:09 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFLd+pP/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgaxH5AOkQoDpHqBXoMT X-IPAS-Result: Av8EABK/CFFLd+pP/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgaxH5AOkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="20202863" Received: from 75-119-234-79.dsl.teksavvy.com (HELO pastel.home) ([75.119.234.79]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 Jul 2013 16:41:56 -0400 Received: by pastel.home (Postfix, from userid 20848) id 5AFAA66249; Tue, 30 Jul 2013 16:42:02 -0400 (EDT) From: Stefan Monnier To: Stephen Berman Subject: Re: bug#14907: 24.3.50; Too few completions shown when case ignored Message-ID: References: <87ppuehfsy.fsf@rosalinde.fritz.box> Date: Tue, 30 Jul 2013 16:42:02 -0400 In-Reply-To: <87ppuehfsy.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Fri, 19 Jul 2013 14:53:17 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 14907-done Cc: 14907-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > If I debugged this correctly, the problem is due to completion--twq-all > not distinguishing between prefix strings for completions that differ > only in case. The following patch fixes this problem for me (I tried to > reuse the relevant part of the requoting code, but haven't tested such > cases). Thanks. It's probably not 100% sufficient in all cases, but I don't know how to do it right, and it solves the 99% case. I installed a slightly different version which skips the extra work if ignore-case is not used. Stefan From unknown Wed Jun 18 23:08:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 28 Aug 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator