Show
Ignore:
Timestamp:
2005年11月26日 08時33分26秒 (3 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • vendor/emacs-CVS_HEAD/lisp/find-lisp.el

    r3861 r3988  
    44;; Created: Fri Mar 26 1999 
    55;; Keywords: unix 
    6 ;; Time-stamp: <2001-07-16 12:42:35 pavel
     6;; Time-stamp: <2005-11-11 20:37:50 teirllm
    77 
    88;; Copyright (C) 1999, 2000, 2002, 2003, 2004, 
     
    4646 
    4747;;; Code: 
     48 
     49(require 'dired) 
    4850 
    4951(defvar dired-buffers) 
     
    199201    ;; Expand DIR ("" means default-directory), and make sure it has a 
    200202    ;; 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))) 
    203204    ;; Check that it's really a directory. 
    204205    (or (file-directory-p dir) 
     
    293294  (set-buffer buffer) 
    294295  (insert find-lisp-line-indent 
    295           (find-lisp-format file (file-attributes file) (list "") 
     296          (find-lisp-format file (file-attributes file 'string) (list "") 
    296297                          (current-time)))) 
    297298 
     
    309310                (format "%4d " (1+ (/ (nth 7 file-attr) 1024)))) 
    310311            (nth 8 file-attr)           ; permission bits 
    311             ;; numeric uid/gid are more confusing than helpful 
    312             ;; Emacs should be able to make strings of them. 
    313             ;; user-login-name and user-full-name could take an 
    314             ;; optional arg. 
    315312            (format " %3d %-8s %-8s %8d " 
    316313                    (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)))       ; uid 
     314                    (if (numberp (nth 2 file-attr)) 
     315                        (int-to-string (nth 2 file-attr)
     316                      (nth 2 file-attr)) ; uid 
    320317                    (if (eq system-type 'ms-dos) 
    321318                        "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 
    323322                    (nth 7 file-attr)   ; size in bytes 
    324323                    )