* lisp/progmodes/vhdl-mode.el (vhdl-run-when-idle):
No need to activate a newly created idle timer; keep it as
compatibility (or voodoo) code for XEmacs which probably doesn't have
the timer accessors anyway.
(cherry picked from commit
b6c18817a259ec10df5bd741a6eef6842199e95b)
(if (fboundp 'start-itimer)
(start-itimer "vhdl-mode" function secs repeat t)
;; explicitly activate timer (necessary when Emacs is already idle)
- (setf (timer--triggered (run-with-idle-timer secs repeat function)) nil)))
+ (when (featurep 'xemacs)
+ (aset (run-with-idle-timer secs repeat function) 0 nil))))
(defun vhdl-warning-when-idle (&rest args)
"Wait until idle, then print out warning STRING and beep."