diff lisp/packages/jka-compr.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents e04119814345
children 364816949b59
line wrap: on
line diff
--- a/lisp/packages/jka-compr.el	Mon Aug 13 09:00:04 2007 +0200
+++ b/lisp/packages/jka-compr.el	Mon Aug 13 09:02:59 2007 +0200
@@ -828,7 +828,16 @@
 (defun jka-compr-installed-p ()
   "Return non-nil if jka-compr is installed.
 The return value is the entry in `file-name-handler-alist' for jka-compr."
-  (rassq 'jka-compr-handler file-name-handler-alist))
+
+  (let ((fnha file-name-handler-alist)
+	(installed nil))
+
+    (while (and fnha (not installed))
+     (and (eq (cdr (car fnha)) 'jka-compr-handler)
+	   (setq installed (car fnha)))
+      (setq fnha (cdr fnha)))
+
+    installed))
 
 
 ;;; Add the file I/O hook if it does not already exist.