diff options
| author | Richard M. Stallman | 1995-08-22 16:46:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-08-22 16:46:45 +0000 |
| commit | 3068998dc3983c6eb64ddfcfbbf1fc71388865ee (patch) | |
| tree | 02102cdcdba2ad3edbfd8a0953739a74d68ce21c | |
| parent | 75d13c6481ab5197c98b6e1d1c9e50e89be3f211 (diff) | |
| download | emacs-3068998dc3983c6eb64ddfcfbbf1fc71388865ee.tar.gz emacs-3068998dc3983c6eb64ddfcfbbf1fc71388865ee.zip | |
(jka-compr-byte-compiler-base-file-name): New function.
Use it to handle byte-compiler-base-file-name operation.
| -rw-r--r-- | lisp/jka-compr.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el index d8fd49e8da5..2b1f435fe6c 100644 --- a/lisp/jka-compr.el +++ b/lisp/jka-compr.el | |||
| @@ -633,11 +633,20 @@ There should be no more than seven characters after the final `/'") | |||
| 633 | (jka-compr-delete-temp-file local-copy)) | 633 | (jka-compr-delete-temp-file local-copy)) |
| 634 | 634 | ||
| 635 | t)) | 635 | t)) |
| 636 | |||
| 637 | (defun jka-compr-byte-compiler-base-file-name (file) | ||
| 638 | (let ((info (jka-compr-get-compression-info file))) | ||
| 639 | (if (and info (jka-compr-info-strip-extension info)) | ||
| 640 | (save-match-data | ||
| 641 | (substring file 0 (string-match (jka-compr-info-regexp info) file))) | ||
| 642 | file))) | ||
| 636 | 643 | ||
| 637 | (put 'write-region 'jka-compr 'jka-compr-write-region) | 644 | (put 'write-region 'jka-compr 'jka-compr-write-region) |
| 638 | (put 'insert-file-contents 'jka-compr 'jka-compr-insert-file-contents) | 645 | (put 'insert-file-contents 'jka-compr 'jka-compr-insert-file-contents) |
| 639 | (put 'file-local-copy 'jka-compr 'jka-compr-file-local-copy) | 646 | (put 'file-local-copy 'jka-compr 'jka-compr-file-local-copy) |
| 640 | (put 'load 'jka-compr 'jka-compr-load) | 647 | (put 'load 'jka-compr 'jka-compr-load) |
| 648 | (put 'byte-compiler-base-file-name 'jka-compr | ||
| 649 | 'jka-compr-byte-compiler-base-file-name) | ||
| 641 | 650 | ||
| 642 | (defun jka-compr-handler (operation &rest args) | 651 | (defun jka-compr-handler (operation &rest args) |
| 643 | (save-match-data | 652 | (save-match-data |