diff lisp/prim/packages.el @ 183:e121b013d1f0 r20-3b18

Import from CVS: tag r20-3b18
author cvs
date Mon, 13 Aug 2007 09:54:23 +0200
parents 9ad43877534d
children 3d6bfa290dbd
line wrap: on
line diff
--- a/lisp/prim/packages.el	Mon Aug 13 09:53:23 2007 +0200
+++ b/lisp/prim/packages.el	Mon Aug 13 09:54:23 2007 +0200
@@ -112,7 +112,8 @@
               ;; If autocompression mode is on,
               ;; consider all combinations of library suffixes
               ;; and compression suffixes.
-              (if (rassq 'jka-compr-handler file-name-handler-alist)
+              (if (or (rassq 'jka-compr-handler file-name-handler-alist)
+                      (member 'crypt-find-file-hook find-file-hooks))
                   (apply 'nconc
                          (mapcar (lambda (compelt)
                                    (mapcar (lambda (baselt)
@@ -132,6 +133,19 @@
       (concat str ".elc")
     str))
 
+(defun list-autoloads-path ()
+  "List autoloads from precomputed load-path."
+  (let ((path load-path)
+	autoloads)
+    (while path
+      (if (file-exists-p (concat (car path)
+				 "/" autoload-file-name))
+	  (setq autoloads (cons (concat (car path)
+					"/" autoload-file-name)
+				autoloads)))
+      (setq path (cdr path)))
+    autoloads))
+
 (defun list-autoloads ()
   "List autoload files in (what will be) the normal lisp search path.
 This function is used during build to find where the global symbol files so
@@ -169,7 +183,7 @@
   ;; Lisp files
   (if (file-directory-p (concat package "/lisp"))
       (progn
-	(setq load-path (cons (concat package "/lisp/") load-path))
+	(setq load-path (cons (concat package "/lisp") load-path))
 	(let ((dirs (directory-files (concat package "/lisp/")
 				     t "^[^-.]" nil 'dirs-only))
 	      dir)