aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThien-Thi Nguyen2005-08-18 11:30:44 +0000
committerThien-Thi Nguyen2005-08-18 11:30:44 +0000
commitdd52fff6d987801bfb764660c97664caa20bb114 (patch)
tree47f8883780a418dee1cefc24f4193a2011139b55
parent9d144e95df5122d76b2fa9774bee973087672167 (diff)
downloademacs-dd52fff6d987801bfb764660c97664caa20bb114.tar.gz
emacs-dd52fff6d987801bfb764660c97664caa20bb114.zip
(dired-move-to-end-of-filename):
Handle fifo as rendered by "ls -lF": Don't include trailing "|".
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/dired.el6
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ccc4c154971..0caf88a7861 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-08-18 Thien-Thi Nguyen <ttn@gnu.org>
2
3 * dired.el (dired-move-to-end-of-filename):
4 Handle fifo as rendered by "ls -lF": Don't include trailing "|".
5
12005-08-18 Kim F. Storm <storm@cua.dk> 62005-08-18 Kim F. Storm <storm@cua.dk>
2 7
3 * ido.el (ido-everywhere): Fix defcustom :set function to disable 8 * ido.el (ido-everywhere): Fix defcustom :set function to disable
diff --git a/lisp/dired.el b/lisp/dired.el
index 8d1b4fe8e7e..508bc39bbb5 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1953,11 +1953,11 @@ Return the position of the beginning of the filename, or nil if none found."
1953 (eq (preceding-char) ?@) ;; did ls really mark the link? 1953 (eq (preceding-char) ?@) ;; did ls really mark the link?
1954 (forward-char -1)))) 1954 (forward-char -1))))
1955 (goto-char eol) ;; else not a symbolic link 1955 (goto-char eol) ;; else not a symbolic link
1956 ;; ls -lF marks dirs, sockets and executables with exactly one 1956 ;; ls -lF marks dirs, sockets, fifos and executables with exactly
1957 ;; trailing character. (Executable bits on symlinks ain't mean 1957 ;; one trailing character. (Executable bits on symlinks ain't mean
1958 ;; a thing, even to ls, but we know it's not a symlink.) 1958 ;; a thing, even to ls, but we know it's not a symlink.)
1959 (and used-F 1959 (and used-F
1960 (or (memq file-type '(?d ?s)) 1960 (or (memq file-type '(?d ?s ?p))
1961 executable) 1961 executable)
1962 (forward-char -1)))) 1962 (forward-char -1))))
1963 (or no-error 1963 (or no-error