2000-03-07 Dave Love <fx@gnu.org>
+ * recentf.el (recentf-keep-non-readable-files-p): Add :set,
+ :require to defcustom.
+
* emacs-lisp/cl.el: Remove expt, delete, rassoc from autoloads
lists.
"*If nil (default), non-readable files are not kept in `recentf-list'."
:group 'recentf
:type 'boolean
- :set '(lambda (sym val)
- (if val
- (remove-hook 'kill-buffer-hook 'recentf-remove-file-hook)
- (add-hook 'kill-buffer-hook 'recentf-remove-file-hook))
- (custom-set-default sym val)))
+
+(defcustom recentf-keep-non-readable-files-p nil
+ "*If nil (default), non-readable files are not kept in `recentf-list'."
+ :group 'recentf
+ :type 'boolean
+ :require 'recentf
+ :initialize 'custom-initialize-default
+ :set (lambda (sym val)
+ (if val
+ (remove-hook 'kill-buffer-hook 'recentf-remove-file-hook)
+ (add-hook 'kill-buffer-hook 'recentf-remove-file-hook))
+ (custom-set-default sym val))))
(defcustom recentf-mode nil
"Toggle recentf mode.