🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87933

comint shell mode completion of file names with spaces is still a little off

#87933
From: Jonathan I. Kamens
Date: Sat, 13 Aug 1994 03:22
35 lines
2162 bytes
In GNU Emacs 19.25.2 of Fri Aug 12 1994 on gza-client1 (sparc-sun-sunos4.1.3)

Back in Emacs 19.22, I reported:

 In tcsh, if I complete a file name with a space in it, it'll
 automatically put a backslash before the space when filling in the
 completion, and (if it's a partial completion) I'll be able to
 continue to use completion on it.
 
 However, M-x shell doesn't do that -- it doesn't quote magic
 characters when completing file names, and it won't complete the
 beginning of a file name containing backslashed magic characters.

Simon Marshall responded:

 There are two tricky parts to this: representing "magic characters" and
 (1) implementing a `replace-regexp-in-string' function, and (2) making
 `comint-word' understand them so that it would match and return the
 correct string.  Neither is trivial and my attempt at them will have to
 wait awhile.
 
 Thanks for pointing this problem out, Simon.

As of Emacs 19.25, my report has been partially, but not completely
addresses.  Now, comint/shell mode will complete a file name with a
space in it, but won't escape the spaces so that the shell will get
the filename intact.

Simon may already know about this and have it on his queue to
eventually fix, but I thought I should probably report it anyway just
in case it slipped through the cracks.

Thanks,

Jonathan Kamens  |  OpenVision Technologies, Inc.  |   jik@cam.ov.com
Technical Details
Message-ID: <199408121806.OAA12821@gza-client1.aktis.com>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!primenet!netnews.asu.edu !asuvax!cs.utexas.edu!swrinde!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!cam.ov.COM!jik

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,72cf5224e9ff88ca,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-13 06:14:25 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!primenet!netnews.asu.edu      !asuvax!cs.utexas.edu!swrinde!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!cam.ov.COM!jik
From: jik@cam.ov.COM (Jonathan I. Kamens)
Newsgroups: gnu.emacs.bug
Subject: comint shell mode completion of file names with spaces is still a little off
Date: 12 Aug 1994 23:22:49 -0400
Organization: GNUs Not Usenet
Lines: 36
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <199408121806.OAA12821@gza-client1.aktis.com>