| Newsgroups |
gmane.emacs.xemacs.general |
| Message-ID |
<[email protected]> |
Hello,
how can I put the cursor after the next ";" sign in a cpp file ?
I have some very hand functions which insert a debug macro for a variable:
(defun mg-skel-dbg-bool( var )
"Inserts a bool debug macro for the variable var"
( save-excursion
( progn
(end-of-line)
(insert "\n")
(indent-according-to-mode)
(insert ( concat "DBG_BOOL( LOG_DETAIL, " var " );" ) )
)
)
)
As you can see, it inserts a new line after the current cursor location
e.g.:
bool bBool=true;
DBG_BOOL( LOG_DETAIL, bBool );
This is quite handy, but in the next case it is not as beautiful:
cout << fFloat
<< bBool
DBG_BOOL( LOG_DETAIL, bBool );
<< iInt ;
I have to cut'n'paste the macro after the ";". Is there some clean way to
let xemacs do that ?
TIA,
Markus Grunwald
Development
PRÜFTECHNIK Condition Monitoring GmbH
Oskar-Messter-Straße 19 - 21
85737 Ismaning
http://www.pruftechnik.com
---------------------------------------------------------------------------------------------------------
The information in this e-mail is confidential and is intended solely for
the addressee. Access to this e-mail by anyone else is unauthorized. If
you have received this e-mail in error, please notify
[email protected]
PRUFTECHNIK cannot guarantee that any files attached to this e-mail are
free from viruses or any other program code that may be harmful to your
computer, and, as such, is not liable for any damage that may be caused as
a result. PRUFTECHNIK reserves the right to monitor all e-mail
communications through its networks.