1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-20 18:17:20 +00:00
Commit Graph

64 Commits

Author SHA1 Message Date
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
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Richard M. Stallman
e5220563c8 (auto-compression-mode): Add `interactive'.
Put \-newline in doc string.
(toggle-auto-compression): New arg MESSAGE.  Don't use interactive-p.
1995-12-31 19:19:25 +00:00
Richard M. Stallman
b6dca218bb (auto-compression-mode): This is now a stub function
that calls toggle-auto-compression, and is put bodily into loaddefs.el.
(toggle-auto-compression): Renamed from auto-compression-mode.
Not autloaded.
1995-12-29 05:47:49 +00:00
Richard M. Stallman
f4454a1467 (auto-compression-mode): Make arg optional. 1995-11-11 20:29:31 +00:00
Richard M. Stallman
be01074898 Comment change. 1995-10-30 17:35:01 +00:00
Richard M. Stallman
61793fbf5d (auto-compression-mode): Add autoload cookie.
Renamed from toggle-auto-compression.
(toggle-auto-compression): Define as alias.
1995-09-24 03:59:02 +00:00
Richard M. Stallman
3068998dc3 (jka-compr-byte-compiler-base-file-name): New function.
Use it to handle byte-compiler-base-file-name operation.
1995-08-22 16:46:45 +00:00
Richard M. Stallman
9b37d8a910 (jka-compr-load): Bind load-force-doc-strings. 1995-08-02 23:56:20 +00:00
Richard M. Stallman
30c78e11b9 (jka-compr-write-region): Handle the append
argument correctly when the can-append flag is false.
(jka-compr-write-region): Make temp-buffer name unique to this fn.
(jka-compr-file-local-copy): Ditto.
1995-05-01 05:23:49 +00:00
Richard M. Stallman
ae849784b4 (jka-compr-insert-file-contents): When visiting,
bind buffer-file-name to nil temporarily.
1995-04-29 19:25:19 +00:00
Richard M. Stallman
919a07bb1d (jka-compr-install): Doc fix.
(jka-compr-uninstall): Delete entries that jka-compr-install
added to inhibit-first-line-modes-suffixes.
1995-04-08 06:22:05 +00:00