From: Harry Putnam <reader@newsguy.com>
Subject: Re: Wrap around and comment function
Date: Wed, 30 Nov 2005 07:55:52 -0600 [thread overview]
Message-ID: <87fypeqlxz.fsf@newsguy.com> (raw)
In-Reply-To: 87acfo6q3r.fsf@stupidchicken.com
Chong Yidong <cyd@stupidchicken.com> writes:
[...]
> Probably something like this:
>
> (defun foo (beg end string)
> (interactive "*r\nsEnter a few words: ")
> (let ((fin (copy-marker end)))
> (goto-char beg)
> (insert "[HP DATE - NOTE: " string "\n")
> (goto-char (marker-position fin))
> (set-marker fin nil)
> (insert "\n==* END HP NOTE *== ]\n")
> (comment-region beg (point))))
Yup, that is pretty slick. Looks like I just need to save a
formatted date in a var and use it at:
[HP MYVAR - NOTE:
Thank you. Nice function and surprisingly brief.
next prev parent reply other threads:[~2005-11-30 13:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2005-11-30 14:36 ` Harry Putnam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fypeqlxz.fsf@newsguy.com \
--to=reader@newsguy.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.