(dired-show-file-type): Format filename with "%s" to escape any format-like
authorJuanma Barranquero <lekktu@gmail.com>
Mon, 11 Nov 2002 11:44:24 +0000 (11:44 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Mon, 11 Nov 2002 11:44:24 +0000 (11:44 +0000)
sequences it could contain.

lisp/ChangeLog
lisp/dired-aux.el

index aefa123..a2f8ce2 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-11  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>  (tiny change)
+
+       * dired-aux.el (dired-show-file-type): Format filename with "%s" to
+       escape any format-like sequences it could contain.
+
 2002-11-11  Per Abrahamsen  <abraham@dina.kvl.dk>
 
        * cus-edit.el (custom-save-delete): Force emacs-lisp-mode.
index c20888f..09ad9f9 100644 (file)
@@ -2033,7 +2033,7 @@ true then the type of the file linked to by FILE is printed instead."
       (call-process "file" nil t t "--" file))
     (when (bolp)
       (backward-delete-char 1))
-    (message (buffer-string))))
+    (message "%s" (buffer-string))))
 
 (provide 'dired-aux)