"Stop the Date timer."
(interactive)
(when article-lapsed-timer
- (nnheader-cancel-timer article-lapsed-timer)
+ (cancel-timer article-lapsed-timer)
(setq article-lapsed-timer nil)))
(defun article-date-user (&optional highlight)
(when next
(when gnus-async-timer
(ignore-errors
- (nnheader-cancel-timer 'gnus-async-timer)))
+ (cancel-timer 'gnus-async-timer)))
(setq gnus-async-timer
(run-with-idle-timer
0.1 nil 'gnus-async-prefetch-article
func idle time))))
((and idle (> idle (gnus-demon-idle-since)))
(when time
- (nnheader-cancel-timer (plist-get gnus-demon-timers func))
+ (cancel-timer (plist-get gnus-demon-timers func))
(setq gnus-demon-timers
(plist-put gnus-demon-timers func
(run-with-idle-timer idle nil
"Cancel any Gnus daemons."
(interactive)
(dotimes (i (/ (length gnus-demon-timers) 2))
- (nnheader-cancel-timer (nth (1+ (* i 2)) gnus-demon-timers)))
+ (cancel-timer (nth (1+ (* i 2)) gnus-demon-timers)))
(setq gnus-demon-timers nil))
(defun gnus-demon-add-disconnection ()
(autoload 'auth-source-search "auth-source")
(autoload 'pop3-movemail "pop3")
(autoload 'pop3-get-message-count "pop3")
-(autoload 'nnheader-cancel-timer "nnheader")
(require 'mm-util)
(require 'message) ;; for `message-directory'
(> (prefix-numeric-value arg) 0))))
(setq mail-source-report-new-mail on)
(and mail-source-report-new-mail-timer
- (nnheader-cancel-timer mail-source-report-new-mail-timer))
+ (cancel-timer mail-source-report-new-mail-timer))
(and mail-source-report-new-mail-idle-timer
- (nnheader-cancel-timer mail-source-report-new-mail-idle-timer))
+ (cancel-timer mail-source-report-new-mail-idle-timer))
(setq mail-source-report-new-mail-timer nil)
(setq mail-source-report-new-mail-idle-timer nil)
(if on
(nnheader-skeleton-replace "\r"))
(defalias 'nnheader-cancel-timer 'cancel-timer)
+(define-obsolete-function-alias 'nnheader-cancel-timer 'cancel-timer "27.1")
+
(defalias 'nnheader-cancel-function-timers 'cancel-function-timers)
+(define-obsolete-function-alias 'nnheader-cancel-function-timers
+ 'cancel-function-timers "27.1")
;; When changing this function, consider changing `pop3-accept-process-output'
;; as well.
'excl)
(when (fboundp 'unix-sync)
(unix-sync)))) ;; no fsync :(
- (nnheader-cancel-timer 24h)
+ (cancel-timer 24h)
(condition-case err
(add-name-to-file tmpfile curfile)
(error
(nntp-close-server))
(signal 'quit nil))))
(when -timer
- (nnheader-cancel-timer -timer)))
+ (cancel-timer -timer)))
nil))
(setq nntp--report-1 nntp-report-n))
nntp-with-open-group-internal))
(signal 'quit nil)
nil))))
(when timer
- (nnheader-cancel-timer timer))
+ (cancel-timer timer))
(when (and process
(not (memq (process-status process) '(open run))))
(with-current-buffer pbuffer
(defun nntp-async-stop (proc)
(setq nntp-async-process-list (delq proc nntp-async-process-list))
(when (and nntp-async-timer (not nntp-async-process-list))
- (nnheader-cancel-timer nntp-async-timer)
+ (cancel-timer nntp-async-timer)
(setq nntp-async-timer nil)))
(defun nntp-after-change-function (beg end len)