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: #1: How to do vi's 'g/foo/s/x/y/' #2: + with a Q-R "yes/no?" Date: 7 Apr 2007 13:51:52 -0400 Organization: PANIX -- Public Access Networks Corp. Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1175973173 21928 80.91.229.12 (7 Apr 2007 19:12:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Apr 2007 19:12:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 07 21:11:57 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 1HaFmD-0008Tw-1H for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Apr 2007 20:36:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HaFpp-0003lG-A4 for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Apr 2007 14:40:25 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!panix!panix2.panix.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: panix2.panix.com Original-X-Trace: reader2.panix.com 1175968312 5099 166.84.1.2 (7 Apr 2007 17:51:52 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Sat, 7 Apr 2007 17:51:52 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:146872 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:42477 Archived-At: (1) How to do, in gnu-emacs, vi's 'g/foo/s/x/y/': That is, "on all lines that contain regexp "foo", change x to y. And maybe also with option: only the first one on that line, or all of them? (2) Same as above, BUT WITH A QUERY-REPLACE-LIKE "YES|NO|!|etc" prompt. (No, I believe that vi-emulator .el-package does NOT implement vi's "g/pat//" (Sure would be nice if it did!) Thanks so very much! David