+2002-05-03 OHASHI Akira <bg66@koka-in.org>
+
+ * lisp/initz.el (initz-get-files): Add optional argument `all'.
+ If it is non-nil, return all files.
+ * lisp/initz-vars.el (initz-list-all-modules): New user option.
+ * lisp/initz-list.el (initz-list-node-expand): Use it.
+
2002-05-01 OHASHI Akira <bg66@koka-in.org>
* lisp/initz-vars.el (initz-delete-compile-log-buffer): New user
start-open t rear-nonsticky t
help-echo ,file))
(put-text-property start (point) :file file)))
- (initz-get-files 'startup node))
+ (initz-get-files 'startup node initz-list-all-modules))
(sort-lines nil sort-start (point)))
(set-buffer-modified-p nil)
(setq buffer-read-only t)))
:type 'boolean
:group 'initz)
+(defcustom initz-list-all-modules nil
+ "*If non-nil, initz lists all modules in `initz-list'."
+ :type 'boolean
+ :group 'initz)
+
;; Faces.
(defface initz-list-node-face
'((((class color) (background light)) (:foreground "blue"))
(concat file "c"))
directory)))
-(defun initz-get-files (kind dir)
+(defun initz-get-files (kind dir &optional all)
"Return files of the directory made by KIND and DIR."
(let ((directory (expand-file-name
(initz-get-init-value dir 'dir)
(concat initz-prefix
(initz-get-init-value dir 'prefix))))
(ext (if (eq kind 'startup) "\\.el$" "\\.elc$")))
- (unless (and (not (eq dir 'misc))
- (string= prefix initz-prefix))
- (directory-files
- directory t (concat "^\\(" prefix "\\|"
- prefix initz-separator-string
- initz-module-regexp "\\)" ext)))))
+ ;; List all files.
+ (if all
+ (directory-files
+ directory t (concat "^\\(" initz-prefix "\\|"
+ initz-prefix initz-separator-string
+ initz-module-regexp "\\)" ext))
+ (unless (and (not (eq dir 'misc))
+ (string= prefix initz-prefix))
+ (directory-files
+ directory t (concat "^\\(" prefix "\\|"
+ prefix initz-separator-string
+ initz-module-regexp "\\)" ext))))))
(defun initz-make-directory (sym)
"Make SYM's directory."