aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2009-01-28 19:02:17 +0000
committerEli Zaretskii2009-01-28 19:02:17 +0000
commit40077a525feeed248f54e99d42b57272fed6dc5e (patch)
tree6590252e5d1ddf06d2ea58ebc96c3805e02fe95d
parentf213fc091d1a93eb0606786670ae67f89a1129cf (diff)
downloademacs-40077a525feeed248f54e99d42b57272fed6dc5e.tar.gz
emacs-40077a525feeed248f54e99d42b57272fed6dc5e.zip
(ls-lisp-classify): Propertize file name before concatenating the type
indicating character. (ls-lisp-format): Don't propertize file-name if ls-lisp-classify already did.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/ls-lisp.el14
2 files changed, 17 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9da3daaebc4..47aaa51deb6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12009-01-28 Eli Zaretskii <eliz@gnu.org>
2
3 * ls-lisp.el (ls-lisp-classify): Propertize file name before
4 concatenating the type indicating character.
5 (ls-lisp-format): Don't propertize file-name only if
6 ls-lisp-classify already did.
7
12009-01-28 Michael Albinus <michael.albinus@gmx.de> 82009-01-28 Michael Albinus <michael.albinus@gmx.de>
2 9
3 * net/dbus.el (dbus-event-error-hooks): Fix docstring. Describe 10 * net/dbus.el (dbus-event-error-hooks): Fix docstring. Describe
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el
index 7c9c9e61688..0374b9bbaed 100644
--- a/lisp/ls-lisp.el
+++ b/lisp/ls-lisp.el
@@ -531,13 +531,17 @@ for directory, string (name linked to) for symbolic link, or nil."
531 (type (cadr filedata))) 531 (type (cadr filedata)))
532 (cond (type 532 (cond (type
533 (cons 533 (cons
534 (concat file-name (if (eq type t) "/" "@")) 534 (concat (propertize file-name 'dired-filename t)
535 (if (eq type t) "/" "@"))
535 (cdr filedata))) 536 (cdr filedata)))
536 ((string-match "x" (nth 9 filedata)) 537 ((string-match "x" (nth 9 filedata))
537 (cons 538 (cons
538 (concat file-name "*") 539 (concat (propertize file-name 'dired-filename t) "*")
539 (cdr filedata))) 540 (cdr filedata)))
540 (t filedata)))) 541 (t
542 (cons
543 (propertize file-name 'dired-filename t)
544 (cdr filedata))))))
541 545
542(defun ls-lisp-extension (filename) 546(defun ls-lisp-extension (filename)
543 "Return extension of FILENAME (ignoring any version extension) 547 "Return extension of FILENAME (ignoring any version extension)
@@ -632,7 +636,9 @@ SWITCHES, TIME-INDEX and NOW give the full switch list and time data."
632 " " 636 " "
633 (ls-lisp-format-time file-attr time-index now) 637 (ls-lisp-format-time file-attr time-index now)
634 " " 638 " "
635 (propertize file-name 'dired-filename t) 639 (if (not (memq ?F switches)) ; ls-lisp-classify already did that
640 (propertize file-name 'dired-filename t)
641 file-name)
636 (if (stringp file-type) ; is a symbolic link 642 (if (stringp file-type) ; is a symbolic link
637 (concat " -> " file-type)) 643 (concat " -> " file-type))
638 "\n" 644 "\n"