aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-29 17:08:09 +0000
committerRichard M. Stallman1993-06-29 17:08:09 +0000
commita12ff9f32b8901c02a7e12ed094bd72a1e2ec39c (patch)
tree7c340fe9431b3ef6790ef75fea53bb8b54dfeaa7
parent7324d660df348536d3a58c060f311c5b12648acd (diff)
downloademacs-a12ff9f32b8901c02a7e12ed094bd72a1e2ec39c.tar.gz
emacs-a12ff9f32b8901c02a7e12ed094bd72a1e2ec39c.zip
(insert-directory): Doc fix.
(ls-lisp-format): Provide user name when known. On ms-dos, provide a name for the group, to be prettier.
-rw-r--r--lisp/ls-lisp.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el
index aa97960750c..e02b668aa71 100644
--- a/lisp/ls-lisp.el
+++ b/lisp/ls-lisp.el
@@ -22,7 +22,7 @@
22;; INSTALLATION ======================================================= 22;; INSTALLATION =======================================================
23;; 23;;
24;; Put this file into your load-path. To use it, load it 24;; Put this file into your load-path. To use it, load it
25;; with (load "directory"). 25;; with (load "ls-lisp").
26 26
27;; OVERVIEW =========================================================== 27;; OVERVIEW ===========================================================
28 28
@@ -57,7 +57,7 @@ Optional third arg WILDCARD means treat FILE as shell wildcard.
57Optional fourth arg FULL-DIRECTORY-P means file is a directory and 57Optional fourth arg FULL-DIRECTORY-P means file is a directory and
58switches do not contain `d', so that a full listing is expected. 58switches do not contain `d', so that a full listing is expected.
59 59
60This version of the function comes from `directory.el'. 60This version of the function comes from `ls-lisp.el'.
61It does not support ordinary shell wildcards; instead, it allows 61It does not support ordinary shell wildcards; instead, it allows
62regular expressions to match file names. 62regular expressions to match file names.
63 63
@@ -187,8 +187,12 @@ The switches that work are: A a c i r S s t u"
187 ;; optional arg. 187 ;; optional arg.
188 (format " %3d %-8d %-8d %8d " 188 (format " %3d %-8d %-8d %8d "
189 (nth 1 file-attr) ; no. of links 189 (nth 1 file-attr) ; no. of links
190 (nth 2 file-attr) ; uid 190 (if (= (user-uid) (nth 2 file-attr))
191 (nth 3 file-attr) ; gid 191 (user-login-name)
192 (nth 2 file-attr)) ; uid
193 (if (eq system-type 'ms-dos)
194 "root" ; everything is root on MSDOS.
195 (nth 3 file-attr)) ; gid
192 (nth 7 file-attr) ; size in bytes 196 (nth 7 file-attr) ; size in bytes
193 ) 197 )
194 (ls-lisp-format-time file-attr switches) 198 (ls-lisp-format-time file-attr switches)