Hot answers tagged

2 votes

How to detect when a function was activated by a timer?

All timers get processed in timer-event-handler, so you can add advice to that instead: (defvar called-by-timer nil "Bound to t when a function is called by a timer.") (advice-add 'timer-...
  • 998

Only top scored, non community-wiki answers of a minimum length are eligible