comparison lisp/=timer.el @ 3267:ac18ead9965d

(cancel-function-timers): Renamed from spurious duplicate definition of cancel-timer.
author Richard M. Stallman <rms@gnu.org>
date Sat, 29 May 1993 20:43:41 +0000
parents 6ff9eee5cdc9
children 03a02339361a
comparison
equal deleted inserted replaced
3266:1173bc4814da 3267:ac18ead9965d
126 (ding 'no-terminate) 126 (ding 'no-terminate)
127 (message "Timer exited abnormally. All events cancelled.")) 127 (message "Timer exited abnormally. All events cancelled."))
128 ;; Used to set timer-scratch to "", but nothing uses that var. 128 ;; Used to set timer-scratch to "", but nothing uses that var.
129 (setq timer-process nil timer-alist nil)))) 129 (setq timer-process nil timer-alist nil))))
130 130
131 (defun cancel-timer (function) 131 (defun cancel-function-timers (function)
132 "Cancel all events scheduled by `run-at-time' which would run FUNCTION." 132 "Cancel all events scheduled by `run-at-time' which would run FUNCTION."
133 (interactive "aCancel function: ") 133 (interactive "aCancel timers of function: ")
134 (let ((alist timer-alist)) 134 (let ((alist timer-alist))
135 (while alist 135 (while alist
136 (if (eq (nth 2 (car alist)) function) 136 (if (eq (nth 2 (car alist)) function)
137 (setq timer-alist (delq (car alist) timer-alist))) 137 (setq timer-alist (delq (car alist) timer-alist)))
138 (setq alist (cdr alist)))) 138 (setq alist (cdr alist))))