Changeset 3988 for vendor/emacs-CVS_HEAD/lisp/find-lisp.el
- Timestamp:
- 2005年11月26日 08時33分26秒 (3 years ago)
- Files:
-
- vendor/emacs-CVS_HEAD/lisp/find-lisp.el (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
vendor/emacs-CVS_HEAD/lisp/find-lisp.el
r3861 r3988 4 4 ;; Created: Fri Mar 26 1999 5 5 ;; Keywords: unix 6 ;; Time-stamp: <200 1-07-16 12:42:35 pavel>6 ;; Time-stamp: <2005-11-11 20:37:50 teirllm> 7 7 8 8 ;; Copyright (C) 1999, 2000, 2002, 2003, 2004, … … 46 46 47 47 ;;; Code: 48 49 (require 'dired) 48 50 49 51 (defvar dired-buffers) … … 199 201 ;; Expand DIR ("" means default-directory), and make sure it has a 200 202 ;; trailing slash. 201 (setq dir (abbreviate-file-name 202 (file-name-as-directory (expand-file-name dir)))) 203 (setq dir (file-name-as-directory (expand-file-name dir))) 203 204 ;; Check that it's really a directory. 204 205 (or (file-directory-p dir) … … 293 294 (set-buffer buffer) 294 295 (insert find-lisp-line-indent 295 (find-lisp-format file (file-attributes file ) (list "")296 (find-lisp-format file (file-attributes file 'string) (list "") 296 297 (current-time)))) 297 298 … … 309 310 (format "%4d " (1+ (/ (nth 7 file-attr) 1024)))) 310 311 (nth 8 file-attr) ; permission bits 311 ;; numeric uid/gid are more confusing than helpful312 ;; Emacs should be able to make strings of them.313 ;; user-login-name and user-full-name could take an314 ;; optional arg.315 312 (format " %3d %-8s %-8s %8d " 316 313 (nth 1 file-attr) ; no. of links 317 (if ( = (user-uid)(nth 2 file-attr))318 ( user-login-name)319 ( int-to-string (nth 2 file-attr))); uid314 (if (numberp (nth 2 file-attr)) 315 (int-to-string (nth 2 file-attr)) 316 (nth 2 file-attr)) ; uid 320 317 (if (eq system-type 'ms-dos) 321 318 "root" ; everything is root on MSDOS. 322 (int-to-string (nth 3 file-attr))) ; gid 319 (if (numberp (nth 3 file-attr)) 320 (int-to-string (nth 3 file-attr)) 321 (nth 3 file-attr))) ; gid 323 322 (nth 7 file-attr) ; size in bytes 324 323 )
