From: dkcombs@panix.com (David Combs)
To: help-gnu-emacs@gnu.org
Subject: Re: vim equivalent in emacs %5,50s/serah_term/replace_term/gc
Date: Sun, 16 Dec 2007 19:40:15 +0000 (UTC) [thread overview]
Message-ID: <fk3uuv$kno$1@reader1.panix.com> (raw)
In-Reply-To: 87y7cpwujb.fsf@kobe.laptop
In article <87y7cpwujb.fsf@kobe.laptop>,
Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:
>On Fri, 23 Nov 2007 02:33:24 +0000 (UTC), dkcombs@panix.com (David Combs) wrote:
>>In article <mailman.3124.1194518944.18990.help-gnu-emacs@gnu.org>,
>>Peter Dyballa <Peter_Dyballa@Web.DE> wrote:
>>>
>>>Am 08.11.2007 um 05:01 schrieb iluvindo:
>>>
>>>> Hi I recently moved from vim to emacs and need help to search and
>>>> replace
>>>> using line numbers(say between two lines 5 and 50). This can be
>>>> done in vim
>>>> as %5,50s/serah_term/replace_term/gc
>>>> What is equivalent in emacs?
>>>
>>>Activate 'active region highlighting' from Options menu, mark the
>>>region either by dragging with the mouse cursor or with the keyboard
>>>(M-g g 5 RET C-SPC M-g g 50 RET), and then substitute:
>>
>> M-g? So I did C-h k on M-g, and in a mini-or-whatever buffer at
>> screen bottom, a line saying "set-face: default m-g d, ......".
>>
>> My question: how to grab that doc-line?
>
>M-g is a `command prefix'. You can see the help of `M-g g' by typing
>`C-h k M-g g'.
(Sorry for the very-late response!)
As you suggested, I (again) do:
C-h k on Meta(ie esc)-g(as in grep)
and I still get that set-face thing in that one-line window-thingie
down at the very bottom of the screen
, and that's before I even get a chance to enter that *second*
g (In M-g g).
What do *you* get when you try it?
And I do your suggested C-x o (which of course I use
all the time) while sitting there at the end of
that set-face line (*in* that bottom-of-screen one-line window),
and the only effect is to erase that set-face line.
I'm using 21.3.2.
>This opens a new buffer/window, and you can switch to
>that window using `C-x o' (one more more times, if necessary), to copy
>text, move around, etc.
>
>If you are using a GUI version of Emacs, point with your favorite
>pointing device and click somewhere in the help buffer. It will become
>the active buffer, and you can copy text, move around, and so on...
But I'm not in the help buffer! I'm in that little ephemeral bottom-of-screen,
what, "mini window"?
>
>HTH,
>Giorgos
>
next prev parent reply other threads:[~2007-12-16 19:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-08 4:01 vim equivalent in emacs %5,50s/serah_term/replace_term/gc iluvindo
2007-11-08 10:48 ` Peter Dyballa
[not found] ` <mailman.3124.1194518944.18990.help-gnu-emacs@gnu.org>
2007-11-23 2:33 ` David Combs
2007-11-23 2:43 ` Giorgos Keramidas
2007-12-16 19:40 ` David Combs [this message]
2007-12-16 23:08 ` Peter Dyballa
2007-11-23 10:15 ` Peter Dyballa
[not found] ` <mailman.3967.1195812952.18990.help-gnu-emacs@gnu.org>
2007-12-16 19:42 ` David Combs
[not found] <mailman.3119.1194512077.18990.help-gnu-emacs@gnu.org>
2007-11-09 10:18 ` Rupert Swarbrick
2007-11-09 22:53 ` Lennart Borgman (gmail)
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='fk3uuv$kno$1@reader1.panix.com' \
--to=dkcombs@panix.com \
--cc=help-gnu-emacs@gnu.org \
/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.