From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: how to %g/notice/d
Date: Fri, 16 Jul 2004 12:33:32 -0600 [thread overview]
Message-ID: <40F81F7C.40007@yahoo.com> (raw)
In-Reply-To: sgjwu1398ke.fsf@zenix.zk3.dec.com
nick wrote:
> o you can write a macro (as kgold suggested) that remembers the
> keystrokes you type while you are doing *one* deletion, go to the top
> of the buffer and then invoke the macro N times (with a prefix
> argument of course), where N is some number greater or equal to the
> number of occurrences of the word ``notice'' in your file.
Don't guess what N is, just use 0. (I've always thought 0 was a poor
choice for `C-x e's special prefix arg. 0 should mean execute 0 times; a
negative number should mean execute until error.)
...
> In my case, I have bound the mark-whole-buffer function to a function
> key, since I use it very often, so the resulting operation is shorter.
> In my .emacs, I have
>
> (define-key global-map [f9] 'mark-whole-buffer)
mark-whole-buffer is bound by default to `C-x h'.
...
> C-u M-| sed 'notice/d' RET
That should be: C-u M-| sed '/notice/d' RET
--
Kevin Rodgers
next prev parent reply other threads:[~2004-07-16 18:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-16 8:39 how to %g/notice/d Chang PilHun
2004-07-16 9:10 ` Damien Wyart
2004-07-16 13:09 ` kgold
2004-07-16 16:45 ` Kevin Rodgers
2004-07-16 17:16 ` nick
2004-07-16 18:33 ` Kevin Rodgers [this message]
2004-07-16 18:36 ` Peter Lee
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40F81F7C.40007@yahoo.com \
--to=ihs_4664@yahoo.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.
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).