(recentf-keep-non-readable-files-p): Quote args
authorGerd Moellmann <gerd@gnu.org>
Tue, 7 Mar 2000 12:34:58 +0000 (12:34 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 7 Mar 2000 12:34:58 +0000 (12:34 +0000)
to remove-hook and add-hook.

lisp/recentf.el

index 519127d..07895c7 100644 (file)
@@ -143,8 +143,8 @@ displayed in the menu and must return a new list of filenames."
   :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))
+               (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