From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: RE: isearch region or thing at point. Date: Tue, 07 May 2019 21:56:50 +0200 Message-ID: References: <20190429004135.rn5tp2gnmbjovrxj@Ergus> <87h8agy4yf.fsf@mail.linkov.net> <20190430162501.xmqh5r5h57sjjlq5@Ergus> <87h8af15kg.fsf@tcd.ie> <20190430231614.l423x6eqta5fbhor@Ergus> <874l6f132f.fsf@tcd.ie> <20190501112025.fnsynkbmkvllapyv@Ergus> <83y33mlgdb.fsf@gnu.org> <20190504121526.mslnh3xqgc64dy7t@Ergus> <45220b6f-8236-41fa-a520-fd7c562072da@default> <20190504145636.34kaiqrji7zxsdhh@Ergus> <19478b8e-f8cb-48cd-9231-dd82b42b734b@default> <87sgtuszek.fsf@mail.linkov.net> <8096bd54-4505-481c-9f8a-deeff33df2ac@default> <87lfzjtlos.fsf@mail.linkov.net> <3f55cb2e-9b62-4559-9266-2fe4d9250524@default> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----E1OGYX7KTWBQ3TANKW53QNPHVIAEYL" Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="264340"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: K-9 Mail for Android Cc: contovob@tcd.ie, Eli Zaretskii To: emacs-devel@gnu.org, Drew Adams , Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 07 21:58:26 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hO6EL-0016cV-2V for ged-emacs-devel@m.gmane.org; Tue, 07 May 2019 21:58:25 +0200 Original-Received: from localhost ([127.0.0.1]:52756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO6EJ-0004oE-TC for ged-emacs-devel@m.gmane.org; Tue, 07 May 2019 15:58:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO6Cz-0004mo-N6 for emacs-devel@gnu.org; Tue, 07 May 2019 15:57:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hO6Cy-000460-AU for emacs-devel@gnu.org; Tue, 07 May 2019 15:57:01 -0400 Original-Received: from sonic308-18.consmr.mail.ir2.yahoo.com ([77.238.178.146]:35403) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hO6Cx-00044P-Ts for emacs-devel@gnu.org; Tue, 07 May 2019 15:57:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1557259018; bh=dVU/J2+MwCy52xTTWsiJdaWWEgpVNx+5uu6evFmaVG8=; h=Date:In-Reply-To:References:Subject:To:From:From:Subject; b=sTJu6Oxi9XbWklz7M3A0+pI7T/lOz4DCLBVoC1qNrqCAKo2nWVXLwCOUsi8FVayvSDF1qE2SnFql9gwKNLZ1ZDKlMWawt+vu6lzPtXTfY3q8p0jmTc9QxSsX1M9NKTIZ/sCPUE7Z3kGXo+G7WO+3fMG14ffPk4ONsVWrRTMmA3quatk8jNk28iqPOWeq41qrpFjxyW44+PkZV+iAwrukxFOkfTEhalJk+PiX43rFkdauyLrQZKeDy8o7GZz/vl0kMrB3mxUehHt1MOLCZsPrMAG7jburoxtgTkTols8syQvsnj8Oue9CgcJFNAwEA5Ur/pFhQdkQIGuwI5mFSH2oiQ== X-YMail-OSG: HLMBZz4VM1kuIeqKsE5McJPiJwWnZOd9EHPLhbpB1T9bKnU5Wo1wMgVfX2B21Ur QZICdgOQ8Ai7hS7i5BMxmN5xKkX4ER.RVdx8JRESJGxNxLup9GcYclpnCQjgwNiPJ5CxMq_2VvNb CyOYm9f_49F_WIosVpgnpLhHeQpvWy2D84Yy6cnK22cJu6YgarGPL7csbdvfSRchjSBoFsADBZ8R 91wyEClb2wX3ximVju2W4s6Nnvq1Zy7Ys7dLTiBvHYtAh8OxnQw5OMeYWvKrFBM52BS06GJeNOCO SNztN8vhoYFsjvrJe5dR4pOa3jM5.z9.spHvHI3lDlRAz3nTOzZzWkdVW_Qphv5Fz1H4AaJX9gPs VpmFNeTxQxB4.VkxdiUv0ZffqPHnD_1WKuF.HtaigBcJbgGNafgjFL44Q8Nx5cUysamTHYhcsCoY ADtzL0wRDNo4Z6z4y0hRW20kwEbPYLvUAjenb0lXCtD9ItG4OZ605o.4UNWhT3Iab5owUOwK5iw_ Sv8q1w_xk.fThR9LSru8S.B6bbeezeDBZtcepxktkoGR1jF.bhQIovXkvZtE8prMLAC3N83rPqeX EtdiKMORNsoJ9kMRIgJ5.w2gLUq4CYwXfGOEIzjz_z9BvblArQRoc8A.g.FCsftopp5xPFx0wfMY XCXFaRuRLIId2S2njSSB0eXHDSvu5aIa5jlta4C__QPRwFBK82_OBf9QVhdZXM8HN5Ulgy5NHidq 5MRR0s0s.HFIfKh0J6QmdeJ0jdPcbcDxiH08gDullsmt5heZ.yIwkT3gB8ZViakEg8CtbvF4Yb1m ppyepCv8XsRl0z.QAAbsfN9Yqh1TEWvRH5fS1h4OhR Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ir2.yahoo.com with HTTP; Tue, 7 May 2019 19:56:58 +0000 Original-Received: from 2.152.205.184.dyn.user.ono.com (EHLO [192.168.1.44]) ([2.152.205.184]) by smtp419.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID e61b96c75d3f01f4e9831a134ac3a2c6; Tue, 07 May 2019 19:56:54 +0000 (UTC) In-Reply-To: <3f55cb2e-9b62-4559-9266-2fe4d9250524@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 77.238.178.146 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:236261 Archived-At: ------E1OGYX7KTWBQ3TANKW53QNPHVIAEYL Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi again=2E I have been thinking about an alternative=2E If we redefine isearch thing = at point as region or thing at point=2E Meaning that if a region is active = use it, else then try thing/symbol around point=2E=2E=2E and we reuse the k= ey bindings=2E Is it a bad idea that conflicts with something? On May 7, 2019 4:56:47 AM GMT+02:00, Drew Adams wrote: >> >> > It would be good to "standardize" bindings - say >> >> > reserve `M-w' (e=2Eg=2E on a prefix key) for the >> >> > "copy-region" (or similar) action >> >> >> >> I remember you had a key to grab the region into the minibuffer=2E >> >> This is what Ergus wants=2E >> > >> > I don't think this thread is about grabbing the region >> > text into the minibuffer=2E Ergus grabs it into Isearch >> > as the search string=2E >> > >> > And I don't think I have a command that grabs the >> > region into the minibuffer=2E >>=20 >> Maybe the same key, e=2Eg=2E 'M-=2E' could be used to grab >> the region into the search string, into the query-replace >> prompt, or into the minibuffer? > >Maybe=2E > >If you meant `M-=2E' then maybe you were thinking of my >binding of `M-=2E' in Icicles=2E It does pull buffer text >into the minibuffer (appends it there, so you can use it >to insert multiple things into the same minibuffer)=2E > >It really has nothing to do with completion (hence with >most of the rest of Icicles) - you can use it with any >minibuffer, whether reading with or without completion=2E > >My `M-=2E' does not pick up the text of the active region, >however (it could be made to, but it doesn't do that now)=2E > >Instead, it picks up existing buffer text starting at >point (either or both directions)=2E You can pick up >multiple consecutive occurrences of a given kind of >thing, or you can pick up a given kind of thing, >choosing the kind by cycling among THING choices=2E > >The doc is here: > >https://www=2Eemacswiki=2Eorg/emacs/Icicles_-_Inserting_Text_from_Cursor > >Perhaps it can serve as food for thought=2E It would be >simple to integrate the possibility of picking up the >region text when the region is active, as an alternative=2E --=20 Enviado desde mi dispositivo Android con K-9 Mail=2E Por favor, disculpa m= i brevedad=2E ------E1OGYX7KTWBQ3TANKW53QNPHVIAEYL Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi again=2E

