comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDLWAVE and starting a comment on a new line
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDLWAVE and starting a comment on a new line [message #48651 is a reply to message #48645] Thu, 11 May 2006 06:05 Go to previous messageGo to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
Thanks a lot JD!

> It only works with the stanza in .emacs that I provided. The next release
> won't need this, but for now, you must set the "comment-add" parameter.

The M-; trick does not work despite the addition of the "command-add"
parameter and that's why I am perplexed.

> Yes, indeed. You might add something like this to your idlwave-mode-hook
> inside of .emacs:
>
> (define-key (current-local-map)
> [f6]
> '(lambda () (interactive)
> (insert ";{{{")
> (indent-according-to-mode)))
>
> The same pattern can be used to insert anything.


For anyone wanting to try it the define-key trick works great, though
it only indents if the cursor is not in column 1. Which I guess is how
idlwave indents comments in the first place. In case you're curious, I
use ;{{{ and ;}}} with folding.el to fold IDL code in emacs, pretty
nifty.


I realize this is an IDL forum and not an emacs forum but I will give
this a shot anyway...

I think the super-uber version of the define-key command above would
act slightly differently: it would insert the string "{{{", prepend the
relevant comment characters for the current mode and finally indent the
whole thing properly. Is *this* possible or am I just asking too much
of either xemacs or this fine community?

Many thanks,
Gianguido
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: very slow object graphics creation
Next Topic: 6.3 reactions?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:00:46 PDT 2025

Total time taken to generate the page: 0.00405 seconds