From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: isearch-query-replace-regexp and stuff Date: 07 Jul 2004 21:33:27 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <877jth4e9u.fsf@mail.jurta.org> <87zn6dqei0.fsf@mail.jurta.org> <87eknoifmv.fsf@mail.jurta.org> <87vfgz4qn3.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1089228842 23698 80.91.224.253 (7 Jul 2004 19:34:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jul 2004 19:34:02 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jul 07 21:33:54 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BiIB0-0000qb-00 for ; Wed, 07 Jul 2004 21:33:54 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BiIAz-0007rh-00 for ; Wed, 07 Jul 2004 21:33:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BiID4-0000Y3-PW for emacs-devel@quimby.gnus.org; Wed, 07 Jul 2004 15:36:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BiICs-0000V9-Au for emacs-devel@gnu.org; Wed, 07 Jul 2004 15:35:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BiICq-0000UU-R5 for emacs-devel@gnu.org; Wed, 07 Jul 2004 15:35:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BiICq-0000UI-JE for emacs-devel@gnu.org; Wed, 07 Jul 2004 15:35:48 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BiIAi-00028a-13 for emacs-devel@gnu.org; Wed, 07 Jul 2004 15:33:36 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1BiIAa-00048R-QI; Wed, 07 Jul 2004 15:33:29 -0400 Original-To: Juri Linkov In-Reply-To: <87vfgz4qn3.fsf@mail.jurta.org> Original-Lines: 41 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25533 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25533 Juri Linkov writes: > David Kastrup writes: > > Juri Linkov writes: > >> The current behavior of C-M-s to repeat the non-regexp search is not > >> the most reasonable one. More correct would be to switch the search > >> to regexp mode before doing the search again. I guess it works now > >> that way because it was simpler to implement and nobody cared about > >> handling this case specially. But we could change the behavior of > >> C-M-s in non-regexp mode to switch to regexp mode for consistency > >> with C-M-%. > > > > But that's inconsistent with being able to use both C-s and M-C-s in > > regexp searches. > > > > Don't you see that? > > You can see the following comments for `isearch-mode-map' in isearch.el > (underlining is mine): > > ;; Define M-C-s and M-C-r like C-s and C-r so that the same key > ;; combinations can be used to repeat regexp isearches that can > ================ > ;; be used to start these searches. > > So the meaning of C-M-s in a non-regexp search is still undefined, Because of some internal comment? > and the fact that C-M-s can repeat a non-regexp search is a side > effect of the current implementation. If you want to call explicitly coded "consistency" a side effect. > And there is no symmetry between normal and regexp searches Not? Considering that both behave the same with regard to C-s and C-M-s I would think there was. And intentionally so. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum