diff options
| author | Stefan Monnier | 2004-09-25 15:29:35 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-09-25 15:29:35 +0000 |
| commit | 52e281e87aaed70dc4e999e95b260b792d9cef64 (patch) | |
| tree | dbe8c502e976ed9b8d263e612506849ab19c6a58 | |
| parent | 1723490639fe2d3f37927673360b48c447cae50c (diff) | |
| download | emacs-52e281e87aaed70dc4e999e95b260b792d9cef64.tar.gz emacs-52e281e87aaed70dc4e999e95b260b792d9cef64.zip | |
(insert-directory): Obey --dired even with symlinks.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/files.el | 3 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a77f2206e58..c972f8ca8ab 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,10 @@ | |||
| 1 | 2004-09-25 Stefan <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * files.el (insert-directory): Obey --dired even with symlinks. | ||
| 4 | |||
| 1 | 2004-09-25 Lars Hansen <larsh@math.ku.dk> | 5 | 2004-09-25 Lars Hansen <larsh@math.ku.dk> |
| 2 | 6 | ||
| 3 | * ls-lisp.el (ls-lisp-format): Mark file names with poperty | 7 | * ls-lisp.el (ls-lisp-format): Mark file names with property |
| 4 | dired-filename. | 8 | dired-filename. |
| 5 | 9 | ||
| 6 | 2004-09-25 Kim F. Storm <storm@cua.dk> | 10 | 2004-09-25 Kim F. Storm <storm@cua.dk> |
| @@ -21,8 +25,8 @@ | |||
| 21 | it, and show completions. | 25 | it, and show completions. |
| 22 | (ido-all-completions): Let bind ido-directory-too-big to nil. | 26 | (ido-all-completions): Let bind ido-directory-too-big to nil. |
| 23 | (ido-exhibit): Handle ido-directory-too-big. | 27 | (ido-exhibit): Handle ido-directory-too-big. |
| 24 | (ido-read-buffer): Handle fallback to read-buffer. Init | 28 | (ido-read-buffer): Handle fallback to read-buffer. |
| 25 | ido-directory-too-big. | 29 | Init ido-directory-too-big. |
| 26 | (ido-read-file-name, ido-read-directory-name, ido-completing-read): | 30 | (ido-read-file-name, ido-read-directory-name, ido-completing-read): |
| 27 | Init ido-directory-too-big. | 31 | Init ido-directory-too-big. |
| 28 | 32 | ||
diff --git a/lisp/files.el b/lisp/files.el index 994422fe710..ee6793bec71 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -4376,7 +4376,8 @@ normally equivalent short `-D' option is just passed on to | |||
| 4376 | (while (< (point) end) | 4376 | (while (< (point) end) |
| 4377 | (let ((start (+ beg (read (current-buffer)))) | 4377 | (let ((start (+ beg (read (current-buffer)))) |
| 4378 | (end (+ beg (read (current-buffer))))) | 4378 | (end (+ beg (read (current-buffer))))) |
| 4379 | (if (= (char-after end) ?\n) | 4379 | (if (memq (char-after end) '(?\n ?\ )) |
| 4380 | ;; End is followed by \n or by " -> ". | ||
| 4380 | (put-text-property start end 'dired-filename t) | 4381 | (put-text-property start end 'dired-filename t) |
| 4381 | ;; It seems that we can't trust ls's output as to | 4382 | ;; It seems that we can't trust ls's output as to |
| 4382 | ;; byte positions of filenames. | 4383 | ;; byte positions of filenames. |