Hi,

I have the latest semantic package but semantic-idle.el is not
patched. Using emacs-snapshot (and, I suspect, a build of Emacs 22
from anywhere else) will result in 100% CPU utilization when emacs is
idle.

ii  semantic       1.0pre3-7      Parser Infrastructure for Emacsen
ii  emacs-snapshot 20070302-1     The GNU Emacs editor (development snapshot)

Could you please re-open the bug? I could do it myself, but would like
to know our opinion first!

The patch below fixes the issue (see my original email opening a
bug for a reference to the upstream discussion).

Cheers!
Shyamal

--- semantic-idle.el.orig       2007-04-06 11:17:58.000000000 -0700
+++ semantic-idle.el    2007-04-06 11:21:03.000000000 -0700
@@ -286,12 +286,9 @@
   (when (zerop (recursion-depth))
     (unwind-protect
         (semantic-safe "idle error: %S"
-          ;; Disable the auto parse timer while re-parsing
-          (semantic-idle-scheduler-kill-timer)
           ;; Handle re-parsing and other scheduled services
           (save-match-data (semantic-idle-core-handler)))
-      ;; Enable again the auto parse timer
-      (semantic-idle-scheduler-setup-timer))))
+      )))
 
 ;;; REPARSING
 ;;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to