From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Simple isearch concerns Date: Fri, 09 Apr 2021 22:01:13 +0300 Message-ID: <83eefj705i.fsf@gnu.org> References: <20210403001539.x4rb55dvh46rmhb3.ref@Ergus> <20210403001539.x4rb55dvh46rmhb3@Ergus> <878s5wmsjp.fsf@mail.linkov.net> <87mtubz4ls.fsf@mail.linkov.net> <8735w22s9b.fsf@mail.linkov.net> <3ec7e2e58a3733a48ae9@heytings.org> <878s5tc0rn.fsf@mail.linkov.net> <3ec7e2e58a49d4f0ec99@heytings.org> <878s5t9p1i.fsf@mail.linkov.net> <9ff81b52fad2911cc740@heytings.org> <87im4w1tgw.fsf@mail.linkov.net> <9ff81b52fa878cb35a86@heytings.org> <87pmz4zgn5.fsf@mail.linkov.net> <83eefk802u.fsf@gnu.org> <871rbjdea4.fsf@mail.linkov.net> <8335vz91en.fsf@gnu.org> <940751cee594ef1cf8a4@heytings.org> <83zgy77hep.fsf@gnu.org> <940751cee566285b8519@heytings.org> <83wntb7eli.fsf@gnu.org> <940751cee50d69f2231d@heytings.org> <83r1jj7bhg.fsf@gnu.org> <940751cee5acf0f913df@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29887"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spacibba@aol.com, emacs-devel@gnu.org, juri@linkov.net To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 09 21:02:40 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUwOu-0007i3-9Q for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 21:02:40 +0200 Original-Received: from localhost ([::1]:48686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUwOt-0004sa-7v for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 15:02:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUwNm-0004GS-3M for emacs-devel@gnu.org; Fri, 09 Apr 2021 15:01:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57196) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUwNl-0008Cz-GJ; Fri, 09 Apr 2021 15:01:29 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3879 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lUwNk-000391-Hj; Fri, 09 Apr 2021 15:01:29 -0400 In-Reply-To: <940751cee5acf0f913df@heytings.org> (message from Gregory Heytings on Fri, 09 Apr 2021 15:25:08 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:267742 Archived-At: > Date: Fri, 09 Apr 2021 15:25:08 +0000 > From: Gregory Heytings > cc: spacibba@aol.com, juri@linkov.net, emacs-devel@gnu.org > > > After the first "M-s M->", why do you keep pressing "M-x M->"? why not > > C-s? > > Why would it not be possible to jump to the last occurrence in the buffer > when searching forward? You've lost me here: I cannot see how your question answers mine. > Do I understand correctly that what you would have wanted is the > following: > > 1. M-s M-< after C-s: point after the first occurrence (search direction forward) > 2. M-s M-> after C-s: point after the last occurrence (search direction forward) > 3. M-s M-< after C-r: point before the first occurrence (search direction backward) > 4. M-s M-> after C-r: point before the last occurrence (search direction backward) Yes. > What we have now is 1 and 4, but not 2 and 3, what we have instead is: > > 2. M-s M-> after C-s: point before the last occurrence (search direction backward) > 3. M-s M-< after C-r: point after the first occurrence (search direction backward) > > Is this subtle nuance really important? IMO, yes. I don't think M-s M-> and M-s M-< should change the search direction. Doing so second-guesses what the user intends to do, but we have no business second-guessing that. > Isn't the most likely search direction one would want to use at BOB > forward, and at EOB backward? No, not necessarily. I frequently have to change direction because I want to revisit previously found matches, and the direction I want to use next depends on what I'm looking for. It doesn't necessarily stay the same for long.