Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-09-2013, 04:06 AM   #1
LQ Newbie
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 10

Rep: Reputation: Disabled
Current emacs Imenu / ECB does not handle Python


I am returning to emacs after some years and am trying to set up a Python IDE.
I am attempting to use ECB as a Python class browser.

Versions are
  • GNU Emacs 24.3.1
  • python-mode 6.0.12
  • ecb 2.40-r2
  • cedet-1.1 (including semantic 2.1)
I load ECB in .emacs:
(require 'ecb)
When I open a Python file, the class/method buffer stays empty.

ecb--semantic-analyze-current-context yields `Cannot analyze buffers not supported by Semantic`.

The menu ECB -> Rebuild methods buffer yields `Sorry, no support for a file of that extension`.

python-mode is active. C-h m:
Py mode defined in `python-mode.el':
Major mode for editing Python files.
Semantic Configuration in

Buffer specific configuration items:
  major-mode: #'python-mode
  semantic-case-fold: : nil
  semantic-tag-expand-function: : nil
  semantic-parser-name: "LL"
  semantic-parse-tree-state: 'needs-rebuild
  semantic-lex-analyzer: #'semantic-flex
  semantic-lex-reset-hooks: : nil
  semantic-lex-syntax-modifications: : nil

General configuration items:
  semantic-inhibit-functions: : nil
  semantic-init-hook: : nil
  semantic-init-db-hook: : nil
  semantic-unmatched-syntax-hook: : nil
  semantic--before-fetch-tags-hook: : nil
  semantic-after-toplevel-bovinate-hook: : nil
  semantic-after-toplevel-cache-change-hook:  #<list of 1 items>
  semantic-before-toplevel-cache-flush-hook:  #<list of 1 items>
  semantic-dump-parse: : nil
  semantic-type-relation-separator-character:  #<list of 1 items>
  semantic-command-separation-character: ";"
  semantic-new-buffer-fcn-was-run: : nil

Mode local bindings active in #<buffer>

Apparently my CEDET / semantic does not understand Python.

For other languages, as C++, ECB works fine with this setup.

Web searches so far revealed that it should "just work". Being an emacs n00b, I might have done practically anything wrong. :-/

Any hints where to start tracking this down will be much appreciated. I'll gladly provide more information when needed.

Last edited by fbmd; 11-15-2013 at 10:49 AM.
Old 11-15-2013, 10:48 AM   #2
LQ Newbie
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 10

Original Poster
Rep: Reputation: Disabled
Update: Apparently, Imenu-support for Python is also lacking.

`M-x imenu` -> "This buffer can not use 'imenu-default-create-index-function'"

Subsequently, the `M-x speedbar` isn't showing any Python methods.

As before, with C++ it's working fine.

Any hints would be greatly appreciated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Emacs + CEDET + ECB delroot Linux - Software 0 05-11-2012 11:47 AM
alg: No test for ecb(cipher_null) (ecb-cipher_null) What is this? netstv Linux - Kernel 0 11-02-2010 06:03 PM
Emacs: Tips for running python code within emacs gripip Linux - Newbie 0 10-02-2010 01:54 AM
python: how to handle unicode chars in ascii strings? BrianK Programming 5 01-27-2009 04:20 PM
python: can you update the current shell from python? BrianK Programming 4 01-31-2008 12:18 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration