escape `*' in regexps.
(midnight-find): Reverse order of arguments in the funcall of
TEST.
:group 'midnight)
-(defcustom clean-buffer-list-kill-never-regexps '("^ \*Minibuf-.*\*$")
+(defcustom clean-buffer-list-kill-never-regexps '("^ \\*Minibuf-.*\\*$")
"*List of regexp saying which buffers will never be killed at midnight.
See also `clean-buffer-list-kill-never-buffer-names'.
Killing is done by `clean-buffer-list'.
(defun midnight-find (el ls test &optional key)
"A stopgap solution to the absence of `find' in ELisp."
(dolist (rr ls)
- (when (funcall test el (if key (funcall key rr) rr))
+ (when (funcall test (if key (funcall key rr) rr) el)
(return rr))))
(defun clean-buffer-list-delay (name)