From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Word Delimited Query Replace Date: Sat, 18 Oct 2008 17:37:03 -0400 Message-ID: References: <878wsl27pv.fsf@jurta.org> <87tzb9sn9m.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224365840 14494 80.91.229.12 (18 Oct 2008 21:37:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Oct 2008 21:37:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 18 23:38:21 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KrJV4-0005Au-Je for ged-emacs-devel@m.gmane.org; Sat, 18 Oct 2008 23:38:18 +0200 Original-Received: from localhost ([127.0.0.1]:45602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrJTz-0000iI-KT for ged-emacs-devel@m.gmane.org; Sat, 18 Oct 2008 17:37:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KrJTw-0000i5-0Q for emacs-devel@gnu.org; Sat, 18 Oct 2008 17:37:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KrJTu-0000hF-J1 for emacs-devel@gnu.org; Sat, 18 Oct 2008 17:37:07 -0400 Original-Received: from [199.232.76.173] (port=40688 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrJTu-0000h6-Cc for emacs-devel@gnu.org; Sat, 18 Oct 2008 17:37:06 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:5879 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KrJTu-0004XA-0v for emacs-devel@gnu.org; Sat, 18 Oct 2008 17:37:06 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiUFALDz+UhMCpQ6/2dsb2JhbACBcr8Vg2yBCg X-IronPort-AV: E=Sophos;i="4.33,441,1220241600"; d="scan'208";a="28560372" Original-Received: from 76-10-148-58.dsl.teksavvy.com (HELO ceviche.home) ([76.10.148.58]) by ironport2-out.teksavvy.com with ESMTP; 18 Oct 2008 17:37:04 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id E947BB4144; Sat, 18 Oct 2008 17:37:03 -0400 (EDT) In-Reply-To: <87tzb9sn9m.fsf@jurta.org> (Juri Linkov's message of "Sat, 18 Oct 2008 22:52:45 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104610 Archived-At: > Currently, M-s w is broken, and I'll will try to fix it. But even > after it is fixed, I think it would be good to provide two ways to run > word replacement from isearch, exactly as we already provide two ways > to run regexp replacement: > regexp search/replace: C-M-s M-% and C-s C-M-% > word search/replace: M-s w M-% and C-s C-u M-% I'd rather discourage the second alternatives. After all, C-s C-M-% is rather odd since it'll use the string you searched as a regexp, so if you were searching for the string "a*b" the replacement will not apply to what isearch matched. >> Also, are you sure your patch works? As far as I can tell, C-u >> currently leaves isearch, and I don't see anything in your patch that >> would change it. > I have isearch-allow-scroll=t, and it allows C-u to not leave isearch. > Perhaps this should be the default behavior. I'd rather not change it. Stefan