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: Sat, 4 May 2019 16:56:36 +0200 Message-ID: <20190504145636.34kaiqrji7zxsdhh@Ergus> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="146500"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 Cc: contovob@tcd.ie, Eli Zaretskii , juri@linkov.net, emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 04 16:57:38 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 1hMw6b-000byg-Di for ged-emacs-devel@m.gmane.org; Sat, 04 May 2019 16:57:37 +0200 Original-Received: from localhost ([127.0.0.1]:57674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMw6a-0001QS-Es for ged-emacs-devel@m.gmane.org; Sat, 04 May 2019 10:57:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMw5n-0001QD-Qu for emacs-devel@gnu.org; Sat, 04 May 2019 10:56:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMw5m-00065V-Rt for emacs-devel@gnu.org; Sat, 04 May 2019 10:56:47 -0400 Original-Received: from sonic305-20.consmr.mail.ir2.yahoo.com ([77.238.177.82]:37488) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMw5m-000640-BU for emacs-devel@gnu.org; Sat, 04 May 2019 10:56:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1556981804; bh=Ki/hFNTQMgwgj0OuomjU096TLlyEorZmYp1/A30hPOc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=S+H6Fs6ih+BuKmzypQL+beOQJIxhA0VPxsY9uLglCUrIyiHd2CR8znNwWWy/cK6d52mU989qHhAzwudIUL0l6r7GxtAF94FPKAgGX3/nmoPwGVDsRnoaG4tJXDSMjN5Mq/GoYb+d0g3lWpcKhdzp4lWBq/DpN5/Ra9A3sutyzQoYrPydfaxTbg/UAmnx6HR13/CxcLuSQgTvDWoGUV4ddbmj1ObdIvMueoqhJdOLewvy+4T9AZ3q6HG7tIYoJoTHLhU8s3Y92f1U/Qfc8Ap/gT5z/WNwF3Apg3G8Q2WTuQ94GP4MXcLAnPPzr7eQckLHJdyI1AWOQCBosoz3ATZx9g== X-YMail-OSG: RCiIzwkVM1l7XoMvLKgBCdzxELhB6c01zpdKGQxRu13RMoRCN5XVsVIxkkoA2EX xf7dNaPXUmeCiB9.yAJx6XBdlEiI_gZLdB6m1z0cUow0e.eHaVUD2mi4aOakf1D6j89H27IF0ol1 Yib32XBlYQcKGwZCV1fU_GKTkZP5IIs3r46UO_.JQH0xYSISPjHToPHW1XeaVfYB4vBReQvKxbNn sDEhD14m5UtU27kNet9C_C5fRAPoFdNkJ_A6.M83gV5dIGm6Me0WONmV_CF7vXdaMEYV6xQrr8sh kaOQ6viRF1.cl08neESU9TJGE.3spJHWG5ehtNXSW4upKdPW6r9uIuEjNI4U8mCspkmT4LcVGA54 RktdRjHeOYK.5hG2uo.jdevMt6kwopt9Du3AVHhMP4osy0utE50rX8U3Uppo4Vt9FqzCavXcJBU3 IccR_1KXCRRrIu4iyVB7lpAO6vyeoxvOFkYLd3USRAG5YyFi7wLrVa59cy8Lo7__De8TUmr061pC v7Rmh5lnPpmlul0XU_ISWK4YKm.tzWcanXzLypmP52ha89X1M5bbXQWaRniz2Pj4RO4sH8Ed.L7S _Up.oNQW26t9LWPSCc4HRbG1bpvLidQLUCmZcHz3Rea9ksAuNq80sqMHJf6TiSX8BvVGl8Ej2Fb2 _Tg7Up9VhzXYe3lIM1S8vVWGBm2j4EvnbJKCXQsKYPw_9HzbkfoKz_gNPxhzzybSQeYqmCCHAjkl pBi1IbGQ7VY6vFjwv8.nMQ1Whq56QsjjF5IKtKAXPJmbR_Ohl2sNGvyxSr3SIti_YsWBBM3eo2tH SHuLBry47uvlzxVlRIEs5uM0o8xLdAurkh7Av3o5A0 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ir2.yahoo.com with HTTP; Sat, 4 May 2019 14:56:44 +0000 Original-Received: from 2.152.205.184.dyn.user.ono.com (EHLO Ergus) ([2.152.205.184]) by smtp412.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 81d227fe58d2b82c40f5f94158b3b4ab; Sat, 04 May 2019 14:56:40 +0000 (UTC) Content-Disposition: inline In-Reply-To: <45220b6f-8236-41fa-a520-fd7c562072da@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 77.238.177.82 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:236150 Archived-At: On Sat, May 04, 2019 at 07:17:50AM -0700, Drew Adams wrote: >> This patch has changed a lot because some others made suggestions I >> considered useful. I will attach the new patch in another mail. >> >> On the other hand it makes sense that M-w should be used in case the >> user wants to add the text in the minibuffer to the kill-ring. >> (Something like isearchp-kill-ring-save) >> >> So maybe M-r (region) or M-i (insert) must be used for what I propose >> and Drew may add the isearch-kill-ring-save function he wrote and bind >> it to M-w. That way there will be all the copy functionalities in place. > >I would prefer that, yes. `M-w' to copy to the >kill-ring (as usual). > >Do you need an actual patch to include the command >I sent, or can you please just include it (renaming >prefix `isearchp-' to `isearch-')? > >> But then we must recommend bind M-r or M-i (or whatever) for similar >> functionalities. And if possible correct other modes to be consistent >> with that (if that does not start a religious war here please). > There are similar modes with commands to copy text from region into minibuffer and all them use different bindings. I just propose to unify that somehow when possible. > >Sorry, I don't know what you mean, there. `M-r' is >(and has long been) `isearch-toggle-regexp'. > Sorry, I forgot that, So the only alternative is M-i. >> I will try to do the same for replace-like commands. > >(Not sure what you mean by that, either.) When region is active; replace-string (and related) limits the replaces to the active region. But alternatively we could provide a simple hint that inserts the region text into minibuffer and deactivate it, so instead of limiting the replace to the region, the region can be used as the string to replace. M-w M-% C-y RET => M-% M-i Or similar.