diff options
| author | Richard M. Stallman | 1995-12-29 05:47:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-12-29 05:47:49 +0000 |
| commit | b6dca218bb63a10b42811bc192aea3e339f2b40e (patch) | |
| tree | 7be05926e67ed69c7bc6427fc7c67e13dd4481c5 | |
| parent | a9bb53da49909da1ddb57836c974705844275a10 (diff) | |
| download | emacs-b6dca218bb63a10b42811bc192aea3e339f2b40e.tar.gz emacs-b6dca218bb63a10b42811bc192aea3e339f2b40e.zip | |
(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.
| -rw-r--r-- | lisp/jka-compr.el | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el index 0de44c5bbed..4ca353358a1 100644 --- a/lisp/jka-compr.el +++ b/lisp/jka-compr.el | |||
| @@ -684,8 +684,18 @@ There should be no more than seven characters after the final `/'") | |||
| 684 | (inhibit-file-name-operation operation)) | 684 | (inhibit-file-name-operation operation)) |
| 685 | (apply operation args))) | 685 | (apply operation args))) |
| 686 | 686 | ||
| 687 | ;;;###autoload | 687 | ;;;###autoload(defun auto-compression-mode (&optional arg) |
| 688 | (defun auto-compression-mode (&optional arg) | 688 | ;;;###autoload "Toggle automatic file compression and uncompression. |
| 689 | ;;;###autoloadWith prefix argument ARG, turn auto compression on if positive, else off. | ||
| 690 | ;;;###autoloadReturns the new status of auto compression (non-nil means on)." | ||
| 691 | ;;;###autoload (if (not (fboundp 'jka-compr-installed-p)) | ||
| 692 | ;;;###autoload (progn | ||
| 693 | ;;;###autoload (require 'jka-compr) | ||
| 694 | ;;;###autoload ;; That turned the mode on, so make it initially off. | ||
| 695 | ;;;###autoload (toggle-auto-compression))) | ||
| 696 | ;;;###autoload (toggle-auto-compression arg)) | ||
| 697 | |||
| 698 | (defun toggle-auto-compression (&optional arg) | ||
| 689 | "Toggle automatic file compression and uncompression. | 699 | "Toggle automatic file compression and uncompression. |
| 690 | With prefix argument ARG, turn auto compression on if positive, else off. | 700 | With prefix argument ARG, turn auto compression on if positive, else off. |
| 691 | Returns the new status of auto compression (non-nil means on)." | 701 | Returns the new status of auto compression (non-nil means on)." |
| @@ -713,7 +723,6 @@ Returns the new status of auto compression (non-nil means on)." | |||
| 713 | (message "Automatic file (de)compression is now OFF."))) | 723 | (message "Automatic file (de)compression is now OFF."))) |
| 714 | 724 | ||
| 715 | flag)) | 725 | flag)) |
| 716 | (defalias 'toggle-auto-compression 'auto-compression-mode) | ||
| 717 | 726 | ||
| 718 | (defun jka-compr-build-file-regexp () | 727 | (defun jka-compr-build-file-regexp () |
| 719 | (concat | 728 | (concat |