From: Chris Moore <[EMAIL PROTECTED]> To: emacs-pretest-bug@gnu.org Subject: ads Reply-to: Chris Moore <[EMAIL PROTECTED]> FCC: ~/Mail/SENT --text follows this line-- Please describe exactly what actions triggered the bug and the precise symptoms of the bug:
If I use 'dired' on a directory which has a subdirectory with a name ending with a colon, and do a recursive directory listing in there, I can't visit any files under subdirectories. Here's an example: Set up a new directory, 2 subdirectories and a file: (debian) [EMAIL PROTECTED]:~$ mkdir /tmp/dir (debian) [EMAIL PROTECTED]:~$ mkdir /tmp/dir/colon: (debian) [EMAIL PROTECTED]:~$ mkdir /tmp/dir/subdir (debian) [EMAIL PROTECTED]:~$ date > /tmp/dir/subdir/date.txt Run dired on the dir, and add the 'R' flag to make the listing recursive: C-x d /tmp/dir RET C-u s R RET The dired buffer looks like this: ---------- /tmp/dir: total 1 drwxr-xr-x 4 chris chris 96 2006-09-22 00:09 . drwxrwxrwt 13 root root 512 2006-09-22 00:09 .. drwxr-xr-x 2 chris chris 48 2006-09-22 00:09 colon: drwxr-xr-x 2 chris chris 72 2006-09-22 00:09 subdir /tmp/dir/./colon:: total 0 drwxr-xr-x 2 chris chris 48 2006-09-22 00:09 . drwxr-xr-x 4 chris chris 96 2006-09-22 00:09 .. /tmp/dir/./subdir: total 4 drwxr-xr-x 2 chris chris 72 2006-09-22 00:09 . drwxr-xr-x 4 chris chris 96 2006-09-22 00:09 .. -rw-r--r-- 1 chris chris 30 2006-09-22 00:09 date.txt ---------- If I move down to the 'date.txt' file and hit 'f' to find the file, I see an error: dired-get-file-for-visit: File no longer exists; type `g' to update dired buffer Notice the '/./' in the paths in the dired buffer. This doesn't happen if the 'colon:' directory is removed. I suspect Emacs is looking for the "/tmp/dir/./subdir:" line to work out which directory to find the file in, and getting confused by the line ending "colon:". Will the "/tmp/dir/./subdir:" line always begin with a '/'? If so, that would be a way not to get confused. Chris. If emacs crashed, and you have the emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/local/share/emacs/22.0.50/etc/DEBUG for instructions. In GNU Emacs 22.0.50.156 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of 2006-09-17 on chrislap X server distributor `The X.Org Foundation', version 11.0.70101000 configured using `configure '--with-gtk' '--with-xpm' '--with-jpeg' '--with-png' '--with-gif'' 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: en_GB.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: show-paren-mode: t display-time-mode: t iswitchb-mode: t dynamic-completion-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: <backspace> s C-x o C-u s R C-g C-x o C-b <escape> <backspace> C-r C-r C-e SPC r SPC R E T C-x o C-u s r <return> C-u s <backspace> R <return> C-x o C-b C-b C-b C-b <backspace> R C-x o n n n n n n n n n n n n f f f f f f g f C-x o C-e C-q C-j C-x o C-p C-p C-p C-p C-a C-SPC C-n C-n C-n C-n C-n <escape> w C-x o C-y C-x o <escape> x r e p o r SPC <tab> e <backspace> <return> Recent messages: Copy: 1 of 1 Copy: 1 file Quit dired-get-file-for-visit: File no longer exists; type `g' to update dired buffer J-Shell, version 2.1 Quit [3 times] dired-get-file-for-visit: File no longer exists; type `g' to update dired buffer [7 times] Mark set [2 times] Loading emacsbug...done _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug