# HG changeset patch # User Richard M. Stallman # Date 903438138 0 # Node ID 41745889db17f3e30ed10101cd32b2465a6576f7 # Parent 4d7992b69c29661abc5a5ed29d9dd06781af9bf5 (midnight-hook): initialize to a list. diff -r 4d7992b69c29 -r 41745889db17 lisp/midnight.el --- a/lisp/midnight.el Tue Aug 18 09:32:31 1998 +0000 +++ b/lisp/midnight.el Tue Aug 18 11:02:18 1998 +0000 @@ -173,8 +173,8 @@ `clean-buffer-list-kill-never-regexps'. While processing buffers, this procedure displays messages containing the current date/time, buffer name, how many seconds ago it was -displayed (can be NIL if the buffer was never displayed) and its -lifetime, i.e., its `age' when it will be purged." +displayed (can be nil if the buffer was never displayed) and its +lifetime, i.e., its \"age\" when it will be purged." (interactive) (let ((tm (midnight-float-time)) bts (ts (format-time-string "%Y-%m-%d %T")) bn (bufs (buffer-list)) buf delay cbld) @@ -196,7 +196,7 @@ (defvar midnight-period (* 24 60 60) "The number of seconds in a day--the delta for `midnight-timer'.") -(defcustom midnight-hook 'clean-buffer-list +(defcustom midnight-hook '(clean-buffer-list) "The hook run `midnight-delay' seconds after midnight every day. The default value is `clean-buffer-list'." :type 'hook