1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-17 17:58:46 +00:00

(jka-compr-inhibit): New variable.

(jka-compr-handler): Obey jka-compr-inhibit.
This commit is contained in:
Karl Heuer 1997-10-23 07:00:59 +00:00
parent 1c3430513b
commit 9fdf055b7a

View File

@ -716,10 +716,15 @@ There should be no more than seven characters after the final `/'."
(put 'byte-compiler-base-file-name 'jka-compr
'jka-compr-byte-compiler-base-file-name)
(defvar jka-compr-inhibit nil
"Non-nil means inhibit automatic uncompression temporarily.
Lisp programs can bind this to t to do that.
It is not recommended to set this variable permanently to anything but nil.")
(defun jka-compr-handler (operation &rest args)
(save-match-data
(let ((jka-op (get operation 'jka-compr)))
(if jka-op
(if (and jka-op (not jka-compr-inhibit))
(apply jka-op args)
(jka-compr-run-real-handler operation args)))))