Hi Eric,
[...]
>>>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.
Sincerely,
David
2005-11-03 David Ponce <david@...>
* cedet/semantic/semantic-ia.el
(semantic-ia-complete-symbol-menu): XEmacs `imenu--mouse-menu'
compatibility fix.
Index: semantic-ia.el
===================================================================
RCS file: /cvsroot/cedet/cedet/semantic/semantic-ia.el,v
retrieving revision 1.10
diff -r1.10 semantic-ia.el
114,121c114,127
< (let ((ans
< (imenu--mouse-menu
< (mapcar (lambda (tok)
< (cons (funcall semantic-ia-completion-menu-format-tag-function tok)
< (vector tok)))
< syms)
< (senator-completion-menu-point-as-event)
< "Completions")))
---
> (let* ((menu
> (mapcar
> (lambda (tag)
> (cons
> (funcall semantic-ia-completion-menu-format-tag-function tag)
> (vector tag)))
> syms))
> (ans
> (imenu--mouse-menu
> ;; XEmacs needs that the menu has at least 2 items. So,
> ;; include a nil item that will be ignored by imenu.
> (cons nil menu)
> (senator-completion-menu-point-as-event)
> "Completions")))
|