I have been thinking about an a= lternative=2E If we redefine isearch thing at point as region or thing at p= oint=2E Meaning that if a region is active use it, else then try thing/symb= ol around point=2E=2E=2E and we reuse the key bindings=2E Is it a bad idea = that conflicts with something?

On May 7, = 2019 4:56:47 AM GMT+02:00, Drew Adams <drew=2Eadams@oracle=2Ecom> wro= te:
It wou= ld be good to "standardize" bindings - say
reserve `M-w' (e=2Eg=2E on a = prefix key) for the
"copy-region" (or similar) action
I remember you had a key to grab the region into the minibuffer=2E
T= his is what Ergus wants=2E

I don't think this thread i= s about grabbing the region
text into the minibuffer=2E Ergus grabs it= into Isearch
as the search string=2E

And I don't think I have = a command that grabs the
region into the minibuffer=2E
=
Maybe the same key, e=2Eg=2E 'M-=2E' could be used to grab
the regio= n into the search string, into the query-replace
prompt, or into the min= ibuffer?

Maybe=2E

If you meant `M-=2E' then mayb= e you were thinking of my
binding of `M-=2E' in Icicles=2E It does pull= buffer text
into the minibuffer (appends it there, so you can use itto insert multiple things into the same minibuffer)=2E

It really ha= s nothing to do with completion (hence with
most of the rest of Icicles)= - you can use it with any
minibuffer, whether reading with or without c= ompletion=2E

My `M-=2E' does not pick up the text of the active regi= on,
however (it could be made to, but it doesn't do that now)=2E

= Instead, it picks up existing buffer text starting at
point (either or b= oth directions)=2E You can pick up
multiple consecutive occurrences of = a given kind of
thing, or you can pick up a given kind of thing,
choo= sing the kind by cycling among THING choices=2E

The doc is here:
=
https://www=2Eemacswiki=2Eorg/emacs/Icicles_-_Inserting_Text_= from_Cursor

Perhaps it can serve as food for thought=2E It woul= d be
simple to integrate the possibility of picking up the
region tex= t when the region is active, as an alternative=2E


--
Enviado desde mi dispositivo Android con K-9 Mail=2E Por = favor, disculpa mi brevedad=2E ------E1OGYX7KTWBQ3TANKW53QNPHVIAEYL--