Re[2]: [cedet-semantic] how to disable summary mode?
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2005-04-06 01:20:19
|
>>> Michael Reiher <re...@gm...> seems to think that: >On Friday 01 April 2005 14:45, David PONCE wrote: [ ... ] >> > Btw Eric: While being at it, regarding that >> > cpu-consumption-while-actually-idle problem with XEmacs: >> > >> > sometime back you asked me to add >> > >> > (add-hook 'semantic-before-idle-scheduler-reparse-hooks >> > (lambda () (message "Idle reparse..."))) >> > >> > (add-hook 'semantic-after-idle-scheduler-reparse-hooks >> > (lambda () (message "Idle reparse...done"))) >> > >> > to see whether the idle timer is only called once, as it should >> > be. And I said it is. But that was wrong, as further usage >> > showed. Its just that the time between before and after is so short >> > that there is only a hardly noticeable flicker:) So, to confirm >> > this, the idle timer is called on and on when it should be called >> > only once. >> >> No the idle scheduler is called repeatedly through a timer after >> `semantic-idle-scheduler-idle-time' seconds of idle time. It does >> nothing when there is no buffer which need to be re-parsed (nothing >> has been changed since its last run). This is why the time before and >> after the scheduler-reparse-hooks is so short. >> >Hmm, sounds reasonable. I probably got something wrong here. It's just that it >sometimes still consumes lots of CPU even with summary mode disabled, but >thats probably something else then. [ ... ] This may be a bit hit-or-miss, but if you use `toggle-debug-on-quit', you could hit C-g when you think its busy to find out what it is up to. As David says, it doesn't do anything if there is nothing to do, but there may be some wedged state that is letting things run loose. I updated the CVS version of semantic recently to clear up a bug with incomplete syntax situations disallowing various idle services. These changes may affect the problem you are seeing also. Eric -- Eric Ludlam: za...@gn..., er...@si... Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |