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: Fri, 23 Nov 2007 02:33:24 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: <13640969.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1195785704 18938 80.91.229.12 (23 Nov 2007 02:41:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Nov 2007 02:41:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 23 03:41:52 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 1IvOUJ-0003Et-A3 for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Nov 2007 03:41:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IvOU5-0005t5-3G for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Nov 2007 21:41:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader1.panix.com 1195785204 7198 166.84.1.3 (23 Nov 2007 02:33:24 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Fri, 23 Nov 2007 02:33:24 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: shelby.stanford.edu gnu.emacs.help:153993 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:49423 Archived-At: 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? Trying to regionize it kills it, nor does it seem to be in *Messages*. Thanks!, David