diff options
| author | Richard M. Stallman | 1995-04-08 06:22:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-04-08 06:22:05 +0000 |
| commit | 919a07bb1d628890cbd729285d9b307bb9fe471f (patch) | |
| tree | 3229906940df0308c10259b504fdf7fc700ff71f /lisp | |
| parent | 9d0eba571730f84fe256f364206b3936e77d31d2 (diff) | |
| download | emacs-919a07bb1d628890cbd729285d9b307bb9fe471f.tar.gz emacs-919a07bb1d628890cbd729285d9b307bb9fe471f.zip | |
(jka-compr-install): Doc fix.
(jka-compr-uninstall): Delete entries that jka-compr-install
added to inhibit-first-line-modes-suffixes.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/jka-compr.el | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el index c6a3b97879b..5c139c865dd 100644 --- a/lisp/jka-compr.el +++ b/lisp/jka-compr.el | |||
| @@ -714,7 +714,8 @@ Returns the new status of auto compression (non-nil means on)." | |||
| 714 | 714 | ||
| 715 | (defun jka-compr-install () | 715 | (defun jka-compr-install () |
| 716 | "Install jka-compr. | 716 | "Install jka-compr. |
| 717 | This adds entries to `file-name-handler-alist' and `auto-mode-alist'." | 717 | This adds entries to `file-name-handler-alist' and `auto-mode-alist' |
| 718 | and `inhibit-first-line-modes-suffixes'." | ||
| 718 | 719 | ||
| 719 | (setq jka-compr-file-name-handler-entry | 720 | (setq jka-compr-file-name-handler-entry |
| 720 | (cons (jka-compr-build-file-regexp) 'jka-compr-handler)) | 721 | (cons (jka-compr-build-file-regexp) 'jka-compr-handler)) |
| @@ -747,7 +748,17 @@ This adds entries to `file-name-handler-alist' and `auto-mode-alist'." | |||
| 747 | (defun jka-compr-uninstall () | 748 | (defun jka-compr-uninstall () |
| 748 | "Uninstall jka-compr. | 749 | "Uninstall jka-compr. |
| 749 | This removes the entries in `file-name-handler-alist' and `auto-mode-alist' | 750 | This removes the entries in `file-name-handler-alist' and `auto-mode-alist' |
| 750 | that were created by `jka-compr-installed'." | 751 | and `inhibit-first-line-modes-suffixes' that were added |
| 752 | by `jka-compr-installed'." | ||
| 753 | ;; Delete from inhibit-first-line-modes-suffixes | ||
| 754 | ;; what jka-compr-install added. | ||
| 755 | (mapcar | ||
| 756 | (function (lambda (x) | ||
| 757 | (and (jka-compr-info-strip-extension x) | ||
| 758 | (setq inhibit-first-line-modes-suffixes | ||
| 759 | (delete (jka-compr-info-regexp x) | ||
| 760 | inhibit-first-line-modes-suffixes))))) | ||
| 761 | jka-compr-compression-info-list) | ||
| 751 | 762 | ||
| 752 | (let* ((fnha (cons nil file-name-handler-alist)) | 763 | (let* ((fnha (cons nil file-name-handler-alist)) |
| 753 | (last fnha)) | 764 | (last fnha)) |