diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/ls-lisp.el | 12 |
2 files changed, 16 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9b778115798..d1083f35323 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-04-05 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * ls-lisp.el (ls-lisp-format): Support inodes that are 2- or | ||
| 4 | 3-member cons cells. | ||
| 5 | |||
| 1 | 2008-04-05 Chong Yidong <cyd@stupidchicken.com> | 6 | 2008-04-05 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * cus-face.el (custom-face-attributes): Handle roman slant. | 8 | * cus-face.el (custom-face-attributes): Handle roman slant. |
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el index 2963168a899..854f47a59c3 100644 --- a/lisp/ls-lisp.el +++ b/lisp/ls-lisp.el | |||
| @@ -529,7 +529,17 @@ SWITCHES, TIME-INDEX and NOW give the full switch list and time data." | |||
| 529 | ;; for symbolic link, or nil. | 529 | ;; for symbolic link, or nil. |
| 530 | (drwxrwxrwx (nth 8 file-attr))) ; attribute string ("drwxrwxrwx") | 530 | (drwxrwxrwx (nth 8 file-attr))) ; attribute string ("drwxrwxrwx") |
| 531 | (concat (if (memq ?i switches) ; inode number | 531 | (concat (if (memq ?i switches) ; inode number |
| 532 | (format " %6d" (nth 10 file-attr))) | 532 | (let ((inode (nth 10 file-attr))) |
| 533 | (if (consp inode) | ||
| 534 | (if (consp (cdr inode)) | ||
| 535 | (format " %17.0f " | ||
| 536 | (+ (* (car inode) 1099511627776.0) | ||
| 537 | (* (cadr inode) 65536.0) | ||
| 538 | (cddr inode))) | ||
| 539 | (format " %17.0f " | ||
| 540 | (+ (* (car inode) 65536.0) | ||
| 541 | (cdr inode)))) | ||
| 542 | (format " %17d " inode)))) | ||
| 533 | ;; nil is treated like "" in concat | 543 | ;; nil is treated like "" in concat |
| 534 | (if (memq ?s switches) ; size in K | 544 | (if (memq ?s switches) ; size in K |
| 535 | (format " %4.0f" (fceiling (/ file-size 1024.0)))) | 545 | (format " %4.0f" (fceiling (/ file-size 1024.0)))) |