Mercurial > emacs
changeset 28042:0e8cc641145e
(recentf-keep-non-readable-files-p): Add :set,
:require to defcustom.
author | Dave Love <fx@gnu.org> |
---|---|
date | Tue, 07 Mar 2000 20:27:29 +0000 |
parents | b4b10eeb9695 |
children | 6070092c3b29 |
files | lisp/recentf.el |
diffstat | 1 files changed, 12 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/recentf.el Tue Mar 07 20:04:42 2000 +0000 +++ b/lisp/recentf.el Tue Mar 07 20:27:29 2000 +0000 @@ -141,11 +141,18 @@ "*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.