From unknown Tue Aug 19 09:35:16 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#3250 <3250@debbugs.gnu.org> To: bug#3250 <3250@debbugs.gnu.org> Subject: Status: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil Reply-To: bug#3250 <3250@debbugs.gnu.org> Date: Tue, 19 Aug 2025 16:35:16 +0000 retitle 3250 23.0.93; tab completion flakey with tramp when insert-default-= directory is nil reassign 3250 emacs submitter 3250 Chris Withers severity 3250 normal thanks From chris@simplistix.co.uk Sat May 9 10:37:09 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 9 May 2009 17:37:10 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 n49Hb3ED030573 for ; Sat, 9 May 2009 10:37:04 -0700 Received: from mx10.gnu.org ([199.232.76.166]:39424) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1M2qTu-0008JK-GH for emacs-pretest-bug@gnu.org; Sat, 09 May 2009 13:37:02 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1M2qTr-00030i-59 for emacs-pretest-bug@gnu.org; Sat, 09 May 2009 13:37:01 -0400 Received: from server1.simplistix.co.uk ([89.151.125.140]:40891) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M2qTq-00030U-R3 for emacs-pretest-bug@gnu.org; Sat, 09 May 2009 13:36:59 -0400 Received: from [192.168.1.15] (cust162-dsl93-89-128.idnet.net [93.89.128.162]) by server1.simplistix.co.uk (Postfix) with ESMTPSA id C52364F8061 for ; Sat, 9 May 2009 18:36:57 +0100 (BST) Message-ID: <4A05BF3C.3060606@simplistix.co.uk> Date: Sat, 09 May 2009 18:37:00 +0100 From: Chris Withers User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org Subject: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) With the following in my .emacs: (setq insert-default-directory nil) tab completion when using tramp to access a remote file becomes flakey. It seems that the notion of the current working directory becomes lost, so tab completion ends up with doubled up directories, eg: /home/chris/afolder/afolder ...where afolder doesn't exist, resulting in errors such as the following: File error: tramp-handle-file-name-all-completions: Couldn't `cd /home/chris/afolder/afolder/' This doesn't happen right away, but I usually end up bumping into it when navigating around a folder structure by inserting .. a number of times in the minibuffer window. In GNU Emacs 23.0.93.1 (i386-mingw-nt5.1.2600) of 2009-05-02 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENG value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: GNUmakefile Minor modes in effect: shell-dirtrack-mode: t cua-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From monnier@iro.umontreal.ca Sat May 9 15:37:32 2009 Received: (at 3250) by emacsbugs.donarmstrong.com; 9 May 2009 22:37:32 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.7 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n49MbSCr023261 for <3250@emacsbugs.donarmstrong.com>; Sat, 9 May 2009 15:37:29 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah8GAC6iBUrO+IYe/2dsb2JhbACBUMtSg34FhVk X-IronPort-AV: E=Sophos;i="4.40,322,1238990400"; d="scan'208";a="38289962" Received: from 206-248-134-30.dsl.teksavvy.com (HELO pastel.home) ([206.248.134.30]) by ironport2-out.teksavvy.com with ESMTP; 09 May 2009 18:37:22 -0400 Received: by pastel.home (Postfix, from userid 20848) id DF5EC7FA7; Sat, 9 May 2009 18:37:21 -0400 (EDT) From: Stefan Monnier To: Chris Withers Cc: 3250@debbugs.gnu.org Subject: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil Message-ID: References: <4A05BF3C.3060606@simplistix.co.uk> Date: Sat, 09 May 2009 18:37:21 -0400 In-Reply-To: <4A05BF3C.3060606@simplistix.co.uk> (Chris Withers's message of "Sat, 09 May 2009 18:37:00 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > (setq insert-default-directory nil) > tab completion when using tramp to access a remote file becomes flakey. > It seems that the notion of the current working directory becomes lost, > so tab completion ends up with doubled up directories, eg: > /home/chris/afolder/afolder > ...where afolder doesn't exist, resulting in errors such as the following: > File error: tramp-handle-file-name-all-completions: Couldn't `cd > /home/chris/afolder/afolder/' > This doesn't happen right away, but I usually end up bumping into it when > navigating > around a folder structure by inserting .. a number of times in the > minibuffer window. I don't know if Michael can fix it based on the above report, but I expect that a reproducible test case starting from "emacs -Q" would help. Stefan From chris@simplistix.co.uk Sat May 9 15:51:51 2009 Received: (at 3250) by emacsbugs.donarmstrong.com; 9 May 2009 22:51:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.4 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from server1.simplistix.co.uk (server1.simplistix.co.uk [89.151.125.140]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n49Mpln4027515 for <3250@emacsbugs.donarmstrong.com>; Sat, 9 May 2009 15:51:49 -0700 Received: from [192.168.1.15] (cust162-dsl93-89-128.idnet.net [93.89.128.162]) by server1.simplistix.co.uk (Postfix) with ESMTPSA id B94844F8076; Sat, 9 May 2009 23:51:46 +0100 (BST) Message-ID: <4A060905.6020209@simplistix.co.uk> Date: Sat, 09 May 2009 23:51:49 +0100 From: Chris Withers User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Stefan Monnier CC: 3250@debbugs.gnu.org Subject: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil References: <4A05BF3C.3060606@simplistix.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Stefan Monnier wrote: > I don't know if Michael can fix it based on the above report, but > I expect that a reproducible test case starting from "emacs -Q" > would help. really not sure how to go about doing that, is there a how-to anywhere? fwiw, not sure this is tramp related, I've had similar weirdity when just opening local files with (setq insert-default-directory nil). The minibuffer just seems to get lost as to which directory it's in... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From cyd@stupidchicken.com Sun May 10 14:50:33 2009 Received: (at 3250) by emacsbugs.donarmstrong.com; 10 May 2009 21:50:33 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=AWL,HAS_BUG_NUMBER,RERE autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4ALoUZn009323 for <3250@emacsbugs.donarmstrong.com>; Sun, 10 May 2009 14:50:31 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id C86AF57E22A; Sun, 10 May 2009 17:50:41 -0400 (EDT) From: Chong Yidong To: Chris Withers Cc: 3250@debbugs.gnu.org Subject: Re: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil Date: Sun, 10 May 2009 17:50:41 -0400 Message-ID: <87zldkeifi.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > fwiw, not sure this is tramp related, I've had similar weirdity when > just opening local files with (setq insert-default-directory nil). > The minibuffer just seems to get lost as to which directory it's in... Your description is too vague. Please give exact, step by step instructions about how to see this bug. From chris@simplistix.co.uk Sun May 10 14:53:35 2009 Received: (at 3250) by emacsbugs.donarmstrong.com; 10 May 2009 21:53:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from server1.simplistix.co.uk (server1.simplistix.co.uk [89.151.125.140]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4ALrVPD010120 for <3250@emacsbugs.donarmstrong.com>; Sun, 10 May 2009 14:53:32 -0700 Received: from [192.168.1.15] (cust162-dsl93-89-128.idnet.net [93.89.128.162]) by server1.simplistix.co.uk (Postfix) with ESMTPSA id CA6D94F8079; Sun, 10 May 2009 22:53:30 +0100 (BST) Message-ID: <4A074CDF.8050604@simplistix.co.uk> Date: Sun, 10 May 2009 22:53:35 +0100 From: Chris Withers User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Chong Yidong CC: 3250@debbugs.gnu.org Subject: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil References: <87zldkeifi.fsf@cyd.mit.edu> In-Reply-To: <87zldkeifi.fsf@cyd.mit.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Chong Yidong wrote: >> fwiw, not sure this is tramp related, I've had similar weirdity when >> just opening local files with (setq insert-default-directory nil). >> The minibuffer just seems to get lost as to which directory it's in... > > Your description is too vague. Please give exact, step by step > instructions about how to see this bug. It's a pretty vague bug :-S Try: -(setq insert-default-directory nil) in .emacs -restart C-x C-f .. - then try using tab completion Trying to get into a parent or the current directory and then using tab completion seems to be the root of the problem. I don't know any way of doing that other than using '../' as a path, and that seems to be what causes the problem. cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From cyd@stupidchicken.com Sun May 10 15:04:05 2009 Received: (at 3250) by emacsbugs.donarmstrong.com; 10 May 2009 22:04:06 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.5 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4AM43Jn012981 for <3250@emacsbugs.donarmstrong.com>; Sun, 10 May 2009 15:04:04 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 83E0757E256; Sun, 10 May 2009 18:04:14 -0400 (EDT) From: Chong Yidong To: Chris Withers Cc: 3250@debbugs.gnu.org Subject: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil References: <87zldkeifi.fsf@cyd.mit.edu> <4A074CDF.8050604@simplistix.co.uk> Date: Sun, 10 May 2009 18:04:14 -0400 In-Reply-To: <4A074CDF.8050604@simplistix.co.uk> (Chris Withers's message of "Sun, 10 May 2009 22:53:35 +0100") Message-ID: <87my9kehsx.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Chris Withers writes: > -(setq insert-default-directory nil) in .emacs > -restart > C-x C-f > .. > - then try using tab completion Pressing TAB shows the contents of my home directory. This is expected behavior. What behavior do you observe? From chris@simplistix.co.uk Sun May 10 15:05:49 2009 Received: (at 3250) by emacsbugs.donarmstrong.com; 10 May 2009 22:05:50 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.5 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from server1.simplistix.co.uk (server1.simplistix.co.uk [89.151.125.140]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4AM5knC014521 for <3250@emacsbugs.donarmstrong.com>; Sun, 10 May 2009 15:05:47 -0700 Received: from [192.168.1.15] (cust162-dsl93-89-128.idnet.net [93.89.128.162]) by server1.simplistix.co.uk (Postfix) with ESMTPSA id 768E24F8079; Sun, 10 May 2009 23:05:45 +0100 (BST) Message-ID: <4A074FBE.9080808@simplistix.co.uk> Date: Sun, 10 May 2009 23:05:50 +0100 From: Chris Withers User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Chong Yidong CC: 3250@debbugs.gnu.org Subject: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil References: <87zldkeifi.fsf@cyd.mit.edu> <4A074CDF.8050604@simplistix.co.uk> <87my9kehsx.fsf@cyd.mit.edu> In-Reply-To: <87my9kehsx.fsf@cyd.mit.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Chong Yidong wrote: > Chris Withers writes: > >> -(setq insert-default-directory nil) in .emacs >> -restart >> C-x C-f >> .. >> - then try using tab completion > > Pressing TAB shows the contents of my home directory. This is expected > behavior. What behavior do you observe? Did you do the all important '..' to go to a parent directory? Did you then try and tab-complete into a sub-directory? Did you have (setq insert-default-directory nil) set in your .emacs file? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From cyd@stupidchicken.com Sun May 10 15:24:42 2009 Received: (at 3250) by emacsbugs.donarmstrong.com; 10 May 2009 22:24:42 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.5 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4AMOcln019375 for <3250@emacsbugs.donarmstrong.com>; Sun, 10 May 2009 15:24:39 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 9B88757E22A; Sun, 10 May 2009 18:24:49 -0400 (EDT) From: Chong Yidong To: Chris Withers Cc: 3250@debbugs.gnu.org Subject: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil References: <87zldkeifi.fsf@cyd.mit.edu> <4A074CDF.8050604@simplistix.co.uk> <87my9kehsx.fsf@cyd.mit.edu> <4A074FBE.9080808@simplistix.co.uk> Date: Sun, 10 May 2009 18:24:49 -0400 In-Reply-To: <4A074FBE.9080808@simplistix.co.uk> (Chris Withers's message of "Sun, 10 May 2009 23:05:50 +0100") Message-ID: <87ljp4oatq.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Chris Withers writes: >>> -(setq insert-default-directory nil) in .emacs >>> -restart >>> C-x C-f >>> .. >>> - then try using tab completion >> >> Pressing TAB shows the contents of my home directory. This is expected >> behavior. What behavior do you observe? > > Did you do the all important '..' to go to a parent directory? After typing `..', I type TAB. The text in the minibuffer completes to ../ After typing TAB again, Emacs offers a completions list showing the directories in /home. This is expected. From chris@simplistix.co.uk Sun May 10 15:42:35 2009 Received: (at 3250) by emacsbugs.donarmstrong.com; 10 May 2009 22:42:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.4 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from server1.simplistix.co.uk (server1.simplistix.co.uk [89.151.125.140]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4AMgVLu024813 for <3250@emacsbugs.donarmstrong.com>; Sun, 10 May 2009 15:42:33 -0700 Received: from [192.168.1.15] (cust162-dsl93-89-128.idnet.net [93.89.128.162]) by server1.simplistix.co.uk (Postfix) with ESMTPSA id 1DDF74F8079; Sun, 10 May 2009 23:42:31 +0100 (BST) Message-ID: <4A07585C.9090105@simplistix.co.uk> Date: Sun, 10 May 2009 23:42:36 +0100 From: Chris Withers User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Chong Yidong CC: 3250@debbugs.gnu.org Subject: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil References: <87zldkeifi.fsf@cyd.mit.edu> <4A074CDF.8050604@simplistix.co.uk> <87my9kehsx.fsf@cyd.mit.edu> <4A074FBE.9080808@simplistix.co.uk> <87ljp4oatq.fsf@cyd.mit.edu> In-Reply-To: <87ljp4oatq.fsf@cyd.mit.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Chong Yidong wrote: >> Did you do the all important '..' to go to a parent directory? > > After typing `..', I type TAB. The text in the minibuffer completes to > > ../ > > After typing TAB again, Emacs offers a completions list showing the > directories in /home. This is expected. Okay, here's what I did: - open a file in a folder - C-x C-f - .. TAB to go to parent folder of the folder containing the file you opened - type 'so' and hit TAB - minibuffer now shows "../something/", *Completions* shows contents of 'something' folder - now delete all characters in the minibuffer with backspace - hit TAB, *Completions* still shows contents of 'something' folder - type first two characters of a name in *Completions*, no completion happens [1] - delete those two characters - type 'so' and hit TAB - minibuffer now shows "something/" - hitting TAB one or two more times and *Completions* once more shows the contents of 'something' folder - type first two characters of a name in *Completions*, no completion happens and current working directory in minibuffer seems very confused [1] [1] these bullet points feel like bugs to me... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From monnier@iro.umontreal.ca Sun May 10 20:30:58 2009 Received: (at 3250) by emacsbugs.donarmstrong.com; 11 May 2009 03:30:58 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.5 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4B3Usdv009551 for <3250@emacsbugs.donarmstrong.com>; Sun, 10 May 2009 20:30:55 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmQFANM4B0pLd+1m/2dsb2JhbACBUMs+g34FhVk X-IronPort-AV: E=Sophos;i="4.40,326,1238990400"; d="scan'208";a="38341164" Received: from 75-119-237-102.dsl.teksavvy.com (HELO pastel.home) ([75.119.237.102]) by ironport2-out.teksavvy.com with ESMTP; 10 May 2009 23:30:48 -0400 Received: by pastel.home (Postfix, from userid 20848) id E57167ED8; Sun, 10 May 2009 23:30:50 -0400 (EDT) From: Stefan Monnier To: Chris Withers Cc: 3250@debbugs.gnu.org, Chong Yidong Subject: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil Message-ID: References: <87zldkeifi.fsf@cyd.mit.edu> <4A074CDF.8050604@simplistix.co.uk> <87my9kehsx.fsf@cyd.mit.edu> <4A074FBE.9080808@simplistix.co.uk> <87ljp4oatq.fsf@cyd.mit.edu> <4A07585C.9090105@simplistix.co.uk> Date: Sun, 10 May 2009 23:30:50 -0400 In-Reply-To: <4A07585C.9090105@simplistix.co.uk> (Chris Withers's message of "Sun, 10 May 2009 23:42:36 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Okay, here's what I did: > - open a file in a folder > - C-x C-f > - .. TAB to go to parent folder of the folder containing the file you opened > - type 'so' and hit TAB > - minibuffer now shows "../something/", *Completions* shows contents of > something' folder > - now delete all characters in the minibuffer with backspace > - hit TAB, *Completions* still shows contents of 'something' folder > - type first two characters of a name in *Completions*, no completion > happens [1] > - delete those two characters > - type 'so' and hit TAB > - minibuffer now shows "something/" > - hitting TAB one or two more times and *Completions* once more shows the > contents of 'something' folder > - type first two characters of a name in *Completions*, no completion > happens and current working directory in minibuffer seems very confused [1] > [1] these bullet points feel like bugs to me... Thank you. This should be enough for me (or whoever else gets to it first, but it looks like a bug in my new completion code) to find the problem. Stefan From chris@simplistix.co.uk Mon May 11 01:13:27 2009 Received: (at 3250) by emacsbugs.donarmstrong.com; 11 May 2009 08:13:27 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.5 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from server1.simplistix.co.uk (server1.simplistix.co.uk [89.151.125.140]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4B8DM1P024397 for <3250@emacsbugs.donarmstrong.com>; Mon, 11 May 2009 01:13:23 -0700 Received: from [192.168.1.15] (cust162-dsl93-89-128.idnet.net [93.89.128.162]) by server1.simplistix.co.uk (Postfix) with ESMTPSA id 205524F8079; Mon, 11 May 2009 09:13:21 +0100 (BST) Message-ID: <4A07DE27.4020705@simplistix.co.uk> Date: Mon, 11 May 2009 09:13:27 +0100 From: Chris Withers User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Stefan Monnier CC: 3250@debbugs.gnu.org, Chong Yidong Subject: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil References: <87zldkeifi.fsf@cyd.mit.edu> <4A074CDF.8050604@simplistix.co.uk> <87my9kehsx.fsf@cyd.mit.edu> <4A074FBE.9080808@simplistix.co.uk> <87ljp4oatq.fsf@cyd.mit.edu> <4A07585C.9090105@simplistix.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Stefan Monnier wrote: > Thank you. This should be enough for me (or whoever else gets to it > first, but it looks like a bug in my new completion code) to find > the problem. Does this mean you can reproduce the problem(s)? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From monnier@iro.umontreal.ca Mon May 11 07:13:30 2009 Received: (at 3250) by emacsbugs.donarmstrong.com; 11 May 2009 14:13:31 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4BEDQHP000668 for <3250@emacsbugs.donarmstrong.com>; Mon, 11 May 2009 07:13:28 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmQFANPOB0pLd+1m/2dsb2JhbACBUMsbg34FhVk X-IronPort-AV: E=Sophos;i="4.40,328,1238990400"; d="scan'208";a="38393965" Received: from 75-119-237-102.dsl.teksavvy.com (HELO pastel.home) ([75.119.237.102]) by ironport2-out.teksavvy.com with ESMTP; 11 May 2009 10:13:19 -0400 Received: by pastel.home (Postfix, from userid 20848) id 859FE7ED8; Mon, 11 May 2009 10:13:25 -0400 (EDT) From: Stefan Monnier To: Chris Withers Cc: 3250@debbugs.gnu.org, Chong Yidong Subject: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil Message-ID: References: <87zldkeifi.fsf@cyd.mit.edu> <4A074CDF.8050604@simplistix.co.uk> <87my9kehsx.fsf@cyd.mit.edu> <4A074FBE.9080808@simplistix.co.uk> <87ljp4oatq.fsf@cyd.mit.edu> <4A07585C.9090105@simplistix.co.uk> <4A07DE27.4020705@simplistix.co.uk> Date: Mon, 11 May 2009 10:13:25 -0400 In-Reply-To: <4A07DE27.4020705@simplistix.co.uk> (Chris Withers's message of "Mon, 11 May 2009 09:13:27 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> Thank you. This should be enough for me (or whoever else gets to it >> first, but it looks like a bug in my new completion code) to find >> the problem. > Does this mean you can reproduce the problem(s)? Yes, Stefan From monnier@iro.umontreal.ca Mon May 11 08:33:32 2009 Received: (at 3250-done) by emacsbugs.donarmstrong.com; 11 May 2009 15:33:33 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.0 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4BFXR1f024767 for <3250-done@emacsbugs.donarmstrong.com>; Mon, 11 May 2009 08:33:29 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmQFAJPhB0pLd+1m/2dsb2JhbACBUMssg34FhVk X-IronPort-AV: E=Sophos;i="4.40,328,1238990400"; d="scan'208";a="38399432" Received: from 75-119-237-102.dsl.teksavvy.com (HELO ceviche.home) ([75.119.237.102]) by ironport2-out.teksavvy.com with ESMTP; 11 May 2009 11:33:21 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 99105B52A1; Mon, 11 May 2009 11:33:21 -0400 (EDT) From: Stefan Monnier To: Chris Withers Cc: 3250-done@debbugs.gnu.org, Chong Yidong Subject: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil Message-ID: References: <87zldkeifi.fsf@cyd.mit.edu> <4A074CDF.8050604@simplistix.co.uk> <87my9kehsx.fsf@cyd.mit.edu> <4A074FBE.9080808@simplistix.co.uk> <87ljp4oatq.fsf@cyd.mit.edu> <4A07585C.9090105@simplistix.co.uk> Date: Mon, 11 May 2009 11:33:21 -0400 In-Reply-To: <4A07585C.9090105@simplistix.co.uk> (Chris Withers's message of "Sun, 10 May 2009 23:42:36 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Okay, here's what I did: The recipe I used was: > emacs -Q C-x C-f C-a C-k TAB left right TAB left right TAB where you see that default-directory moves up one level each time the *Completions* buffer is refreshed. The patch below fixes the problem, Stefan --- simple.el.~1.986.~ 2009-05-03 21:41:00.000000000 -0400 +++ simple.el 2009-05-11 11:30:20.000000000 -0400 @@ -5851,20 +5851,23 @@ ;; after the text of the completion list buffer is written. (defun completion-setup-function () (let* ((mainbuf (current-buffer)) - (mbuf-contents (minibuffer-completion-contents)) - common-string-length) + (base-dir ;; When reading a file name in the minibuffer, - ;; set default-directory in the minibuffer - ;; so it will get copied into the completion list buffer. + ;; try and find the right default-directory to set in the + ;; completion list buffer. + ;; FIXME: Why do we do that, actually? --Stef (if minibuffer-completing-file-name - (with-current-buffer mainbuf - (setq default-directory - (file-name-directory (expand-file-name mbuf-contents))))) + (file-name-as-directory + (expand-file-name + (substring (minibuffer-completion-contents) + 0 (or completion-base-size 0)))))) + common-string-length) (with-current-buffer standard-output (let ((base-size completion-base-size)) ;Read before killing localvars. (completion-list-mode) (set (make-local-variable 'completion-base-size) base-size)) (set (make-local-variable 'completion-reference-buffer) mainbuf) + (if base-dir (setq default-directory base-dir)) (unless completion-base-size ;; This shouldn't be needed any more, but further analysis is needed ;; to make sure it's the case. From chris@simplistix.co.uk Mon May 11 15:03:51 2009 Received: (at 3250-done) by emacsbugs.donarmstrong.com; 11 May 2009 22:03:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from server1.simplistix.co.uk (server1.simplistix.co.uk [89.151.125.140]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4BM3lbt015519 for <3250-done@emacsbugs.donarmstrong.com>; Mon, 11 May 2009 15:03:48 -0700 Received: from [192.168.1.15] (cust162-dsl93-89-128.idnet.net [93.89.128.162]) by server1.simplistix.co.uk (Postfix) with ESMTPSA id F17364F8076; Mon, 11 May 2009 23:03:46 +0100 (BST) Message-ID: <4A08A0CA.3080700@simplistix.co.uk> Date: Mon, 11 May 2009 23:03:54 +0100 From: Chris Withers User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Stefan Monnier CC: 3250-done@debbugs.gnu.org Subject: Re: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil References: <87zldkeifi.fsf@cyd.mit.edu> <4A074CDF.8050604@simplistix.co.uk> <87my9kehsx.fsf@cyd.mit.edu> <4A074FBE.9080808@simplistix.co.uk> <87ljp4oatq.fsf@cyd.mit.edu> <4A07585C.9090105@simplistix.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Stefan Monnier wrote: > The patch below fixes the problem, Any idea which release this will land in and when that will be? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From unknown Tue Aug 19 09:35:16 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Tue, 09 Jun 2009 14:24:10 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator