On Wednesday 26 November 2008 22:38, you wrote:
> >>> Michael Reiher <redm@...> seems to think that:
> >Then semantic-decoration-include-menu even seems to be called, however
> >something is wrong about the argument.
> >Debugger entered--Lisp error: (wrong-type-argument listp
> > #<buttondown-event button3>)
> > semantic-decoration-include-menu(#<buttondown-event button3>)
> > call-interactively(semantic-decoration-include-menu)
> [ ... ]
> In Emacs, the event is a list. Presumably in XEmacs it is some custom
> lisp object? Is there an API for extracting the window from an event
> in XEmacs?
I found (event-window EVENT). Using this makes it work. Then however there is
a problem with the menu definition. The keywords :visible and :help don't
exist in XEmacs. Removing them makes the menu show up and it mostly seems to
work even :)
Just actions which require the point to be in the #include line ("What Is
This?", "Visit This Include" and "Parse This Include") have a little problem.
I have to move the cursor manually into the #include line, otherwise I get
errors. I guess that's what (mouse-set-point event) is supposed to take care
off? So maybe this is an XEmacs bug ...
I attached a patch with what I did to make it work with XEmacs so far. You'll
probably want to change it to make it work with both Emacs and XEmacs, and
not have too much duplication. How to do that best is a bit above my elisp
programming "skills" ;)
> >Something else, not specific to XEmacs: I use push-tag-mark to save
> > positions when jumping. This works quite well for jumping backwards.
> > Maybe you might want to add it as well. (The push-mark mechanism is IMHO
> > pointless in this case. And mru-bookmark-mode, while looking promising, I
> > found it not to be really efficiently usable.)
> You can pop the global mark to go back from where you came.
Hmm, it's been a while ... but IIRC the push-mark mechanism has some problems
in principle. It only saves one mark per buffer, so you can't jump back via
several places within the same buffer. Also lots of other marks, which have
nothing to do with jumping, "pollute" the global mark ring and thus interfere
with jumping. Which in turn made it practically useless for me, as far as
jumping (back) is concerned.
> The tag
> mark seems like a fine idea too. Emacs does not have a fcn to do that
> other than the raw ring-insert.
You mean Emacs has no push-tag-mark function? It has pop-tag-mark though ..
interesting ... :)