aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2005-11-15 00:07:03 +0000
committerLuc Teirlinck2005-11-15 00:07:03 +0000
commit12d944296e9102ad445ec3327220a01ba6eb8c8a (patch)
treef02846516db208d13f2dc3f982bd0991b0c3b6b5
parent70acba5ddab9e025aaf68a06765b459f8532353f (diff)
downloademacs-12d944296e9102ad445ec3327220a01ba6eb8c8a.tar.gz
emacs-12d944296e9102ad445ec3327220a01ba6eb8c8a.zip
(auto-compression-mode): Enable it in a way that works correctly for
Custom and that does not override a user who disables it.
-rw-r--r--lisp/jka-cmpr-hook.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/jka-cmpr-hook.el b/lisp/jka-cmpr-hook.el
index 65f624c110b..d2b374f5603 100644
--- a/lisp/jka-cmpr-hook.el
+++ b/lisp/jka-cmpr-hook.el
@@ -244,7 +244,7 @@ The return value is the entry in `file-name-handler-alist' for jka-compr."
244 "Toggle automatic file compression and uncompression. 244 "Toggle automatic file compression and uncompression.
245With prefix argument ARG, turn auto compression on if positive, else off. 245With prefix argument ARG, turn auto compression on if positive, else off.
246Returns the new status of auto compression (non-nil means on)." 246Returns the new status of auto compression (non-nil means on)."
247 :global t :group 'jka-compr 247 :global t :init-value t :group 'jka-compr
248 (let* ((installed (jka-compr-installed-p)) 248 (let* ((installed (jka-compr-installed-p))
249 (flag auto-compression-mode)) 249 (flag auto-compression-mode))
250 (cond 250 (cond
@@ -276,7 +276,7 @@ Returns the new status of auto compression (non-nil means on)."
276 file-local-copy load)) 276 file-local-copy load))
277 277
278;; Turn on the mode. 278;; Turn on the mode.
279(auto-compression-mode 1) 279(when auto-compression-mode (auto-compression-mode 1))
280 280
281(provide 'jka-cmpr-hook) 281(provide 'jka-cmpr-hook)
282 282