diff options
| author | Eli Zaretskii | 2002-05-18 19:45:37 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-05-18 19:45:37 +0000 |
| commit | 516f7fca862c1210c3a4733811e9bf126913bb36 (patch) | |
| tree | 4eedf13a5cf944669416757d4d5733ab99ceb385 | |
| parent | 515ced278ca10e43b2eca4481a3608112b514420 (diff) | |
| download | emacs-516f7fca862c1210c3a4733811e9bf126913bb36.tar.gz emacs-516f7fca862c1210c3a4733811e9bf126913bb36.zip | |
(tar-octal-time): Fix last change.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/tar-mode.el | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4550a580f51..5c8ed7f7413 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2002-05-18 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * tar-mode.el (tar-octal-time): Fix last change. | ||
| 4 | |||
| 1 | 2002-05-18 Markus Rost <rost@math.ohio-state.edu> | 5 | 2002-05-18 Markus Rost <rost@math.ohio-state.edu> |
| 2 | 6 | ||
| 3 | * mail/emacsbug.el (report-emacs-bug-text-prompt): New variable. | 7 | * mail/emacsbug.el (report-emacs-bug-text-prompt): New variable. |
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index 4051398e5af..400dbdad134 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el | |||
| @@ -1092,12 +1092,12 @@ for this to be permanent." | |||
| 1092 | (defun tar-octal-time (timeval) | 1092 | (defun tar-octal-time (timeval) |
| 1093 | ;; Format a timestamp as 11 octal digits. Ghod, I hope this works... | 1093 | ;; Format a timestamp as 11 octal digits. Ghod, I hope this works... |
| 1094 | (let ((hibits (car timeval)) (lobits (car (cdr timeval)))) | 1094 | (let ((hibits (car timeval)) (lobits (car (cdr timeval)))) |
| 1095 | (insert (format "%05o%01o%05o" | 1095 | (format "%05o%01o%05o" |
| 1096 | (lsh hibits -2) | 1096 | (lsh hibits -2) |
| 1097 | (logior (lsh (logand 3 hibits) 1) | 1097 | (logior (lsh (logand 3 hibits) 1) |
| 1098 | (if (> (logand lobits 32768) 0) 1 0)) | 1098 | (if (> (logand lobits 32768) 0) 1 0)) |
| 1099 | (logand 32767 lobits) | 1099 | (logand 32767 lobits) |
| 1100 | )))) | 1100 | ))) |
| 1101 | 1101 | ||
| 1102 | (defun tar-subfile-save-buffer () | 1102 | (defun tar-subfile-save-buffer () |
| 1103 | "In tar subfile mode, save this buffer into its parent tar-file buffer. | 1103 | "In tar subfile mode, save this buffer into its parent tar-file buffer. |