From unknown Wed Jun 18 00:27:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6983: 23.2; emacs-win32; emacswiki: cygwin-mount.el corrupted filename completion Resent-From: Duane Ellis Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Sep 2010 17:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6983 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6983@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12836224418129 (code B ref -1); Sat, 04 Sep 2010 17:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Sep 2010 17:47:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Orwpk-000274-MF for submit@debbugs.gnu.org; Sat, 04 Sep 2010 13:47:21 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ortmq-0000gA-VM for submit@debbugs.gnu.org; Sat, 04 Sep 2010 10:32:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ortoa-0003CP-IQ for submit@debbugs.gnu.org; Sat, 04 Sep 2010 10:33:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:52590) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ortoa-0003CL-Dp for submit@debbugs.gnu.org; Sat, 04 Sep 2010 10:33:56 -0400 Received: from [140.186.70.92] (port=48900 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrtoY-0000H4-Ee for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2010 10:33:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrtoW-0003Bi-NR for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2010 10:33:54 -0400 Received: from smtpauth02.prod.mesa1.secureserver.net ([64.202.165.182]:39588) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OrtoW-0003BW-Cc for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2010 10:33:52 -0400 Received: (qmail 5296 invoked from network); 4 Sep 2010 14:33:49 -0000 Received: from unknown (69.244.100.215) by smtpauth02.prod.mesa1.secureserver.net (64.202.165.182) with ESMTP; 04 Sep 2010 14:33:48 -0000 Message-ID: <4C8258D9.8030704@duaneellis.com> Date: Sat, 04 Sep 2010 10:34:01 -0400 From: Duane Ellis User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Sat, 04 Sep 2010 13:47:19 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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.6 (------) Hello, I do not know where or how to report a problem with things on "emacswiki" - so I am trying here. If someone knows a better place, please let me know. -Duane This problem is specific to: (A) emacs - windows prebuilt binary from ftp.gnu.org - (downloaded and found this bug yesterday) I can also duplicate with emacs-23.1 (B) CYGWIN (C) "cygwin-mount.el" found http://www.emacswiki.org/cgi-bin/wiki/download/cygwin-mount.el (D) Filename(TAB) completion in the minibuffer using the above. Short description: Filename 'tab-completion' with cygwin-mount.el corrupts completion ====== Steps to reproduce: (1) Emacs-23.2 (or 23.1) prebuilt windows binary from ftp.gnu.org (2) Construct a simple directory structure as follows: My hunch is this problem has to do with the 'depth' of filenames, or number of slashes present (see VARIANT below) ========== bash-3.2$ ls -ldptr `find /home/duane/foo -print` -rwxrwxrwx 1 duane None 6 Sep 4 09:37 /home/duane/foo/config.log -rw-rw-rw- 1 duane None 6 Sep 4 09:37 /home/duane/foo/bar/config.log -rwxrwxrwx 1 duane None 6 Sep 4 09:37 /home/duane/foo/config.status -rw-rw-rw- 1 duane None 6 Sep 4 09:37 /home/duane/foo/bar/config.status -rwxrwxrwx 1 duane None 6 Sep 4 09:37 /home/duane/foo/Makefile -rw-rw-rw- 1 duane None 6 Sep 4 09:37 /home/duane/foo/bar/Makefile drwxrwxrwx+ 2 duane None 0 Sep 4 09:37 /home/duane/foo/bar/bfd/ drwxrwxrwx+ 2 duane None 0 Sep 4 09:37 /home/duane/foo/bar/intl/ drwxrwxrwx+ 2 duane None 0 Sep 4 09:38 /home/duane/foo/bar/libiberty/ -rwxrwxrwx 1 duane None 4 Sep 4 09:38 /home/duane/foo/serdep.tmp -rw-rw-rw- 1 duane None 4 Sep 4 09:38 /home/duane/foo/bar/serdep.tmp -rwxrwxrwx 1 duane None 0 Sep 4 09:39 /home/duane/foo/build.log -rw-rw-rw- 1 duane None 0 Sep 4 09:39 /home/duane/foo/bar/build.log drwxrwxrwx+ 5 duane None 0 Sep 4 09:41 /home/duane/foo/bar/ drwxrwxrwx+ 2 duane None 0 Sep 4 09:43 /home/duane/foo/bfd/ drwxrwxrwx+ 2 duane None 0 Sep 4 09:43 /home/duane/foo/intl/ drwxrwxrwx+ 2 duane None 0 Sep 4 09:43 /home/duane/foo/libiberty/ drwxrwxrwx+ 6 duane None 0 Sep 4 09:43 /home/duane/foo/ bash-3.2$ ======= (3) Type 'ctrl-x, ctrl-x' [aka: find-file] (4) In the minibuffer - type/replace the text with: /home/duane/foo/bar/conf (then STOP). (5) Press one time, this causes "filename-completion" to occur. The minibuffer shows (adding the "ig" Find file: c:/cygwin/home/duane/foo/bar/config. AND: The prefix: "c:/cygwin" becomes *GREY* in the minibuffer. (6) Press a second time, the minibuffer is now corrupt and shows: Find file: c:/cygwinc:/cygwin/home/duane/foo/bar/config. Note the two "c:/cygwin" prefixes - that is the bug I am reporting completion no longer works as the candidate text is now corrupt. (7) If I repeat the process, starting at "/home/duane/foo" - I do not have this problem. ===== NOTE: I originally found this when building GDB/Insight from source, and reduced steps to the above sequence. This problem does not occur with (a) a very old (+5 years) version of 'cygwin-mount.el' and (b) an older version of windows-emacs. I do not understand emacs lisp and/or the tab-completion code well enough to debug/fix this problem. ===== VARIANTS - - in this form (and others like it), I cannot reproduce the problem Step (a) start emacs {I click on a windows short cut to 'runemacs.exe') Step (b) type ^X-^F, the mini buffer starts at: C:\emacs\bin/ -> NOTICE the two different slashes Step (c) type /home/duane/foo/bar/con do not press more keys Mini buffer now shows: Find file: C:\emacs\bin//home/duane/foo/bar/con NOTES: After typing the first "/" (minibuffer shows: "c:\emacs\bin//" - the original content is shown grayed out Step (d) press TAB to attempt completion. In this scenario, I cannot cause the problem to occur. ===== DETAIL from "report-emacs-bug" in emacs ===== In GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include' 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: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f C-a C-SPC C-e C-w c / : / h o m / h o m e / d u a n e / c y i n s i s r c y o n C-g C-g C-x C-f ~ / * m e C-g C-x b * m e M e C-x 1 M-x b u r e p o r t - b Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Loading tramp...done Quit [2 times] Making completion list... Quit Making completion list... byte-code: Beginning of buffer Load-path shadows: None found. Features: (shadow mail-extr message ecomplete rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug tramp-imap assoc tramp-gw tramp-fish tramp-cache tramp-ftp tramp-cmds tramp auth-source gnus-util netrc time-date advice help-fns advice-preload shell password-cache format-spec tramp-compat trampver help-mode easymenu view sort cygwin-mount ange-ftp regexp-opt comint ring executable cl cl-19 tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From unknown Wed Jun 18 00:27:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6983: 23.2; emacs-win32; emacswiki: cygwin-mount.el corrupted filename completion Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Sep 2010 18:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6983 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Duane Ellis Cc: 6983@debbugs.gnu.org Received: via spool by 6983-submit@debbugs.gnu.org id=B6983.128362645710031 (code B ref 6983); Sat, 04 Sep 2010 18:55:01 +0000 Received: (at 6983) by debbugs.gnu.org; 4 Sep 2010 18:54:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrxsW-0002bk-Kc for submit@debbugs.gnu.org; Sat, 04 Sep 2010 14:54:17 -0400 Received: from pantheon-po41.its.yale.edu ([130.132.50.98]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrxsU-0002bd-Vp for 6983@debbugs.gnu.org; Sat, 04 Sep 2010 14:54:15 -0400 Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po41.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o84Iu3Ci031331 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 4 Sep 2010 14:56:04 -0400 Received: by furry (Postfix, from userid 1000) id C5B37C018; Sat, 4 Sep 2010 14:56:03 -0400 (EDT) From: Chong Yidong References: <4C8258D9.8030704@duaneellis.com> Date: Sat, 04 Sep 2010 14:56:03 -0400 In-Reply-To: <4C8258D9.8030704@duaneellis.com> (Duane Ellis's message of "Sat, 04 Sep 2010 10:34:01 -0400") Message-ID: <87wrr18hj0.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -2.8 (--) Duane Ellis writes: > I do not know where or how to report a problem with things on > "emacswiki" - so I am trying here. > If someone knows a better place, please let me know. > (C) "cygwin-mount.el" found Please report the problem to the authors of cygwin-mount.el. They are listed in that file: ;; Copyright (C) 1997 Michael Cook . ;; 2001 Klaus Berndl From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 04 14:54:35 2010 Received: (at control) by debbugs.gnu.org; 4 Sep 2010 18:54:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Orxsp-0002by-9D for submit@debbugs.gnu.org; Sat, 04 Sep 2010 14:54:35 -0400 Received: from pantheon-po15.its.yale.edu ([130.132.50.71]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Orxso-0002bs-A8 for control@debbugs.gnu.org; Sat, 04 Sep 2010 14:54:34 -0400 Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po15.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o84IuNBT025406 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 4 Sep 2010 14:56:23 -0400 Received: by furry (Postfix, from userid 1000) id 1EC68C018; Sat, 4 Sep 2010 14:56:23 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 6983 Date: Sat, 04 Sep 2010 14:56:23 -0400 Message-ID: <87bp8duylk.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -2.8 (--) close 6983 thanks