aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-08 06:22:05 +0000
committerRichard M. Stallman1995-04-08 06:22:05 +0000
commit919a07bb1d628890cbd729285d9b307bb9fe471f (patch)
tree3229906940df0308c10259b504fdf7fc700ff71f /lisp
parent9d0eba571730f84fe256f364206b3936e77d31d2 (diff)
downloademacs-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.el15
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.
717This adds entries to `file-name-handler-alist' and `auto-mode-alist'." 717This adds entries to `file-name-handler-alist' and `auto-mode-alist'
718and `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.
749This removes the entries in `file-name-handler-alist' and `auto-mode-alist' 750This removes the entries in `file-name-handler-alist' and `auto-mode-alist'
750that were created by `jka-compr-installed'." 751and `inhibit-first-line-modes-suffixes' that were added
752by `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))