From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Krishnakumar B Newsgroups: gmane.emacs.devel Subject: dired-mode doesn't work with -F switch to ls Date: Thu, 05 Oct 2006 21:20:27 -0500 Message-ID: <87vemyxk0k.fsf@dre.vanderbilt.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160101255 29206 80.91.229.2 (6 Oct 2006 02:20:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2006 02:20:55 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 06 04:20:50 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GVfKO-0001QP-5w for ged-emacs-devel@m.gmane.org; Fri, 06 Oct 2006 04:20:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVfKM-00072F-CS for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2006 22:20:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GVfKB-00071m-2L for emacs-devel@gnu.org; Thu, 05 Oct 2006 22:20:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GVfK9-00071W-EL for emacs-devel@gnu.org; Thu, 05 Oct 2006 22:20:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVfK9-00071T-8k for emacs-devel@gnu.org; Thu, 05 Oct 2006 22:20:29 -0400 Original-Received: from [129.59.129.253] (helo=smtp.dre.vanderbilt.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GVfQv-0007lK-Lt for emacs-devel@gnu.org; Thu, 05 Oct 2006 22:27:29 -0400 Original-Received: by smtp.dre.vanderbilt.edu (Postfix, from userid 1000) id C7043FC05C; Thu, 5 Oct 2006 21:20:27 -0500 (CDT) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60448 Archived-At: Hi, 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). -kitty. In GNU Emacs 22.0.50.1 (i386-msvc-nt5.2.3790) of 2006-09-19 on EQUUS X server distributor `Microsoft Corp.', version 5.2.3790 configured using `configure --with-msvc (13.10)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: display-time-mode: t recentf-mode: t icomplete-mode: t auto-image-file-mode: t delete-selection-mode: t partial-completion-mode: t shell-dirtrack-mode: t encoded-kbd-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: . e m C-x k $ C-g $ c C-/ t o o b i n C-n C-n C-n C-n C-n C-n g g q C-g M-x r e i d i r e d - r e b u r e p o r t Recent messages: Loading places from c:/kitty/.emacs-places...done For information about the GNU Project and its goals, type C-h C-p. Beginning of buffer scroll-signal-boundary-error: Beginning of buffer Quit Undo... Undo! dired-get-file-for-visit: File no longer exists; type `g' to update dired buffer [2 times] Quit Loading emacsbug...done -- Krishnakumar B Institute for Software Integrated Systems, Dept. of EECS, Vanderbilt University