;ELC   
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.



(byte-code "\300\301!\210\302\303\304\305\306\307\310\311&\207" [require cl-lib custom-declare-group midnight nil "Run something every day at midnight." :group calendar :version "20.3"] 8)
#@166 Timer running the `midnight-hook' `midnight-delay' seconds after midnight.
Use `cancel-timer' to stop it and `midnight-delay-set' to change
the time when it is run.
(defvar midnight-timer nil (#$ . 275))
(byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313&	\207" [custom-declare-variable midnight-mode funcall function #[0 "\300\207" [nil] 1 ""] "Non-nil if Midnight mode is enabled.\nSee the `midnight-mode' command\nfor a description of this minor mode.\nSetting this variable directly does not take effect;\neither customize it (see the info node `Easy Customization')\nor call the function `midnight-mode'." :set custom-set-minor-mode :initialize custom-initialize-default :type boolean] 10)
#@618 Non-nil means run `midnight-hook' at midnight.

This is a minor mode.  If called interactively, toggle the `Midnight
mode' mode.  If the prefix argument is positive, enable the mode, and
if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is `toggle'.  Enable the
mode if ARG is nil, omitted, or is a positive number.  Disable the
mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer,
evaluate `(default-value \='midnight-mode)'.

The mode's hook is called both when the mode is enabled and when it is
disabled.

(fn &optional ARG)
(defalias 'midnight-mode #[256 "\303 \304\302\305=\203 \306\302!?\202! \247\203  \307W\203  \310\202! \311\"\210\312\300!\2038 \313\302\"\306\302!\2038 \302B\314	!\203B \315	!\210\n\203J \316	!\210\317\320\306\302!\203V \321\202W \322\"\210\323\324!\203 \325\302!\210\303 \203o \211\303 \232\203 \326\327\306\302!\203{ \330\202| \331\332#\210\210\333 \210\306\302!\207" [global-minor-modes midnight-timer midnight-mode current-message set-default toggle default-value 1 nil t boundp delq timerp cancel-timer timer-activate run-hooks midnight-mode-hook midnight-mode-on-hook midnight-mode-off-hook called-interactively-p any customize-mark-as-set message "Midnight mode %sabled%s" "en" "dis" "" force-mode-line-update] 6 (#$ . 989) (byte-code "\203\n \301!\202 \302C\207" [current-prefix-arg prefix-numeric-value toggle] 2)])
(defvar midnight-mode-hook nil)
(byte-code "\301\302N\204\f \303\301\302\304#\210\303\301\305\306#\210\303\301\307\310C#\210\311\312\310\313\300!\205# \310\211%\210\314\315\316\317\320DD\321\322\323%\210\314\324\316\317\325DD\326\322\323%\210\314\327\316\317\330DD\331\322\332%\210\314\333\316\317\334DD\335\322\336%\210\314\337\316\317\340DD\341\322\342%\210\314\343\316\317\344DD\345\322\346%\207" [midnight-mode-map midnight-mode-hook variable-documentation put "Hook run after entering or leaving `midnight-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it.  (This is true for all hook variables.)" custom-type hook standard-value nil add-minor-mode midnight-mode boundp custom-declare-variable clean-buffer-list-delay-general funcall function #[0 "\300\207" [3] 1 #1=""] "The number of days before any buffer becomes eligible for autokilling.\nThe autokilling is done by `clean-buffer-list' when it is in `midnight-hook'.\nCurrently displayed and/or modified (unsaved) buffers, as well as buffers\nmatching `clean-buffer-list-kill-never-buffer-names' and\n`clean-buffer-list-kill-never-regexps' are excluded." :type integer clean-buffer-list-delay-special #[0 "\300\207" [3600] 1 #1#] "The number of seconds before some buffers become eligible for autokilling.\nBuffers matched by `clean-buffer-list-kill-regexps' and\n`clean-buffer-list-kill-buffer-names' are killed if they were last\ndisplayed more than this many seconds ago." clean-buffer-list-kill-regexps #[0 "\300\207" [("\\`\\*Man ")] 1 #1#] "List of regexps saying which buffers will be killed at midnight.\nIf buffer name matches a regexp in the list and the buffer was not displayed\nin the last `clean-buffer-list-delay-special' seconds, it is killed by\n`clean-buffer-list' when it is in `midnight-hook'.\nIf a member of the list is a cons, its `car' is the regexp and its `cdr' is\nthe number of seconds to use instead of `clean-buffer-list-delay-special'.\nSee also `clean-buffer-list-kill-buffer-names',\n`clean-buffer-list-kill-never-regexps' and\n`clean-buffer-list-kill-never-buffer-names'.\n\nEach element can also be a function instead of a regexp, in which case\nit takes a single argument (a buffer name) and should return non-nil\nif the buffer should be killed by `clean-buffer-list'." (repeat (choice (regexp :tag "Regexp matching Buffer Name") (function :tag "Predicate function"))) clean-buffer-list-kill-buffer-names #[0 "\300\207" [("*Help*" "*Apropos*" "*Buffer List*" "*Compile-Log*" "*info*" "*vc*" "*vc-diff*" "*diff*")] 1 #1#] "List of strings saying which buffers will be killed at midnight.\nBuffers with names in this list, which were not displayed in the last\n`clean-buffer-list-delay-special' seconds, are killed by `clean-buffer-list'\nwhen it is in `midnight-hook'.\nIf a member of the list is a cons, its `car' is the name and its `cdr' is\nthe number of seconds to use instead of `clean-buffer-list-delay-special'.\nSee also `clean-buffer-list-kill-regexps',\n`clean-buffer-list-kill-never-regexps' and\n`clean-buffer-list-kill-never-buffer-names'." (repeat (string :tag "Buffer Name")) clean-buffer-list-kill-never-buffer-names #[0 "\300\207" [("*scratch*" "*Messages*")] 1 #1#] "List of buffer names which will never be killed by `clean-buffer-list'.\nSee also `clean-buffer-list-kill-never-regexps'.\nNote that this does override `clean-buffer-list-kill-regexps' and\n`clean-buffer-list-kill-buffer-names' so a buffer matching any of these\ntwo lists will NOT be killed if it is also present in this list." (repeat (string :tag "Buffer Name")) clean-buffer-list-kill-never-regexps #[0 "\300\207" [("\\` \\*Minibuf-.*\\*\\'")] 1 #1#] "List of regexp saying which buffers will never be killed at midnight.\nSee also `clean-buffer-list-kill-never-buffer-names'.\nKilling is done by `clean-buffer-list'.\nNote that this does override `clean-buffer-list-kill-regexps' and\n`clean-buffer-list-kill-buffer-names' so a buffer matching any of these\ntwo lists will NOT be killed if it also matches anything in this list.\n\nEach element can also be a function instead of a regexp, in which case\nit takes a single argument (a buffer name) and should return non-nil\nif the buffer should never be killed by `clean-buffer-list'." (repeat (choice (regexp :tag "Regexp matching Buffer Name") (function :tag "Predicate function")))] 6)
#@272 Return the delay, in seconds, before killing a buffer named NAME.
Uses `clean-buffer-list-kill-buffer-names', `clean-buffer-list-kill-regexps'
`clean-buffer-list-delay-general' and `clean-buffer-list-delay-special'.
Autokilling is done by `clean-buffer-list'.

(fn NAME)
(defalias 'clean-buffer-list-delay #[257 "\304\305	$\206 \304\n\306	$\206 \307\310\311\211$\207" [clean-buffer-list-kill-buffer-names clean-buffer-list-delay-special clean-buffer-list-kill-regexps clean-buffer-list-delay-general assoc-default string= #[514 "\300!\203\n !\207\301\"\207" [functionp string-match] 5 "\n\n(fn RE STR)"] * 24 60] 6 (#$ . 6821)])
#@564 Kill old buffers that have not been displayed recently.
The relevant variables are `clean-buffer-list-delay-general',
`clean-buffer-list-delay-special', `clean-buffer-list-kill-buffer-names',
`clean-buffer-list-kill-never-buffer-names',
`clean-buffer-list-kill-regexps' and
`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.
(defalias 'clean-buffer-list #[0 "\303 \304\305\306!\304\211\211\307 \211\205\214 \211@\310!\203\205 r\211q\210)\262\311!\262\2036 \312\313\314\n\n\"!!\2027 \315\262\316!\262\317\320%\210\321	\322\323$\204\205 \321\n\322\324$\204\205 \325!\204\205 \326!\203m \327!\204\205 \330\331\"\204\205 W\204\205 \317\332#\210\333!\210A\266\202\202 \207" [buffer-display-time clean-buffer-list-kill-never-regexps clean-buffer-list-kill-never-buffer-names current-time nil format-time-string "%Y-%m-%d %T" buffer-list buffer-live-p buffer-name round float-time time-subtract 0 clean-buffer-list-delay message "[%s] `%s' [%s %d]" cl-find :test #[514 "\300!\203\n \211!\207\301\"\207" [functionp string-match] 5 "\n\n(fn BN RE)"] string-equal get-buffer-process buffer-file-name buffer-modified-p get-buffer-window visible "[%s] killing `%s'" kill-buffer] 14 (#$ . 7468) nil])
#@65 The number of seconds in a day--the delta for `midnight-timer'.
(defvar midnight-period 86400 (#$ . 8937))
(byte-code "\300\301\302\303\304DD\305\306\307%\207" [custom-declare-variable midnight-hook funcall function #[0 "\300\207" [(clean-buffer-list)] 1 ""] "The hook run `midnight-delay' seconds after midnight every day.\nThe default value is `clean-buffer-list'." :type hook] 6)
#@71 Return the number of whole or partial seconds till the next midnight.
(defalias 'midnight-next #[0 "\300\301\211\302#\211\242\243\211\242\243\211\242\243\303\304\305_\306_	$\207" [decode-time nil integer - 86400 3600 60] 12 (#$ . 9326)])
#@166 Modify `midnight-timer' according to `midnight-delay'.
Sets the first argument SYMB (which must be symbol `midnight-delay')
to its second argument TM.

(fn SYMB TM)
(defalias 'midnight-delay-set #[514 "\302=\204 \303\304\305C\306$\210L\210\307!\203 \310!\210\311\247\203) \312 \\\202* 	\313\314$\211\207" [midnight-timer midnight-period midnight-delay cl--assertion-failed (eq symb 'midnight-delay) "Invalid argument to `midnight-delay-set': `%s'" nil timerp cancel-timer run-at-time midnight-next run-hooks midnight-hook] 7 (#$ . 9578)])
(byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\312\313!\207" [custom-declare-variable midnight-delay funcall function #[0 "\300\207" [3600] 1 ""] "The number of seconds after the midnight when the `midnight-timer' is run.\nYou should set this variable before loading midnight.el, or\nset it by calling `midnight-delay-set', or use `custom'.\nIf you wish, you can use a string instead, it will be passed as the\nfirst argument to `run-at-time'." :type (choice integer string) :set midnight-delay-set provide midnight] 8)
