]> code.delx.au - gnu-emacs/blobdiff - src/atimer.c
(table group): Add :version.
[gnu-emacs] / src / atimer.c
index 7e78bdad9c0edb30a34f61dc559bb53b21d585ab..7410cad0244c8c02244493b4af61be28cc1b9453 100644 (file)
@@ -375,7 +375,9 @@ alarm_signal_handler (signo)
 
       t = atimers;
       atimers = atimers->next;
+#ifndef MAC_OSX
       t->fn (t);
+#endif
 
       if (t->type == ATIMER_CONTINUOUS)
        {
@@ -387,11 +389,16 @@ alarm_signal_handler (signo)
          t->next = free_atimers;
          free_atimers = t;
        }
+#ifdef MAC_OSX
+      /* Fix for Ctrl-G.  Perhaps this should apply to all platforms. */
+      t->fn (t); 
+#endif
 
       EMACS_GET_TIME (now);
     }
 
-  set_alarm ();
+  if (! pending_atimers)
+    set_alarm ();
 }