EMACS - python-mode 100% CPU usage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cedet (Ubuntu) |
In Progress
|
Undecided
|
Michael Olson |
Bug Description
Binary package hint: semantic
After installing:
ii emacs-snapshot-
ii emacs-snapshot-
ii emacs-snapshot-gtk 20060915-1 The GNU Emacs editor (with GTK+ 2.x support)
ii python-mode 1.0-2 Emacs-lisp python-mode and doctest-mode for
ii semantic 1.0pre3-1 Parser Infrastructure for Emacsen
I found that emacs was taking up 100% cpu after opening a python file for editing. I traced it down to semantic, and the following patch:
--- semantic-idle.el 2005/09/30 20:20:43 1.34
+++ semantic-idle.el 2006/09/12 01:16:12 1.35
@@ -1,10 +1,10 @@
;;; semantic-idle.el --- Schedule parsing tasks in idle time
-;;; Copyright (C) 2003, 2004, 2005 Eric M. Ludlam
+;;; Copyright (C) 2003, 2004, 2005, 2006 Eric M. Ludlam
;; Author: Eric M. Ludlam <email address hidden>
;; Keywords: syntax
-;; X-RCS: $Id: semantic-idle.el,v 1.34 2005/09/30 20:20:43 zappo Exp $
+;; X-RCS: $Id: semantic-idle.el,v 1.35 2006/09/12 01:16:12 zappo Exp $
;; This file is not part of GNU Emacs.
@@ -286,12 +286,9 @@
(when (zerop (recursion-depth))
(unwind-
- ;; Disable the auto parse timer while re-parsing
- (semantic-
;; Handle re-parsing and other scheduled services
- ;; Enable again the auto parse timer
- (semantic-
+ )))
;;; REPARSING
;;
http://
fixed the issue. Here is how:
1. copy the patch text into ~/downloads/
2. sudo cp /usr/share/
3. patch semantic-idle.el semantic-idle.patch
4. emacs -batch -f batch-byte-compile semantic-idle.el
5. sudo cp semantic-idle.el /usr/share/
6. sudo cp semantic-idle.elc /usr/share/
7. start emacs-snapshot-gtk
I'm still unclear as to how you can recompile the /usr/share/
Changed in cedet: | |
status: | Fix Released → In Progress |
Changed in cedet: | |
assignee: | nobody → mwolson-member |
This seems to effect more than just python-mode...
https:/ /launchpad. net/distros/ ubuntu/ +source/ cedet/+ bug/66723