diff options
| author | Eric S. Raymond | 1992-07-27 06:59:29 +0000 |
|---|---|---|
| committer | Eric S. Raymond | 1992-07-27 06:59:29 +0000 |
| commit | 3d7fc2fb35e1d3587b84c0a3e0e62174039da9c2 (patch) | |
| tree | 4a9373f5105bc3afe17e59c88714f4230c08c211 | |
| parent | 0fc37e7d20d33e9bcf16858586fe29410e2038d1 (diff) | |
| download | emacs-3d7fc2fb35e1d3587b84c0a3e0e62174039da9c2.tar.gz emacs-3d7fc2fb35e1d3587b84c0a3e0e62174039da9c2.zip | |
entered into RCS
| -rw-r--r-- | lisp/abbrev.el | 2 | ||||
| -rw-r--r-- | lisp/tar-mode.el | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/abbrev.el b/lisp/abbrev.el index 13693883ecf..9924b5c6c18 100644 --- a/lisp/abbrev.el +++ b/lisp/abbrev.el | |||
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Maintainer: FSF | ||
| 6 | |||
| 7 | ;; This file is part of GNU Emacs. | 5 | ;; This file is part of GNU Emacs. |
| 8 | 6 | ||
| 9 | ;; GNU Emacs is free software; you can redistribute it and/or modify | 7 | ;; GNU Emacs is free software; you can redistribute it and/or modify |
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index 534204e6124..e7ad08c4404 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el | |||
| @@ -916,6 +916,15 @@ for this to be permanent." | |||
| 916 | (narrow-to-region 1 tar-header-offset)))) | 916 | (narrow-to-region 1 tar-header-offset)))) |
| 917 | 917 | ||
| 918 | 918 | ||
| 919 | (defun tar-octal-time (timeval) | ||
| 920 | ;; Format a timestamp as 11 octal digits. Ghod, I hope this works... | ||
| 921 | (let ((hibits (car timeval)) (lobits (car (cdr timeval)))) | ||
| 922 | (insert (format "%05o%01o%05o" | ||
| 923 | (lsh hibits -2) | ||
| 924 | (logior (lsh (logand 3 hibits) 1) (> (logand lobits 32768) 0)) | ||
| 925 | (logand 32767 lobits) | ||
| 926 | )))) | ||
| 927 | |||
| 919 | (defun tar-subfile-save-buffer () | 928 | (defun tar-subfile-save-buffer () |
| 920 | "In tar subfile mode, write this buffer back into its parent tar-file buffer. | 929 | "In tar subfile mode, write this buffer back into its parent tar-file buffer. |
| 921 | This doesn't write anything to disk - you must save the parent tar-file buffer | 930 | This doesn't write anything to disk - you must save the parent tar-file buffer |
| @@ -974,7 +983,7 @@ to make your changes permanent." | |||
| 974 | nil | 983 | nil |
| 975 | (goto-char (+ header-start tar-time-offset)) | 984 | (goto-char (+ header-start tar-time-offset)) |
| 976 | (delete-region (point) (+ (point) 12)) | 985 | (delete-region (point) (+ (point) 12)) |
| 977 | (insert (format "%11o" (current-time))) | 986 | (insert (tar-octal-time (current-time))) |
| 978 | (insert ? )) | 987 | (insert ? )) |
| 979 | ;; | 988 | ;; |
| 980 | ;; compute a new checksum and insert it. | 989 | ;; compute a new checksum and insert it. |