setting imenu-create-index-p to nil causes an error if imenu is already loaded
Bug #945597 reported by
Jan Domurath
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
Hi,
if i disable imenu with:
(setq imenu-create-
i get the following error:
File mode specification error: (error "The mode `Python' does not support Imenu")
As far as i could figure it out, the error arises when imenu is already loaded.
Then (fboundp 'imenu-
the PyIndex menu which "isn't defined" at this point.
I would propose the attached patch to fix this issue.
This way, it is only tried to add the PyIndex menu if imenu-create-
non nil.
-Jan
Related branches
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.0.5 |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi,
thanks a lot for the patch, you got the right spot.
May you check out the current trunk and try again?
Andreas