From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: Simple isearch concerns Date: Tue, 6 Apr 2021 00:37:43 +0200 Message-ID: <20210405223743.omtkzgomchz4o4ly@Ergus> References: <20210403001539.x4rb55dvh46rmhb3.ref@Ergus> <20210403001539.x4rb55dvh46rmhb3@Ergus> <878s5wmsjp.fsf@mail.linkov.net> <87pmz8h0sn.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10466"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Drew Adams , "emacs-devel@gnu.org" To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 06 00:39:00 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 1lTXs3-0002bg-In for ged-emacs-devel@m.gmane-mx.org; Tue, 06 Apr 2021 00:38:59 +0200 Original-Received: from localhost ([::1]:38396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTXs2-0007iT-JJ for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Apr 2021 18:38:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTXrF-0007I6-JP for emacs-devel@gnu.org; Mon, 05 Apr 2021 18:38:09 -0400 Original-Received: from sonic311-24.consmr.mail.ne1.yahoo.com ([66.163.188.205]:43172) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTXrD-0005cc-Gh for emacs-devel@gnu.org; Mon, 05 Apr 2021 18:38:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1617662285; bh=cuvOWtDhOnVgP3STa2At78V+vYL3k2AF9haHQixSCPU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=RMcU8gIUDh7A/oWu6qVIbL6BC8aGkCkunEMwVb4uDBpUBh9EpJHtACTm6XKeAbqxV1z45CXan8cGNknHQps0AS6kXF1ZiqPZX3WCETGmVm2UVTWJ45M+Xv3+6/9FpgqYBsmcsw9JKE1Fgq+HDa4CpkFaxQ98jdGq1otcFPicb+5QqyTXwGao6X5xnIhd4QuHQ1K8iZu+lMg0gKEaaQ18/SkKt8wg3lcv23qjrsT79qK+RZMVIvrv0KqyEWeYKfqi7UTThuEAotcoJgjgqVYKe53sBi46/C9hfCCqTj9wtIfMEQd3pKPncI4pGx1j6R4z9dguKqcjLpZxXd71uXpzRA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1617662285; bh=Hr0jQ7h1kO7FGo1VvJ0HNAg+TbzvJzSN5jo35kbko1w=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=ljnAERXWu0T8LMZ1Y7JkvCRG6NHSxLA4lpkWqvc6X+4fDOgIkA/knymAWB4GOQmL15m6KK7SuL5a/k62sxJDrwrqpJxagSNGRVRPBOUys+7eY20v9DO3GvEl+LEuX9uhlbrWUddEhdR9TN3fYGpvbIX0BmsZ1RczR2akPnesN/ZQn52b3+vsRQhBove/5PSFSS++brGMYUfAAiEfbNbvM+ml0nPF7GIknClJGeKWdkWPJSzoK3YKa8rQNjq040VySHq7lEBGkP8tkU3DGBrZnfsZ569BRVFPRC92n+jYB+YDsQowcKJfYWNWpcxR1ZV4WUDPKen4ZEkn50wItq7Wow== X-YMail-OSG: cET0xDYVM1k6xl14V8w_nRyZ4WvEqdQWOxZE6Ag4cVb4OCnYzjlJrdHBIoMzkzh 9vemY8nIGZqysnV4cAr5ihVd1gVihs4TDjsVj5ta.TJ6SHbt4dxCzXx9B_YTgK12E9a__s465Z0G JTJt8D3VLX6qTbjPCwtfIUBwccO6CNOgOKsxa76WZl3_RHhKL6G9uA2L2m9q4r64yJltknOkwECQ Pg5mRtjqI3NYpGCQfmmorQthQENnNyK5CUFOKrYwjV_ngk1Yuo083KwWnJ4cpfgHFU_sOp0JmTKZ v2HzZBgZeryXsKMdl3DQl1a0u5X.PTEPIn5ncS8tTov30k8pbKc7WKg9BqQ_y7v6BzwCpuLUqj4G fDDhLfw8f7ayb3KQ0_xVBFAV8HL_YUiAhUNSLfsHKpmpQcwOAs6XgAHdX3CKc6Inv1i1hNPIvt1o pJZieVJU.wDes2p5_dc0PElGGgQzVDYrXQa.LXDgukWgJD3jcNgSWteXGsU06iXtnsu_CEemiZNk BUs5CeD28aLjYnAJuK7o9LbczcdAddSVbzcCitS6l_QomU7EPb2FFTcKtFPyRxsIm3LGNpNJBVgv vsioDSaoQ6asHNd4C7lxqevwKKbJGuWAgRzGiBs0SiJ9S4_AYPjzdd1ol_YbcmKfuMu1aK3unizh OD.WXc5FtuNPD8gSHFCb.i5Ndu38vKYUKJh3dPn6e0GbdJN5m6kt8ucrhvIVQvhb3MC3KKfqY6LQ 3HW0_i7PW8DfDFAL4I1TH0wB2rVV6Wn2qheblF4Mh7clhnebCe3Sm1pOXv2tsn5EtbFwIF0Tofef 5_vbDVZ2OsfInoEtsx4Vpr6sJYZReNTUZZcIziMMgG X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Mon, 5 Apr 2021 22:38:05 +0000 Original-Received: by kubenode532.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID a0f955a46221213464d44562e68a572f; Mon, 05 Apr 2021 22:38:01 +0000 (UTC) Content-Disposition: inline In-Reply-To: <87pmz8h0sn.fsf@mail.linkov.net> X-Mailer: WebService/1.1.17936 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/16) Received-SPF: pass client-ip=66.163.188.205; envelope-from=spacibba@aol.com; helo=sonic311-24.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:267445 Archived-At: On Tue, Apr 06, 2021 at 12:35:52AM +0300, Juri Linkov wrote: >>> As you see from the discussion, adding a defcustom makes little sense, >>> because this feature might be needed only occasionally, so better >>> to be bound to a special key, e.g. C-RET to exit and move to other-end, >>> S-RET to exit and mark the found string as a region. >> >> In particular, I'm not in favor of adding keys for >> exiting + performing an action. > >I meant that these keys can easily be bound by users. > >> Better to add keys for toggling some search behavior, and leave >> exiting keys as they are. > >In bug#39512 we already developed a command bound to 'M-s M-.' >to pull the active region to the search string. > >Now we could add a command that sets the region from the search string. Is it possible to make this in a way that some commands could be bound in a way that the prefix M-s won't be needed sometimes when isearch is active? (I mean a custom option of course) That could be more handy for some users. Because `M-s C-RET` is not faster than `C-r RET`. The same applies to `M-s M-<` and `M-s M->`. And maybe for some future commands like the ones Gregory mentioned some days ago like go to candidate outside visible the page and so on in M-v and C-v. Maybe we can add a map with some extra commands and then bind the map in the isearch-mode-map with and without prefix conditionally? Does it makes sense?.