mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 15:00:34 -08:00
Use timer accessors instead of aref/aset
* lisp/emacs-lisp/timer-list.el (list-timers): * lisp/gnus/mail-source.el (mail-source-start-idle-timer): * lisp/play/gamegrid.el (gamegrid-set-timer): * lisp/progmodes/vhdl-mode.el (vhdl-run-when-idle): * lisp/simple.el (analyze-text-conversion): * lisp/time.el (display-time-event-handler): Use timer accessors.
This commit is contained in:
parent
d2cb9f2bf6
commit
e56e4b345a
6 changed files with 12 additions and 20 deletions
|
|
@ -954,9 +954,8 @@ See the Gnus manual for details."
|
|||
;; Since idle timers created when Emacs is already in the idle
|
||||
;; state don't get activated until Emacs _next_ becomes idle, we
|
||||
;; need to force our timer to be considered active now. We do
|
||||
;; this by being naughty and poking the timer internals directly
|
||||
;; (element 0 of the vector is nil if the timer is active).
|
||||
(aset mail-source-report-new-mail-idle-timer 0 nil)))
|
||||
;; this by being naughty and poking the timer internals directly.
|
||||
(setf (timer--triggered mail-source-report-new-mail-idle-timer) nil)))
|
||||
|
||||
(declare-function display-time-event-handler "time" ())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue