From unknown Thu Jun 19 12:19:59 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#1025 <1025@debbugs.gnu.org> To: bug#1025 <1025@debbugs.gnu.org> Subject: Status: 23.0.60; file name completion fails in *shell* buffer Reply-To: bug#1025 <1025@debbugs.gnu.org> Date: Thu, 19 Jun 2025 19:19:59 +0000 retitle 1025 23.0.60; file name completion fails in *shell* buffer reassign 1025 emacs submitter 1025 Peter Dyballa severity 1025 normal thanks From Peter_Dyballa@Freenet.DE Thu Sep 25 08:09:36 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.1 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 25 Sep 2008 15:09:37 +0000 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 m8PF9Wn7015658 for ; Thu, 25 Sep 2008 08:09:34 -0700 Received: from mx10.gnu.org ([199.232.76.166]:37816) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KisRB-0005qf-Dr for emacs-pretest-bug@gnu.org; Thu, 25 Sep 2008 11:07:25 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KisT8-0004Il-MD for emacs-pretest-bug@gnu.org; Thu, 25 Sep 2008 11:09:30 -0400 Received: from mout2.freenet.de ([195.4.92.92]:40997) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KisT6-0004GG-Vy for emacs-pretest-bug@gnu.org; Thu, 25 Sep 2008 11:09:25 -0400 Received: from [195.4.92.14] (helo=4.mx.freenet.de) by mout2.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.69 #65) id 1KisT0-0003mB-0X for emacs-pretest-bug@gnu.org; Thu, 25 Sep 2008 17:09:18 +0200 Received: from p5b23dfde.dip.t-dialin.net ([91.35.223.222]:64899 helo=[192.168.1.2]) by 4.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 25) (Exim 4.69 #65) id 1KisSz-0001OT-H8 for emacs-pretest-bug@gnu.org; Thu, 25 Sep 2008 17:09:17 +0200 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: 7bit Message-Id: <8BEC6757-4D48-4BE0-89CC-C95DE2FF7388@Freenet.DE> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: emacs-pretest-bug@gnu.org From: Peter Dyballa Subject: 23.0.60; file name completion fails in *shell* buffer Date: Thu, 25 Sep 2008 17:09:07 +0200 X-Mailer: Apple Mail (2.753.1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Hello! When I write in *shell* buffer the command to launch an elderly version of an Emacs application in Mac OS X to pass some arguments to it, I use file name completion. I have to do it in steps. I start with that GNU Emacs does not complain when I later try file name completion and write then "/App" that it becomes / Applications/. I add "Aqu" and . The path name is now expanded to "/Applications/AquaEmacs" with a few choices which are shown in a *Completions* buffer upon next TAB press: Click on a completion to select it. In this buffer, type RET to select the completion near point. Possible completions are: AquaEmacs-2a.app/ AquaEmacs-bundle.app/ AquaEmacs-pre3.app/ AquaEmacs-zuvor.app/ AquaEmacs.app/ AquaEmacs\ 8.0-rc5.app/ I select the last item, i.e. "AquaEmacs\ 8.0-rc5.app/" so that the command line now shows "/Applications/AquaEmacs\ 8.0-rc5.app/". This directory has only one member: "Contents". So I hit and see: "/ Applications/AquaEmacs 8.0-rc5.app/Contents/". Great! The auxiliary backslashes are removed from the previously ugly view. This directory has a few members. To make a choice I hit again . In *shell* buffer nothing happens, a beep sounds, and a *Backtrace* buffer opens: Debugger entered--Lisp error: (file-error "Opening directory" "no such file or directory" "/Users/pete/8.0-rc5.app/Contents/") file-name-completion("" "/Users/pete/8.0-rc5.app/Contents/") comint-dynamic-complete-as-filename() shell-dynamic-complete-filename() run-hook-with-args-until-success(shell-dynamic-complete-filename) comint-dynamic-complete() call-interactively(comint-dynamic-complete nil nil) So it seems that the decision to remove the backslashes wasn't so clever ... In GNU Emacs 23.0.60.4 (powerpc-apple-darwin8.11.0, GTK+ Version 2.12.11) of 2008-09-22 on localhost Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000 configured using `configure '--without-sound' '--without-pop' '-- with-dbus' '--with-libotf' '--enable-locallisppath=/Library/ Application Support/Emacs/calendar23:/Library/Application Support/ Emacs/caml:/Library/Application Support/Emacs:/sw/share/emacs21/site- lisp/elib' 'PKG_CONFIG_PATH=/sw/lib/xft2/lib/pkgconfig:/sw/lib/ fontconfig2/lib/pkgconfig:/sw/lib/freetype219/lib/pkgconfig:/sw/lib/ pango-ft219/lib/pkgconfig:/sw/lib/qt4-x11/lib/pkgconfig:/sw/lib/ system-openssl/lib/pkgconfig:/sw/lib/pkgconfig:/sw/share/pkgconfig:/ usr/X11R6/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig' 'CFLAGS=-Wno-pointer-sign -bind_at_load -H -pipe -fPIC -mcpu=7450 - mtune=7450 -fast -mpim-altivec -ftree-vectorize -foptimize-register- move -freorder-blocks -freorder-blocks-and-partition -fthread-jumps - fpeephole -fno-crossjumping' 'CPPFLAGS=-no-cpp-precomp' 'LDFLAGS=- bind_at_load -dead_strip -multiply_defined suppress -L/sw/lib/ncurses'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: de_DE.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Debugger Minor modes in effect: shell-dirtrack-mode: t show-paren-mode: t display-time-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: x s h e l l C-x u o SPC / A p p A q u -- Greetings Pete Mac OS X is like a wigwam: no fences, no gates, but an apache inside. From cyd@stupidchicken.com Thu Sep 25 12:26:44 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1025-done) by emacsbugs.donarmstrong.com; 25 Sep 2008 19:26:44 +0000 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 m8PJQbSM015143 for <1025-done@emacsbugs.donarmstrong.com>; Thu, 25 Sep 2008 12:26:38 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 6416F57E32C; Thu, 25 Sep 2008 15:27:10 -0400 (EDT) From: Chong Yidong To: Peter Dyballa Cc: 1025-done@debbugs.gnu.org Subject: Re: 23.0.60; file name completion fails in *shell* buffer Date: Thu, 25 Sep 2008 15:27:10 -0400 Message-ID: <87abdwrppt.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-CrossAssassin-Score: 3 I've just checked in a fix. Thanks. From unknown Thu Jun 19 12:19:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Fri, 24 Oct 2008 14:24:03 +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