Article View: gnu.emacs.bug
Article #99450dired-find-file finds the wrong file.
From: eric%yamada-sun
Date: Wed, 12 Sep 1990 17:09
Date: Wed, 12 Sep 1990 17:09
42 lines
2304 bytes
2304 bytes
GNU Emacs 18.55.2 of Wed Jan 3 1990 on ptl (berkeley-unix)
I have created a file named `who, me?' by doing
% touch who,\ me\?
Now I want to look at this file from dired. So
% emacs -q
and then
C-x C-d
I see on the screen (along with other files in the directory):
-rw-r--r-- 1 eric engineer 0 Sep 12 09:34 who, me?
So far, so good. I put the cursor on that line, and type `f', and I see
-----Emacs: who, Wed Sep 12 9:35am 1.00 [0] (Fundamental)----All-
(New file)
Harrumph, I say -- I wanted a file named `who, me?', not one named
`who,'. For what it's worth, I can find the file with C-x C-f w TAB.
The "problem" seems to be in dired-get-filename. There's some code
that looks for the end of the filename, and it looks like this
(skip-chars-forward "^ \n")
This code clearly thinks that a space marks the end of the file name,
which of course is reasonable 99% of the time. In my case, it didn't
work.
So if I get rid of the space in the string argument to
skip-chars-forward, dired does what I want.
I don't understand why that space is there anyway. Should it be?
I think it's a credit to the quality of software that the FSF makes,
that the only bugs I can find are persnickety little ones like this.
------------------------------------------------------------------------
|Eric Hanchrow yamada-sun!eric@nosun.west.sun.com |
|Phase III Logic, Inc. yamada-sun!eric@cse.ogi.edu |
|1600 N.W. 167th Place Beaverton, OR 97006-4800 USA |
|Voice: (503)-645-0313 Fax: (503)-645-0207 as of 13-Dec-89|
--------------Crackling-noises-OK--do-not-correct!----------------------
Technical Details
Message-ID:
<9009121709.AA00959@noname>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!CSE.OGI.EDU!eric%yamada-sunShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,371817112623f8aa,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-09-12 10:09:06 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!CSE.OGI.EDU!eric%yamada-sun From: eric%yamada-sun@CSE.OGI.EDU Newsgroups: gnu.emacs.bug Subject: dired-find-file finds the wrong file. Message-ID: <9009121709.AA00959@noname> Date: 12 Sep 90 17:09:06 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 42 Posted: Wed Sep 12 18:09:06 1990