[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ls-lisp-insert-directory calls directory-files-and-attributes incorrectl
From: |
Chris Moore |
Subject: |
ls-lisp-insert-directory calls directory-files-and-attributes incorrectly |
Date: |
Wed, 01 Oct 2003 04:21:57 +0200 |
ls-lisp.el defines function ls-lisp-insert-directory.
ls-lisp-insert-directory does:
(setq wildcard t)
and then
(directory-files-and-attributes dir nil wildcard t)
but the 3rd argument to directory-files-and-attributes, MATCH, should
be a string, a regexp, not t.
This is causing me problems if I try to use dired on a Windows box to
rename a file from "foo" to "foo[1]". The file actually does get
renamed correctly but an error is triggered when Emacs tries to
update the dired display:
Debugger entered--Lisp error: (wrong-type-argument stringp t)
directory-files-and-attributes("foo[1]/" nil t t)
ls-lisp-insert-directory("foo[1]" (97 108 100) nil nil nil)
insert-directory("foo[1]" "-ald" nil nil)
dired-insert-directory("c:/foodir/" "-ald" ("foo[1]"))
[...]
Exactly what I did? I made a file called 'foo' in a directory, I did
a "C-x d RET" to dired the directory. I used 'n' repeatedly to step
to the file and then typed "R foo[1] RET" to rename the file.
Chris.
In GNU Emacs 21.3.50.1 (i386-mingw-nt5.1.2600)
of 2003-10-01 on CHRISLAP
configured using `configure --with-gcc (3.2)'
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: ENG
locale-coding-system: iso-latin-1
default-enable-multibyte-characters: t
Major mode: Mail
Minor modes in effect:
auto-compression-mode: t
display-time-mode: t
erc-button-mode: t
erc-ring-mode: t
erc-pcomplete-mode: t
erc-fill-mode: t
erc-track-mode: t
show-paren-mode: t
iswitchb-mode: t
mouse-wheel-mode: t
global-font-lock-mode: t
unify-8859-on-encoding-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ls-lisp-insert-directory calls directory-files-and-attributes incorrectly,
Chris Moore <=