>>>Is this XEmacs? I couldn't get a failure in Emacs 22.0.whatever
>>Well I've just tried again with Xemacs, and this time activate 'debug
>>on error', same error but with this you may have more information :
>>Debugger entered--Lisp error: (malformed-list [("titi" variable (:type "int") (reparse-symbol classsubparts) [36 45])])
> I looks like things are getting tied up in semantic-imenu.el around
> line 55. Perhaps David (who wrote that bit) has a suggestion?
Sorry for this late reply, I was too busy ;-)
I debugged this problem. It happens because the XEmacs imenu code
handle specially a menu of one item. In fact it assumes that a
"normal" imenu has at least two items counting the "*Rescan*" one. I
committed the change below that seems to have fixed the bug on my
XEmacs 21.4.17. It works too with Emacs 21.4 and 22.0.
2005-11-03 David Ponce <david@...>
(semantic-ia-complete-symbol-menu): XEmacs `imenu--mouse-menu'
RCS file: /cvsroot/cedet/cedet/semantic/semantic-ia.el,v
retrieving revision 1.10
diff -r1.10 semantic-ia.el
< (let ((ans
< (mapcar (lambda (tok)
< (cons (funcall semantic-ia-completion-menu-format-tag-function tok)
< (vector tok)))
> (let* ((menu
> (lambda (tag)
> (funcall semantic-ia-completion-menu-format-tag-function tag)
> (vector tag)))
> ;; XEmacs needs that the menu has at least 2 items. So,
> ;; include a nil item that will be ignored by imenu.
> (cons nil menu)