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

95 Commits

Author SHA1 Message Date
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
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