unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Wrap around and comment function
@ 2005-11-29  3:56 Harry Putnam
  2005-11-29  4:21 ` Chong Yidong
  0 siblings, 1 reply; 4+ messages in thread
From: Harry Putnam @ 2005-11-29  3:56 UTC (permalink / raw)


I'm hoping there is something that does what I describe below
somewhere in a repository.  Or at least something that is close enough
to allow a (seriously) lisp challenged emacs user to get this from it.

I'd like a function that acts on region by inserting a line like this
above region:

# [HP DATE - NOTE: <Here I get queried for a few words then <RET>>
# Then region is commented  
# with whatever  comment style 
# is dictated by mode.
# Finally insert a line below region like:
# ==*  END HP NOTE *== ]

If that isn't confusing enough I'll try to spell it out.

Write a commented line with some static info:
   [HP DATE - NOTE:
   (Where date is MMDDYY_HHMMSS)
Then the function queries me for a few words of my choice followed by
<RET>  Which is also written to the same line.

When I hit <RET> the function comments the region with whatever
comment is dictated by mode, and inserts a closing line:

   # ==*  END HP NOTE *== ]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-30 14:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-29  3:56 Wrap around and comment function Harry Putnam
2005-11-29  4:21 ` Chong Yidong
2005-11-30 13:55   ` Harry Putnam
2005-11-30 14:36   ` Harry Putnam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).