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: query-replace Date: Wed, 31 May 2006 02:22:53 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: <87d5esvvd1.fsf@catnip.gol.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1149043239 6372 80.91.229.2 (31 May 2006 02:40:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 May 2006 02:40:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 31 04:40:35 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FlGdP-0003Uf-1o for geh-help-gnu-emacs@m.gmane.org; Wed, 31 May 2006 04:40:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlGdO-0001ep-LB for geh-help-gnu-emacs@m.gmane.org; Tue, 30 May 2006 22:40:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: panix2.panix.com Original-X-Trace: reader1.panix.com 1149042173 27596 166.84.1.2 (31 May 2006 02:22:53 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Wed, 31 May 2006 02:22:53 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: shelby.stanford.edu gnu.emacs.help:139673 Original-To: help-gnu-emacs@gnu.org 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:35296 Archived-At: In article , Kevin Rodgers wrote: >Miles Bader wrote: >> Kevin Rodgers writes: >>>> Even simpler is M-% _and_ RET _or_ (where the underscores represent >>>> explicit spaces typed into the pattern strings. >>> Which doesn't work if "and" occurs at the beginning or end of a line. >> >> Actually, the simplest way is to just use a `C-u' prefix to the replace >> or query-replace command -- it causes the replacements only be done on >> "word delimited" matches. >> >> So: C-u M-% and RET or RET >> >> (no significant spaces) > >Wow, that is very cool. I can't believe I wasn't aware of that feature. >However, it would be even nicer if the prefix arg changed the prompt >from "Query replace: " to something like "Query replace word(s): ". A *very* good idea! Kevin (since they know you) could you please send the suggestion to the devel-group? Thanks! David