Hi,

> Excellent point.  When I call beginning-of-defun interactively it
> works great, but when I call it from a program it goes to the
> beginning of the file.  Is there some trick to getting the "java"
> version of beginning-of-defun?
> Also, I tried to call mark-defun indent-region after I inserted my
> instrumentation code, but that barfs too.  Here is my attempt.  I
> haven't tracked donw how to get the class and method name.
[...]

Currently the "java" version (actually the Semantic version ;) of
`beginning-of-defun', `end-of-defun', etc., are enabled only when
these functions are called interactively (and `senator-minor-mode' is
enabled).  This avoid compatibility problems with existing libraries
(like font-lock).

If you want to get the Semantic version of `beginning-of-defun',
`end-of-defun', etc., simply call their senator counterpart, that is:
`senator-beginning-of-defun', `senator-end-of-defun',
`senator-mark-defun', etc. (see senator.el in the Semantic
distribution for details).

Hope this helps!
David
____________________________________________________________
Faites un voeu et puis Voila ! www.voila.fr 
Avec Voila Mail, consultez vos e-mails sur votre mobile Wap. 


Reply via email to