all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: dired-mode doesn't work with -F switch to ls
Date: Fri, 06 Oct 2006 11:46:01 +0200	[thread overview]
Message-ID: <uac49ojza.fsf@gnu.org> (raw)
In-Reply-To: <87vemyxk0k.fsf@dre.vanderbilt.edu> (message from Krishnakumar B on Thu, 05 Oct 2006 21:20:27 -0500)

> From: Krishnakumar B <kitty@dre.vanderbilt.edu>
> Date: Thu, 05 Oct 2006 21:20:27 -0500
> 
> With the following in my .emacs:
> 
> (setq dired-listing-switches "-alF")
> 
> if I open a dired buffer, and try to visit an executable file (say a batch
> file), I get the following error:
> 
> dired-get-file-for-visit: File no longer exists; type `g' to update dired buffer
> 
> Which is not true, i.e., the file exists.  I think that Emacs is somehow
> confused by the trailing * in the dired listing for executable files, and
> tries to open a file with a * at the end.  Stack trace when error occurs is
> below:
> 
> signal(error ("File no longer exists; type `g' to update dired buffer"))
> error("File no longer exists; type `g' to update dired buffer")
> dired-get-file-for-visit()
> dired-advertised-find-file()
> call-interactively(dired-advertised-find-file)
> 
> This used to work in GNU Emacs.  I am able to reproduce it with emacs -q
> and manually setting the dired-listing-switches variable.  For example, a
> file rename also fails with the following error:
> 
> Thu Oct 05 21:12:01 2006    Buffer `bin'
> Move `c:/Tools/bin/ls.exe*' to `c:/Tools/bin/gls.exe' failed:
> (file-error Renaming invalid argument c:/Tools/bin/ls.exe* c:/Tools/bin/gls.exe)
> 
> I don't have Cygwin installed, but I do have UnixUtils installed (which
> ships with GNU ls).  But I think the default configuration of GNU Emacs on
> Windows doesn't use the insert-directory-program since
> ls-lisp-use-insert-directory-program is nil by default.  I also checked the
> behaviour after renaming ls to gls, but the error persists.  So I think
> that it's a bug in the lisp emulation of ls (or somewhere in dired-mode).

It's not a bug in ls-lisp.el, it's a well-known limitation: ls-lisp
doesn't support the -F switch yet.

And yes, if ls-lisp-use-insert-directory-program is nil, Emacs on
Windows will not use ls.exe, even if you do have it.

  reply	other threads:[~2006-10-06  9:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-06  2:20 dired-mode doesn't work with -F switch to ls Krishnakumar B
2006-10-06  9:46 ` Eli Zaretskii [this message]
2006-10-07  1:07   ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uac49ojza.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.