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
Juanma Barranquero
f1180544bb Trailing whitespace deleted. 2003-02-04 12:29:42 +00:00
Kenichi Handa
8bdf601fe8 (jka-compr-insert-file-contents): Call
docode-coding-inserted-region.
2003-01-24 13:28:24 +00:00
Andreas Schwab
d7c3385451 (jka-compr-insert-file-contents): Fix typo in last change. 2003-01-22 18:45:49 +00:00
Kenichi Handa
f54a716805 (jka-compr-insert-file-contents): Read a process
output without decoding.  Decode the result by
decode-coding-region-as-inserted-from-file.
2003-01-22 02:33:55 +00:00
Richard M. Stallman
68890d7ebc (jka-compr-handler): Add safe-magic property. 2002-09-01 13:26:06 +00:00
Eli Zaretskii
5f320490f4 Fix a typo in a comment. 2002-06-09 17:13:56 +00:00
Richard M. Stallman
b6e8d2388c (jka-compr-write-region): If START = nil, use whole buf. 2002-01-01 07:23:31 +00:00
Eli Zaretskii
152e2693f1 (jka-compr-partial-uncompress): Use null-device instead of a literal
/dev/null.  Reported by Jens Schmidt <schmidt@mathematik.uni-kl.de>.
2001-12-21 12:43:55 +00:00
Richard M. Stallman
83709c9f91 (jka-compr-partial-uncompress): Fix previous change. 2001-11-15 21:17:19 +00:00
Richard M. Stallman
242d2673d9 (jka-compr-partial-uncompress): Support an alternative of not using dd.
(jka-compr-dd-program): Use defcustom to define this.
(jka-compr-load-suffixes): Use defcustom.
(jka-compr-mode-alist-additions): Use defcustom.
2001-11-06 17:14:53 +00:00
Stefan Monnier
aab8a6e351 (jka-compr-load-suffixes): New var.
(jka-compr-install): Add its content to load-suffixes.
(jka-compr-uninstall): Remove its content from load-suffixes.
2001-10-12 16:28:16 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Kenichi Handa
ee753ec8cf (jka-compr-partial-uncompress): Don't use `concat' for numbers. 2000-12-20 11:07:03 +00:00
Dave Love
a3fdb58aaa (jka-compr-compression-info-list): Fix :type. 2000-12-07 12:14:58 +00:00
Stefan Monnier
754005f70d (auto-compression-mode): Drop unneeded positional args. 2000-11-03 22:25:46 +00:00
Miles Bader
7391213dad Doc fix. 2000-10-15 11:21:33 +00:00
Miles Bader
7dbc9c8a2c Don't call `jka-compr-install' when loading (it will be done by the
definition of `auto-compression-mode' if necessary).

Move code to uninstall existing file-name handler before definition of
`auto-compression-mode'.
2000-10-08 23:35:47 +00:00
Miles Bader
6fee86a3c9 (auto-compression-mode): Move to the end of the file, because
`define-minor-mode' actually calls the mode-function if the associated
variable is non-nil, which requires that all needed functions be already
defined.
(with-auto-compression-mode): Add autoload cookie.
2000-10-08 02:58:24 +00:00
Stefan Monnier
defdd32e04 (auto-compression-mode): Use define-minor-mode.
(toggle-auto-compression): Remove.
(jka-compr-build-file-regexp): Remove useless grouping.
2000-09-29 02:38:03 +00:00
Miles Bader
523b128cff (with-auto-compression-mode): New macro. 2000-09-20 04:44:35 +00:00
Gerd Moellmann
0166aed1b5 (jka-compr-compression-info-list): Add `.z'
to extensions handled by gzip.
2000-04-03 13:30:55 +00:00
Dave Love
e645e77b4b (jka-compr-load): Fix up load-history. 2000-01-30 17:52:18 +00:00
Richard M. Stallman
e073a3561b (jka-compr-info-file-magic-bytes): New function.
(jka-compr-compression-info-list): Add new elt to each vector.
(jka-compr-write-region): Don't compress the data if it is already compressed.

(jka-compr-really-do-compress): New variable.
(jka-compr-insert-file-contents): Set jka-compr-really-do-compress if visiting.
(jka-compr-write-region): Set jka-compr-really-do-compress
if visiting.  Test it when deciding to compress.
1999-12-25 23:00:57 +00:00
Stefan Monnier
767d12f23e Use make-temp-file. 1999-10-15 16:03:59 +00:00
Dave Love
e5e5ef2436 Copyright update. 1999-08-16 11:48:41 +00:00
Dave Love
9699776ccb (auto-compression-mode): New variable for customization. 1999-08-16 11:46:07 +00:00
Dave Love
f8d8f6270e (jka-compr-insert-file-contents): Fix previous
change to use jka-compr-byte-compiler-base-file-name.
1999-04-12 08:50:02 +00:00
Richard M. Stallman
c352d95951 (jka-compr-insert-file-contents):
Use auto-coding-alist-lookup to check for files that
should not have eol conversion, in the unibyte case.
1999-04-08 22:26:13 +00:00
Richard M. Stallman
312bdc0dcb (jka-compr-insert-file-contents):
Use raw-text-unix when we want no conversion.
1999-04-06 18:43:26 +00:00
Dave Love
df312987d6 (jka-compr-compression-info-list): Remove "-c" from
bzip2 args.
1998-09-29 10:41:20 +00:00
Richard M. Stallman
7ec4806e71 (jka-compr-insert-file-contents): Replace incorrect
inline code with call to find-operation-coding-system.
1998-07-13 01:10:09 +00:00
Richard M. Stallman
5c6f2f2a47 (jka-compr-insert-file-contents): Don't run
after-insert-file-functions, since caller does that.
1998-06-14 19:01:34 +00:00
Karl Heuer
70c7850e9c (jka-compr-write-region): Ensure
`last-coding-system-used' is updated, so that basic-save-buffer
sees the right value.
1998-06-05 15:54:48 +00:00
Richard M. Stallman
55319655c7 (jka-compr-compression-info-list): Add elts for bzip. 1998-05-23 00:50:04 +00:00
Richard M. Stallman
11757e2f52 (jka-compr-temp-name-template): Use temporary-file-directory. 1998-05-16 17:50:00 +00:00
Richard M. Stallman
7b559d168f (jka-compr-temp-name-template): Use system-tmp-directory 1998-05-16 03:43:44 +00:00
Richard M. Stallman
eb915452f4 (jka-compr-use-shell) [ms-dos, windows-nt]: Do not use a shell.
(jka-compr-temp-name-template) [ms-dos, windows-nt]: Check common
locations for tmp directory.
1998-04-17 21:17:21 +00:00
Richard M. Stallman
6b10a52144 (jka-compr-compression-info-list): Fix previous change:
clear "append" flag for bzip.
1998-02-14 02:40:07 +00:00
Richard M. Stallman
060c3cc98f (jka-compr-compression-info-list): Handle bzip. 1998-02-08 22:45:47 +00:00
Richard M. Stallman
bab0036837 (jka-compr-insert-file-contents):
If enable-multibyte-characters is nil, decode as raw-text.
1997-12-21 02:26:48 +00:00
Karl Heuer
9fdf055b7a (jka-compr-inhibit): New variable.
(jka-compr-handler): Obey jka-compr-inhibit.
1997-10-23 07:00:59 +00:00
Richard M. Stallman
4eec33ae22 (jka-compr-added-to-file-coding-system-alist): New var.
(jka-compr-insert-file-contents): Set coding-system-for-read
according to file name after removing compression suffix.
(jka-compr-install): Add elemets to file-coding-system-alist.
(jka-compr-uninstall): Remove elements from file-coding-system-alist.
1997-07-27 00:06:20 +00:00
Kenichi Handa
baefb0160e Fix previous changes. 1997-07-22 03:45:44 +00:00
Richard M. Stallman
a81635fcb8 (jka-compr-insert-file-contents): Bind coding-system-for-read.
(jka-compr-write-region): Bind coding-system-for-write.
Set buffer-file-type if dos or nt.
(jka-compr-call-process): Bind coding-system-for-read
and coding-system-for-write.
1997-07-20 04:50:25 +00:00
Richard M. Stallman
4228277d98 Comment change. 1997-05-27 17:46:19 +00:00
Richard M. Stallman
362b539a3f (jka-compr-temp-name-template): Fix editing error. 1997-04-13 23:43:42 +00:00
Richard M. Stallman
bbf5eb2805 Add defgroup's; use defcustom for user vars. 1997-04-12 03:18:33 +00:00
Richard M. Stallman
75e9c107ee (jka-compr-error): Use with-current-buffer.
(jka-compr-call-process, jka-compr-file-local-copy)
(jka-compr-write-region): Use with-current-buffer.
1997-01-27 02:40:00 +00:00
Richard M. Stallman
1d2517f2ed (jka-compr-temp-name-template): Initialize using TMPDIR. 1996-12-07 21:22:27 +00:00
Richard M. Stallman
43a3bdccec Comment change. 1996-04-26 19:31:40 +00:00