diff options
| author | Karl Heuer | 1997-10-23 07:00:59 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-23 07:00:59 +0000 |
| commit | 9fdf055b7adecd2d9bc53f6e123e6026352b8b05 (patch) | |
| tree | 15eb3a7af2550ba28bedd6aaaa198bfe2b7f3e47 | |
| parent | 1c3430513b8f7c5dc00bd782fadeaa8c2e6cdb89 (diff) | |
| download | emacs-9fdf055b7adecd2d9bc53f6e123e6026352b8b05.tar.gz emacs-9fdf055b7adecd2d9bc53f6e123e6026352b8b05.zip | |
(jka-compr-inhibit): New variable.
(jka-compr-handler): Obey jka-compr-inhibit.
| -rw-r--r-- | lisp/jka-compr.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el index 11aaecc04c8..58453869f92 100644 --- a/lisp/jka-compr.el +++ b/lisp/jka-compr.el | |||
| @@ -716,10 +716,15 @@ There should be no more than seven characters after the final `/'." | |||
| 716 | (put 'byte-compiler-base-file-name 'jka-compr | 716 | (put 'byte-compiler-base-file-name 'jka-compr |
| 717 | 'jka-compr-byte-compiler-base-file-name) | 717 | 'jka-compr-byte-compiler-base-file-name) |
| 718 | 718 | ||
| 719 | (defvar jka-compr-inhibit nil | ||
| 720 | "Non-nil means inhibit automatic uncompression temporarily. | ||
| 721 | Lisp programs can bind this to t to do that. | ||
| 722 | It is not recommended to set this variable permanently to anything but nil.") | ||
| 723 | |||
| 719 | (defun jka-compr-handler (operation &rest args) | 724 | (defun jka-compr-handler (operation &rest args) |
| 720 | (save-match-data | 725 | (save-match-data |
| 721 | (let ((jka-op (get operation 'jka-compr))) | 726 | (let ((jka-op (get operation 'jka-compr))) |
| 722 | (if jka-op | 727 | (if (and jka-op (not jka-compr-inhibit)) |
| 723 | (apply jka-op args) | 728 | (apply jka-op args) |
| 724 | (jka-compr-run-real-handler operation args))))) | 729 | (jka-compr-run-real-handler operation args))))) |
| 725 | 730 | ||