1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-12 09:28:24 +00:00
Commit Graph

75 Commits

Author SHA1 Message Date
Kenichi Handa
cb33a0ce4c (tar-extract): For goto-char, use (point-min), not
0.  Give correct argument to set-auto-coding-function.
(tar-expunge): For goto-char, use (point-min), not 0.
(tar-clear-modification-flags): For goto-char, use (point-min), not 1.
(tar-subfile-save-buffer): Likewize.
2000-06-14 12:47:27 +00:00
Dave Love
5ee42746ce (tar-copy): Supply MUSTBENEW arg to write-region. 2000-06-09 14:19:34 +00:00
Stefan Monnier
139f2b7cdc (tar-header-block-recompute-checksum): Remove.
(tar-clip-time-string): Prepend a space.
(tar-grind-file-mode): Construct a string rather than modifying one.
(tar-header-block-summarize): Fix docstring.
Use `format' rather than an error-prone set of copy-loops.
2000-06-05 07:44:59 +00:00
Dave Love
048d06bdf5 Replace tar-dolist, tar-dotimes with dolist, dotimes. 2000-02-03 15:14:15 +00:00
Richard M. Stallman
23bdfc9af6 (tar-mode-map): Bind q to quit-window, not tar-quit.
(tar-quit): Function deleted.
1999-12-30 08:26:31 +00:00
Richard M. Stallman
d710de4114 (tar-header-block-tokenize):
Use `when' instead of `and'.  Fix some clobbered text.
1999-09-08 05:33:47 +00:00
Dave Love
5342b2c767 (tar-header-block-tokenize): Bind linkname. 1999-09-07 11:00:48 +00:00
Richard M. Stallman
84f72c5bbd (tar-extract): Don't assume buffer is visiting a file. 1999-09-06 22:03:38 +00:00
Karl Heuer
248d750a01 (tar-header-block-tokenize): Don't assume that the last byte
of a numeric field is a space or a NUL.  Parse it as
potentially part of the number.  This is used by GNU tar
1.12.64012 to handle larger values.
1999-06-20 19:35:07 +00:00
Kenichi Handa
1b33e23760 (tar-header-block-tokenize): Decode codes of file
and link names if necessary.
(tar-header-block-summarize): Handle the case that file or link
names are multibyte.
(tar-summarize-buffer): At first set the current buffer unibyte,
then if there are multibyte file names, change it to multibyte.
(tar-mode): Get char position from tar-header-offset.
(tar-extract): Avoid multibyte<->unibyte conversion in
insert-buffer-subsring by setting both buffers unibyte
temporarily.
(tar-copy): Set the buffer unibyte while doing a work.  Write
without code conversion.
(tar-expunge): Set the buffer unibyte while doing a work.
(tar-alter-one-field): Likewise.
(tar-clear-modification-flags): Compare byte position with
tar-header-offset.
(tar-subfile-save-buffer): Avoid multibyte<->unibyte conversion in
insert-buffer-subsring by setting both buffers unibyte
temporarily.  Pay attention to multibyteness while updating the
descriptor-line.
(tar-mode-write-file): Write without code conversion.
1998-11-16 01:17:06 +00:00
Richard M. Stallman
b9ca3cdb31 (tar-mode): Locally set file-precious-flag. 1998-10-17 19:22:41 +00:00
Karl Heuer
f6b0805aa1 (tar-mode-revert): no-auto-save arg renamed from no-autosave. 1998-10-06 23:18:33 +00:00
Kenichi Handa
47e1dcfee1 Give set-auto-coding-funciton FILENAME argument. 1998-07-25 02:02:59 +00:00
Kenichi Handa
32dcfa299b (tar-extract): Adjusted for the change of the spec
of set-auto-coding-function.
1998-06-15 01:23:35 +00:00
Richard M. Stallman
678b159e98 (tar-mode): Locally bind local-enable-local-variables,
not enable-local-variables.
1998-06-13 06:01:11 +00:00
Karl Heuer
9e16922146 (tar-extract): Pass HIGHEST=t to detect-coding-region. 1998-06-01 03:06:48 +00:00
Richard M. Stallman
47414bc1e2 (tar-mode): Position point on the name of the first file.
(tar-extract): Detect coding-system of the archive member and
decode it like insert-file-contents does.
(tar-alter-one-field): Reposition point on the file name of the
current tar entry.
(tar-subfile-save-buffer): Encode the file when updating it in the
archive, and use the size of encoded text to update the header
block.  Set last-coding-system-used to coding-system of the file.
Restore point of tar-superior-buffer after updating the descriptor line.
1998-05-22 05:00:25 +00:00
Dave Love
7523843657 (tar-subfile-mode): Call auto-save-mode with -1. 1998-05-11 18:49:42 +00:00
Dave Love
4063eb1c9c (tar-mode-write-file): Protect from null tar-header-offset. 1998-04-29 22:34:42 +00:00
Richard M. Stallman
9516059404 (tar-extract): Use !' instead of :' to construct
buffer-file-name (`:' is invalid in file names on Windows).
1998-04-29 22:15:59 +00:00
Richard M. Stallman
54138c9da6 Comment change. 1998-03-03 02:02:53 +00:00
Karl Heuer
92062a094c Add "q" for quit, and use "C" for copy and "R" for
rename as in dired.
1998-02-25 22:37:35 +00:00
Stephen Eglen
b4dd2e66b0 Customized. 1998-02-01 17:46:32 +00:00
Andreas Schwab
ddcb46713b (tar-mode-map): Fix function name in menu entry. 1997-11-13 11:36:02 +00:00
Richard M. Stallman
3eb37b087e (tar-extract): Use second argument of
view-buffer instead of setting view-exit-action.
1997-06-17 22:04:57 +00:00
Richard M. Stallman
87aed91b30 (tar-mode-write-file): Clear buffer's own modified flag
after clearing the ones listed within it.
1996-08-28 14:27:08 +00:00
Miles Bader
b644513511 (tar-mode-map): Bind up and down like C-p, C-n. 1996-07-07 01:59:04 +00:00
Richard M. Stallman
3742f39f26 (tar-mode-revert): Cope if user cancels the revert. 1996-06-12 21:50:08 +00:00
Richard M. Stallman
766052779b (tar-subfile-mode): Doc fix.
(tar-extract): Call tar-subfile-mode after setting buffer-read-only
and the buffer modified flag.
1996-03-06 07:49:55 +00:00
Karl Heuer
624204f0ca (tar-summarize-buffer): Fix "done" message.
(tar-summarize-buffer):
Insert summary lines in same order as tar-parse-info.
1996-01-24 23:31:12 +00:00
Richard M. Stallman
a728aa9029 (tar-summarize-buffer): Speed-up for large files. 1996-01-15 01:35:45 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Karl Heuer
a7acbbe4d4 Comment fixes. 1996-01-05 22:21:28 +00:00
Richard M. Stallman
d4ec020080 (tar-copy): Inhibit use of jka-compr handler
when both to- and from- files would use it.
1995-07-25 20:27:07 +00:00
Karl Heuer
9f1250c56e (tar-mode-map): Fix capitalization in menu bar. 1995-05-30 22:35:28 +00:00
Karl Heuer
9a0341b21a (tar-mode): Set write-contents-hooks instead of
local-write-file-hooks.
1995-05-18 19:57:15 +00:00
Richard M. Stallman
67501c0181 (tar-mode): Locally bind next-line-add-newlines to nil.
(tar-subfile-mode): Doc fix.
(tar-expunge): Make questions and messages start with upper case letter.
(tar-summarize-buffer): Ditto.
(tar-subfile-save-buffer): Make message like others.
(tar-mode): Locally bind local-write-file-hooks.
(tar-mode-write-file): Renamed from tar-mode-maybe-write-tar-file.
(tar-mode-write-file): Simplify to only work for tar file buffers.
(write-file-hooks): Don't modify this.
1995-04-14 20:46:11 +00:00
Karl Heuer
5ff436fbc5 Update copyright. 1995-04-13 21:34:34 +00:00
Richard M. Stallman
a7e5e8cbc7 (tar-clear-modification-flags): Fix several bugs. 1995-04-08 18:04:43 +00:00
Richard M. Stallman
0760ac9a9d (tar-mode-map): Fix typo for tar-display-other-file. 1995-04-06 02:12:11 +00:00
Karl Heuer
806cba9c00 (tar-parse-octal-long-integer): Return list, not vector. 1995-03-21 02:19:38 +00:00
Richard M. Stallman
6a06ace60b (tar-grind-file-mode): Doc fix. 1995-03-06 04:37:18 +00:00
Richard M. Stallman
3071220966 (tar-header-block-tokenize): Parse 32-bit modtime
current-time compatible a list of 16-bit ints (HIGH LOW).
(tar-parse-octal-integer): Write char-const '0' as
?0 instead of more obscure 48.
(tar-parse-octal-long-integer): New function.
(tar-clip-time-string): New function.
(tar-header-block-summarize, tar-header-block-summarize):
Insert mod-time into listing.
(tar-next-line): Move goal column to new location of filenames.

(tar-mode-show-date): New variable.
(tar-header-block-summarize, tar-next-line): Obey it.
1995-02-26 22:06:49 +00:00
Richard M. Stallman
42269da571 (tar-mode-map): Bind C-m to tar-extract. 1994-12-27 03:49:57 +00:00
Richard M. Stallman
fef5a0becf (tar-extract): Don't use set-visited-file-name. to
avoid interaction problems with ange-ftp.
1994-12-18 18:48:04 +00:00
Karl Heuer
c4e347be42 (tar-extract): Set default-directory to that of the superior buffer, not the
pseudo-dir formed from the archive name.
1994-11-03 20:37:28 +00:00
Karl Heuer
7bfcceabaa (tar-summarize-buffer): Improperly terminated archive now produces only a
warning.
1994-10-27 18:29:49 +00:00
Karl Heuer
1b15043ec2 (tar-summarize-buffer): Check for end of buffer before extracting substring. 1994-10-26 01:40:21 +00:00
Richard M. Stallman
d246db946d (tar-alter-one-field): Finish previous renaming change. 1994-06-24 18:32:36 +00:00
Richard M. Stallman
1bc2809981 (tar-extract): Set file name by hand before calling
set-visited-file-name.

Various renamings; all callers changed.
(tar-header-block-tokenize): Renamed from tokenize-tar-header-block.
(tar-header-block-checksum): Renamed from checksum-tar-header-block.
(tar-header-block-check-checksum):
Renamed from check-tar-header-block-checksum.
(tar-header-block-recompute-checksum):
Renamed from recompute-tar-header-block-checksum.
(tar-header-block-summarize):
Renamed from summarize-tar-header-block.
1994-06-23 17:52:44 +00:00