* bug#5597: Dired unable to properly recognize file names
@ 2010-02-18 15:27 Otto Maddox
2010-02-19 0:26 ` Glenn Morris
0 siblings, 1 reply; 10+ messages in thread
From: Otto Maddox @ 2010-02-18 15:27 UTC (permalink / raw)
To: 5597
In the shell create a new file:
$ touch ~/2010-02-18\ foo
Then in Emacs:
C-x d ~ RET
and move down to the line file you just created. Only the "foo" portion
is recognized as belonging to the file name. Trying to visit the file
with RET then gives:
dired-get-file-for-visit: File no longer exists; type `g' to update
dired buffer
In GNU Emacs 22.3.1 (i386-apple-darwin9.4.0, Carbon Version 1.6.0)
of 2008-09-16
Windowing system distributor `Apple Inc.', version 10.5.8
configured using `configure '--enable-carbon-app''
--
http://www.fastmail.fm - Or how I learned to stop worrying and
love email again
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#5597: Dired unable to properly recognize file names
2010-02-18 15:27 bug#5597: Dired unable to properly recognize file names Otto Maddox
@ 2010-02-19 0:26 ` Glenn Morris
2010-02-19 4:42 ` Stefan Monnier
0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2010-02-19 0:26 UTC (permalink / raw)
To: Otto Maddox; +Cc: 5597
"Otto Maddox" wrote:
> In the shell create a new file:
>
> $ touch ~/2010-02-18\ foo
>
> Then in Emacs:
>
> C-x d ~ RET
This works fine for me in GNU/Linux with `emacs -Q', in Emacs 22.3,
23.1, and the current trunk. Maybe this is Mac-specific? Seems odd.
> In GNU Emacs 22.3.1 (i386-apple-darwin9.4.0, Carbon Version 1.6.0)
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#5597: Dired unable to properly recognize file names
2010-02-19 0:26 ` Glenn Morris
@ 2010-02-19 4:42 ` Stefan Monnier
2010-02-21 2:30 ` Glenn Morris
2011-09-18 11:59 ` Lars Magne Ingebrigtsen
0 siblings, 2 replies; 10+ messages in thread
From: Stefan Monnier @ 2010-02-19 4:42 UTC (permalink / raw)
To: Glenn Morris; +Cc: 5597, Otto Maddox
>> In the shell create a new file:
>> $ touch ~/2010-02-18\ foo
>> Then in Emacs:
>> C-x d ~ RET
> This works fine for me in GNU/Linux with `emacs -Q', in Emacs 22.3,
> 23.1, and the current trunk. Maybe this is Mac-specific? Seems odd.
I think it depends on whether your `ls' supports --dired.
Stefan
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#5597: Dired unable to properly recognize file names
2010-02-19 4:42 ` Stefan Monnier
@ 2010-02-21 2:30 ` Glenn Morris
2011-09-18 11:59 ` Lars Magne Ingebrigtsen
1 sibling, 0 replies; 10+ messages in thread
From: Glenn Morris @ 2010-02-21 2:30 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 5597, Otto Maddox
Stefan Monnier wrote:
> I think it depends on whether your `ls' supports --dired.
Indeed it fails if one sets dired-use-ls-dired to nil.
That variable is initialized in a funny way, via
(string-match "gnu" system-configuration)
I guess (?) many Mac users do indeed have access to GNU ls, despite
not having "gnu" in their `system-configuration'.
It also doesn't really seem to be documented anywhere that dired will
perform less well if the underlying ls does not support --dired.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#5597: Dired unable to properly recognize file names
2010-02-19 4:42 ` Stefan Monnier
2010-02-21 2:30 ` Glenn Morris
@ 2011-09-18 11:59 ` Lars Magne Ingebrigtsen
2011-09-18 15:10 ` Eli Zaretskii
1 sibling, 1 reply; 10+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-18 11:59 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 5597, Otto Maddox
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> I think it depends on whether your `ls' supports --dired.
Speaking of which, is there any particular reason why dired still uses
an external program? If it's because `ls-lisp' is too slow, wouldn't it
be rather easy to, say, extend `directory-files' to return a list of
stat structures instead?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#5597: Dired unable to properly recognize file names
2011-09-18 11:59 ` Lars Magne Ingebrigtsen
@ 2011-09-18 15:10 ` Eli Zaretskii
2011-09-19 11:52 ` Andy Moreton
0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2011-09-18 15:10 UTC (permalink / raw)
To: Lars Magne Ingebrigtsen; +Cc: 5597, ottomaddox
> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> Date: Sun, 18 Sep 2011 13:59:05 +0200
> Cc: 5597@debbugs.gnu.org, Otto Maddox <ottomaddox@fastmail.fm>
>
> Speaking of which, is there any particular reason why dired still uses
> an external program? If it's because `ls-lisp' is too slow
I don't think it's slow on a Posix system, where the `stat' function
is highly optimized and very fast. I think the main reasons are
(a) inertia, and (b) ls-lisp doesn't support all of the switches
available with GNU `ls'.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#5597: Dired unable to properly recognize file names
2011-09-18 15:10 ` Eli Zaretskii
@ 2011-09-19 11:52 ` Andy Moreton
2011-09-19 12:47 ` Eli Zaretskii
0 siblings, 1 reply; 10+ messages in thread
From: Andy Moreton @ 2011-09-19 11:52 UTC (permalink / raw)
To: 5597
On Sun 18 Sep 2011, Eli Zaretskii wrote:
>> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
>> Date: Sun, 18 Sep 2011 13:59:05 +0200
>> Cc: 5597@debbugs.gnu.org, Otto Maddox <ottomaddox@fastmail.fm>
>>
>> Speaking of which, is there any particular reason why dired still uses
>> an external program? If it's because `ls-lisp' is too slow
>
> I don't think it's slow on a Posix system, where the `stat' function
> is highly optimized and very fast. I think the main reasons are
> (a) inertia, and (b) ls-lisp doesn't support all of the switches
> available with GNU `ls'.
On Windows it is useful to be able to run Cygwin ls as a program
to see Cygwin's symlinks and permissions.
AndyM
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#5597: Dired unable to properly recognize file names
2011-09-19 11:52 ` Andy Moreton
@ 2011-09-19 12:47 ` Eli Zaretskii
2011-09-19 16:28 ` Glenn Morris
0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2011-09-19 12:47 UTC (permalink / raw)
To: Andy Moreton; +Cc: 5597
> From: Andy Moreton <andrewjmoreton@gmail.com>
> Date: Mon, 19 Sep 2011 12:52:59 +0100
>
> On Windows it is useful to be able to run Cygwin ls as a program
> to see Cygwin's symlinks and permissions.
There should be no problem to support Cygwin symlinks in native w32
code that implements `stat'. Patches welcome.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#5597: Dired unable to properly recognize file names
2011-09-19 12:47 ` Eli Zaretskii
@ 2011-09-19 16:28 ` Glenn Morris
2011-09-19 16:35 ` Eli Zaretskii
0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2011-09-19 16:28 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Andy Moreton, 5597
BTW, the actual problem that triggered this report almost certainly does
not exist anymore, since dired.el now tests "properly" for --dired
support, so it should be found on a Mac. Also the relevance of --dired
is now mentioned in the manual, plus dired gives a message the first
time it is used if --dired is not found to be supported.
I'm inclined to merge this with #9039 and hence close it.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#5597: Dired unable to properly recognize file names
2011-09-19 16:28 ` Glenn Morris
@ 2011-09-19 16:35 ` Eli Zaretskii
0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2011-09-19 16:35 UTC (permalink / raw)
To: Glenn Morris; +Cc: andrewjmoreton, 5597
> From: Glenn Morris <rgm@gnu.org>
> Cc: Andy Moreton <andrewjmoreton@gmail.com>, 5597@debbugs.gnu.org
> Date: Mon, 19 Sep 2011 12:28:11 -0400
>
> I'm inclined to merge this with #9039 and hence close it.
FWIW, I don't mind. I just answered Lars's question about ls-lisp.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-09-19 16:35 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-18 15:27 bug#5597: Dired unable to properly recognize file names Otto Maddox
2010-02-19 0:26 ` Glenn Morris
2010-02-19 4:42 ` Stefan Monnier
2010-02-21 2:30 ` Glenn Morris
2011-09-18 11:59 ` Lars Magne Ingebrigtsen
2011-09-18 15:10 ` Eli Zaretskii
2011-09-19 11:52 ` Andy Moreton
2011-09-19 12:47 ` Eli Zaretskii
2011-09-19 16:28 ` Glenn Morris
2011-09-19 16:35 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).