From: Runser Guillaume
Subject: Run-at-time function
Date: 
Message-ID: <01bcf927$45155d00$3d11fcc1@pentium200>
Hello everybody,

Did anyone know how to disable the function run-at-time
in GNU EMACS ????

Thank you

GRunser

From: Philip Lijnzaad
Subject: Re: Run-at-time function
Date: 
Message-ID: <u77m9x6mzm.fsf@ebi.ac.uk>
"Runser Guillaume" <··················@wanadoo.fr> writes:

> Did anyone know how to disable the function run-at-time
> in GNU EMACS ????

This question more properly belongs in gnu.emacs.help, but anyway, the
following should work:

(setq saved-timer-list timer-list
      timer-list nil)

To reinstate the timers, do the reverse:

(setq timer-list saved-timer-list)

See also the function cancel-timer.


                                                                      Philip


-- 
"It's just that I get up 20 hours earlier than everybody else"
Philip Lijnzaad, ········@ebi.ac.uk | European Bioinformatics Institute
+44 (0)1223 49 4639                 | Wellcome Trust Genome Campus, Hinxton
+44 (0)1223 49 4468 (fax)           | Cambridge CB10 1SD,  GREAT BRITAIN
PGP fingerprint: E1 03 BF 80 94 61 B6 FC  50 3D 1F 64 40 75 FB 53
From: Jari Aalto -- AT poboxes.com
Subject: Re: Run-at-time function
Date: 
Message-ID: <ptroh387sgs.fsf@uta.fi>
|  97-11-25 Philip Lijnzaad <········@ebi.ac.uk> gnu.emacs.help
| "Runser Guillaume" <··················@wanadoo.fr> writes:
| 
| [...]
| > Did anyone know how to disable the function run-at-time
| > in GNU EMACS ????

Philip already gave the solution. If you need to [X]Emacs version independent,
I have ready function for this.

jari

ftp://cs.uta.fi/pub/ssjaaa/tiny-tools.tar.gz  

(ti::xe-timer-list-control &optional MODE) (from tinylib.el)
Timer handling: MODE can be 'save 'restore or 'kill.

Example:

  ;; Turn off all processes for a while...
  (ti::xe-timer-list-control 'save)
  (ti::xe-timer-list-control 'kill)

  ;; ... do something
  ;;

  ;;  Now restore the prosesses
  (ti::xe-timer-list-control 'restore)