comparison lisp/=timer.el @ 1241:de92360b091b

(timer-process-sentinel): Don't set timer-scratch.
author Richard M. Stallman <rms@gnu.org>
date Mon, 28 Sep 1992 12:41:39 +0000
parents 45f9cbd79ede
children a52da8d63ff3
comparison
equal deleted inserted replaced
1240:7365d006d0a0 1241:de92360b091b
81 ;; if it exited normally, presumably it was intentional. 81 ;; if it exited normally, presumably it was intentional.
82 ;; if there were no pending events, who cares that it exited? 82 ;; if there were no pending events, who cares that it exited?
83 (if (or (not timer-alist) (eq stat 'exit)) () 83 (if (or (not timer-alist) (eq stat 'exit)) ()
84 (ding 'no-terminate) 84 (ding 'no-terminate)
85 (message "Timer exited abnormally. All events cancelled.")) 85 (message "Timer exited abnormally. All events cancelled."))
86 (setq timer-process nil timer-alist nil timer-scratch "")))) 86 ;; Used to set timer-scratch to "", but nothing uses that var.
87 (setq timer-process nil timer-alist nil))))
87 88
88 (defun cancel-timer (function) 89 (defun cancel-timer (function)
89 "Cancel all events scheduled by ``run-at-time'' which would run FUNCTION." 90 "Cancel all events scheduled by ``run-at-time'' which would run FUNCTION."
90 (interactive "aCancel function: ") 91 (interactive "aCancel function: ")
91 (let ((alist timer-alist)) 92 (let ((alist timer-alist))