comparison lisp/tar-mode.el @ 45348:eed727396dd0

(tar-octal-time): Fix last change.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 18 May 2002 19:45:05 +0000
parents 56a080c7a714
children dd4d628efd2e
comparison
equal deleted inserted replaced
45347:d80cadecae74 45348:eed727396dd0
1090 1090
1091 1091
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.
1104 This doesn't write anything to disk; you must save the parent tar-file buffer 1104 This doesn't write anything to disk; you must save the parent tar-file buffer
1105 to make your changes permanent." 1105 to make your changes permanent."