From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: vim equivalent in emacs %5,50s/serah_term/replace_term/gc Date: Sun, 16 Dec 2007 19:40:15 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: <13640969.post@talk.nabble.com> <87y7cpwujb.fsf@kobe.laptop> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1197834576 14483 80.91.229.12 (16 Dec 2007 19:49:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2007 19:49:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 16 20:49:47 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J3zU9-0008Bj-K2 for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Dec 2007 20:49:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J3zSx-0002Zn-6f for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Dec 2007 14:47:59 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 69 Original-NNTP-Posting-Host: panix2.panix.com Original-X-Trace: reader1.panix.com 1197834015 21240 166.84.1.2 (16 Dec 2007 19:40:15 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Sun, 16 Dec 2007 19:40:15 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: shelby.stanford.edu gnu.emacs.help:154696 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50124 Archived-At: In article <87y7cpwujb.fsf@kobe.laptop>, Giorgos Keramidas wrote: >On Fri, 23 Nov 2007 02:33:24 +0000 (UTC), dkcombs@panix.com (David Combs) wrote: >>In article , >>Peter Dyballa 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 >