From unknown Fri Aug 15 20:47:28 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#11755 <11755@debbugs.gnu.org> To: bug#11755 <11755@debbugs.gnu.org> Subject: Status: 24.1.50; regression: invalid function - file name completion Reply-To: bug#11755 <11755@debbugs.gnu.org> Date: Sat, 16 Aug 2025 03:47:28 +0000 retitle 11755 24.1.50; regression: invalid function - file name completion reassign 11755 emacs submitter 11755 "Drew Adams" severity 11755 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 16:48:33 2012 Received: (at submit) by debbugs.gnu.org; 20 Jun 2012 20:48:33 +0000 Received: from localhost ([127.0.0.1]:50264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShRpI-0000ga-N6 for submit@debbugs.gnu.org; Wed, 20 Jun 2012 16:48:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58251) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShRpE-0000gR-FT for submit@debbugs.gnu.org; Wed, 20 Jun 2012 16:48:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShRlq-0002ya-4o for submit@debbugs.gnu.org; Wed, 20 Jun 2012 16:44:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:50074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShRlq-0002yT-1W for submit@debbugs.gnu.org; Wed, 20 Jun 2012 16:44:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShRlo-0002xC-C2 for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2012 16:44:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShRlm-0002xp-9m for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2012 16:44:55 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:43975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShRlm-0002xi-3K for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2012 16:44:54 -0400 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5KKioir023484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 20 Jun 2012 20:44:51 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q5KKiod7010759 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 20 Jun 2012 20:44:50 GMT Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q5KKioIs005603 for ; Wed, 20 Jun 2012 15:44:50 -0500 Received: from dradamslap1 (/10.159.186.221) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 20 Jun 2012 13:44:49 -0700 From: "Drew Adams" To: Subject: 24.1.50; regression: invalid function - file name completion Date: Wed, 20 Jun 2012 13:44:27 -0700 Message-ID: <1267982D0B60427EB6DE9471F8F7D81A@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac1PJXuoNsW8dYqESdy6HqQpamcoVg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) I traced this in the debugger in Emacs 24.1, where there is no problem, and in this build. The starting point to see the difference is this: (try-completion "c:/foo" 'read-file-name-internal "c:/foobar/") In both versions that leads to: (read-file-name-internal "c:/foo" "c:/foobar/" nil) which leads eventually to this difference: Emacs 24.1: (file-name-completion "foo" "c:/" nil) ; returns "c:/foobar/" Emacs 24.1.50, 2012-06-18: (file-name-completion "foo" "c:/" "c:/foobar/") ; signals an error Evaluating that sexp leads to this invalid evaluation (this is the debugger line), which tries to apply the directory string as if it were a function: * "c:/foobar/"("foobar/") This breaks, for example, Icicles highlighting of the mismatched portion of minibuffer input. For that, I proceed via bifurcation to match larger prefixes of the input string until I find where the mismatch first starts (leftmost mismatch position). The test now fails (I do it in a condition-case that returns nil for an error) for even a slight prefix such as c:/foo, so _all_ of the input is always highlighted (for file-name completion). In GNU Emacs 24.1.50.1 (i386-mingw-nt5.1.2600) of 2012-06-18 on MARVIN Bzr revision: 108646 michael.albinus@gmx.de-20120617185439-jfcgwwbr97nbflkz Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --no-opt --enable-checking --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 21 12:33:11 2012 Received: (at 11755) by debbugs.gnu.org; 21 Jun 2012 16:33:11 +0000 Received: from localhost ([127.0.0.1]:51814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShkJi-0008Im-Bc for submit@debbugs.gnu.org; Thu, 21 Jun 2012 12:33:10 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:46780) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShkJg-0008If-Ml for 11755@debbugs.gnu.org; Thu, 21 Jun 2012 12:33:09 -0400 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q5LGTYkT019232; Thu, 21 Jun 2012 12:29:34 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 41D23B422C; Thu, 21 Jun 2012 12:29:34 -0400 (EDT) From: Stefan Monnier To: "Drew Adams" Subject: Re: bug#11755: 24.1.50; regression: invalid function - file name completion Message-ID: References: <1267982D0B60427EB6DE9471F8F7D81A@us.oracle.com> Date: Thu, 21 Jun 2012 12:29:34 -0400 In-Reply-To: <1267982D0B60427EB6DE9471F8F7D81A@us.oracle.com> (Drew Adams's message of "Wed, 20 Jun 2012 13:44:27 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.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 RV4257=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4257> : streams <771575> : uri <1145505> X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 11755 Cc: 11755@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) > (try-completion "c:/foo" 'read-file-name-internal "c:/foobar/") > (file-name-completion "foo" "c:/" "c:/foobar/") ; signals an error Because the third argument to those functions should be a PREDicate, not a string. Emacs-23 and Emacs-24.1 still accepted the old hack of passing the PWD in this predicate argument, but not 24.2. Please fix Icicles accordingly. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 21 12:50:00 2012 Received: (at 11755) by debbugs.gnu.org; 21 Jun 2012 16:50:00 +0000 Received: from localhost ([127.0.0.1]:51828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShkZz-0000GI-QQ for submit@debbugs.gnu.org; Thu, 21 Jun 2012 12:49:59 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:42307) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShkZy-0000GA-02 for 11755@debbugs.gnu.org; Thu, 21 Jun 2012 12:49:58 -0400 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5LGkMut005902 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 21 Jun 2012 16:46:23 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q5LGkLHL026153 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Jun 2012 16:46:22 GMT Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q5LGkLEM009712; Thu, 21 Jun 2012 11:46:21 -0500 Received: from dradamslap1 (/10.159.220.54) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 21 Jun 2012 09:46:21 -0700 From: "Drew Adams" To: "'Stefan Monnier'" References: <1267982D0B60427EB6DE9471F8F7D81A@us.oracle.com> Subject: RE: bug#11755: 24.1.50; regression: invalid function - file name completion Date: Thu, 21 Jun 2012 09:45:54 -0700 Message-ID: <245F03386C6F49EBBE8E02B52F2E9DC9@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac1Pyw2sbziTWfzvTYSSUzI1dQAwGAAAbTjA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 In-Reply-To: X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11755 Cc: 11755@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) > > (try-completion "c:/foo" 'read-file-name-internal "c:/foobar/") > > (file-name-completion "foo" "c:/" "c:/foobar/") ; signals an error > > Because the third argument to those functions should be a > PREDicate, not a string. Emacs-23 and Emacs-24.1 still > accepted the old hack of passing the PWD in this predicate > argument, but not 24.2. Please fix Icicles accordingly. Ah yes. I had changed the arg everywhere else, to: (if (< emacs-major-version 23) default-directory minibuffer-completion-predicate) Missed that occurrence. Thx. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 21 12:54:43 2012 Received: (at control) by debbugs.gnu.org; 21 Jun 2012 16:54:43 +0000 Received: from localhost ([127.0.0.1]:51856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShkeZ-0000O5-5y for submit@debbugs.gnu.org; Thu, 21 Jun 2012 12:54:43 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:50441) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShkeW-0000Ny-SO for control@debbugs.gnu.org; Thu, 21 Jun 2012 12:54:41 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5LGp6q4011172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 21 Jun 2012 16:51:06 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q5LGp5oo010732 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 21 Jun 2012 16:51:06 GMT Received: from abhmt103.oracle.com (abhmt103.oracle.com [141.146.116.55]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q5LGp5Bm003153 for ; Thu, 21 Jun 2012 11:51:05 -0500 Received: from dradamslap1 (/10.159.220.54) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 21 Jun 2012 09:51:05 -0700 From: "Drew Adams" To: Subject: bug #11755: close Date: Thu, 21 Jun 2012 09:50:39 -0700 Message-ID: <021D6797F22C4AA7B599F55E50F7F0D7@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac1PzfzlSkXA01jMQn61DF1W7emquw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) close 11755 thanks From unknown Fri Aug 15 20:47:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 20 Jul 2012 11:24:04 +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