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

106 Commits

Author SHA1 Message Date
Kenichi Handa
b87f5fcce9 (tar-extract): Call find-operation-coding-system
with (FILENAME . BUFFER).
2006-05-26 04:47:25 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Stefan Monnier
8560523d63 Remove spurious or unnecessary leading stars in docstrings.
(tar-header-block-tokenize): Also obey default-file-name-coding-system.
(tar-parse-octal-integer-safe): Use mapc.
(tar-header-block-summarize): Remove unused var `ck'.
(tar-summarize-buffer): Don't clear the modified-p bit if it wasn't
cleared before.  Obey default-enable-multibyte-characters.
Use mapconcat.  Simplify setting of tar-header-offset.
(tar-mode-map): Move initialization inside delcaration.
(tar-flag-deleted): Use `abs'.
(tar-expunge-internal): Remove unused var `line'.
(tar-expunge-internal): Don't hardcode point-min==1.
(tar-expunge): Widen while doing set-buffer-multibyte.
(tar-rename-entry): Use file-name-coding-system.
(tar-alter-one-field): Don't hardcode point-min==1.
(tar-subfile-save-buffer): string-as-unibyte works on unibyte strings.
(tar-pad-to-blocksize): Don't hardcode point-min==1.  Clarify the code.
2005-11-10 18:00:37 +00:00
Kenichi Handa
39925f561f (tar-extract): Be sure to call
find-operation-coding-system if set-auto-coding doesn't find a
coding system.
2005-10-22 01:24:38 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Juanma Barranquero
f38cec78b6 (tar-subfile-save-buffer): Use insert-buffer-substring', not insert-buffer'. 2005-07-18 10:46:17 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Richard M. Stallman
03b0079599 (tar-mode): Turn off undo unconditionally. 2005-03-17 23:58:09 +00:00
Richard M. Stallman
5b0102e26a (tar-extract): Bind buffer-undo-list to t. 2005-01-15 18:10:12 +00:00
Richard M. Stallman
bea824fdf3 (tar-mode): Use write-contents-functions, not write-contents-hooks. 2004-10-27 17:40:19 +00:00
Eli Zaretskii
d0e2accefa (tar-summarize-buffer): Use progress reporter. 2004-10-08 17:31:51 +00:00
Kenichi Handa
f73145c173 (tar-extract): Fix for the case that a file doesn't have end-of-line. 2004-02-09 05:48:42 +00:00
Andreas Schwab
d5c0bc40b8 (tar-parse-octal-integer-safe): Add missing format
string argument.
2004-02-08 22:30:54 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Richard M. Stallman
6ee30a2aa5 (tar-header-block-summarize): Use l for symlink, h for hard link. 2003-02-15 19:20:47 +00:00
Juanma Barranquero
f1180544bb Trailing whitespace deleted. 2003-02-04 12:29:42 +00:00
Stefan Monnier
643415c46b (tar-untar-buffer): Handle dir-entries.
(tar-summarize-buffer, tar-mode, tar-extract, tar-copy, tar-expunge)
(tar-alter-one-field, tar-subfile-save-buffer, tar-mode-write-file):
Don't hardcode 1 == point-min.
2002-09-27 20:55:33 +00:00
Richard M. Stallman
76bf666689 (tar-subfile-mode): Use add-hook and remove-hook, and use
write-file-functions instead of local-write-file-hooks.
(tar-untar-buffer): Don't try to extract directories.
2002-08-17 05:00:30 +00:00
Eli Zaretskii
516f7fca86 (tar-octal-time): Fix last change. 2002-05-18 19:45:37 +00:00
Eli Zaretskii
534405a194 (tar-octal-time): Fix the last argument of logior. 2002-05-17 11:37:13 +00:00
Richard M. Stallman
f95807815b (tar-header-block-summarize, tar-get-descriptor):
Support "next has longname" link type.
2002-03-28 18:15:47 +00:00
Richard M. Stallman
27129192f5 (tar-untar-buffer): New function. 2002-03-08 09:54:42 +00:00
Pavel Janík
210f943e01 (tar-next-line, tar-previous-line): Add doc string,
call the argument "arg" to match plain next-line and
previous-line.  From Kevin Ryde <user42@zip.com.au>.
2002-02-20 09:04:25 +00:00
Stefan Monnier
a91c76d6d9 (tar-mode): Use define-derived-mode. 2001-11-17 00:04:29 +00:00
Gerd Moellmann
e63f0ff0f6 (tar-mode-write-file): Don't signal an error by
calling byte-to-position with a nil tar-header-offset.
2001-09-27 08:11:36 +00:00
Gerd Moellmann
e8421604cd (tar-extract): Avoid generating a new buffer
for each file visited.  From Markus Rost <rost@math.ohio-state.edu>.
2001-08-07 13:36:14 +00:00
Eli Zaretskii
a28eaf2c9b (tar-header-block-summarize): Add help-echo to mouse-highlighted text. 2001-06-17 11:23:58 +00:00
Eli Zaretskii
d5b49f470f Fix the copyright notice. 2001-06-15 15:32:38 +00:00
Eli Zaretskii
6da7ea569d (tar-extract): Call generate-new-buffer-name to
create a buffer for extracted file, in case there's more than one
file by that name in an archive, possibly in different
directories.  From Kevin Rodgers <kevinr@ihs.com>.
2001-06-15 09:42:36 +00:00
Eli Zaretskii
c533a7e29a (tar-extract): Pay attention to the value of
coding-system-for-read, if it is non-nil.
2001-05-09 15:37:30 +00:00
Andreas Schwab
38c6e0c73e (tar-extract): Base the name of the subfile buffer
on the name of the tar buffer.  Verify that the existing buffer is
visiting the same subfile.
2000-12-12 17:56:49 +00:00
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