]> git.eshelyaron.com Git - emacs.git/commitdiff
(jka-compr-inhibit): New variable.
authorKarl Heuer <kwzh@gnu.org>
Thu, 23 Oct 1997 07:00:59 +0000 (07:00 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 23 Oct 1997 07:00:59 +0000 (07:00 +0000)
(jka-compr-handler): Obey jka-compr-inhibit.

lisp/jka-compr.el

index 11aaecc04c8483b1e7f262eb7b6494c6afbad33a..58453869f92872707ebf5c9ac75314757f98b608 100644 (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)))))