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 14:15:26 +0200 Message-ID: <20190504121526.mslnh3xqgc64dy7t@Ergus> References: <20190427001453.isjx247kc3lu5fe4@Ergus> <87a7gcp51i.fsf@tcd.ie> <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> 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="17563"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 Cc: contovob@tcd.ie, emacs-devel@gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 04 14:15:44 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 1hMtZu-0004OE-Di for ged-emacs-devel@m.gmane.org; Sat, 04 May 2019 14:15:42 +0200 Original-Received: from localhost ([127.0.0.1]:55825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMtZt-0006ZK-9x for ged-emacs-devel@m.gmane.org; Sat, 04 May 2019 08:15:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMtZm-0006ZF-AX for emacs-devel@gnu.org; Sat, 04 May 2019 08:15:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMtZl-0001KP-Ej for emacs-devel@gnu.org; Sat, 04 May 2019 08:15:34 -0400 Original-Received: from sonic314-19.consmr.mail.ir2.yahoo.com ([77.238.177.145]:34929) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMtZl-0001Ja-40 for emacs-devel@gnu.org; Sat, 04 May 2019 08:15:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1556972130; bh=HXCnusiKy+/dr2tYA/Hg/AStQb5PTdj+4YXcNoYFE1s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=G/21LcCh5Ys2e2UBOyAxGXmlCeZlptpm9VsofECbu/G+SsKKa/iYHpKWeVxjw3oI05q8Q2ryVjZMhvqAGtngs24A41MiHTaYYbK+iHaj15zoRokx4ZaHO0Ptp/COlqlMySscB5v0qZEm9Gc7bJInvozltLAburc7DB9r7NpKzkmjKzwIXRK8i6+wCVBF25G0G/pzlmF/2y2/F9DYeM22Bf8sPqnatRp7ox9ugsElE1wJF8o/aPrtULBxPqTuJ+pADqoeDvMR3Xm7S1Vv6RKeLEIwAx07Oe5OapdzsyCwKGi/qzesGIlWB/Amcvfr+QQLKtlQL1sXLp9P/OkgT3UlgQ== X-YMail-OSG: o597txYVM1kxut8A2ajpwMZY6RBukMjHnqYVV_wmXvraodd_sVhuGI_RcIrQ7An WIvJ1nG.3kOdyaBzWCd664QZuFmGdrWf1dIuIHPO4OH1tGgHjYEgip8N.gvwciBjoMhCylpX.ROv o.ZuVHYD7HFuneYGsma3XEvW08U3JSiwNusVXeLCcC3MdobqbBT68E838ELF.XKiuilUY9KKzjdU SCBS1Q9gtCaIj1g7ocS3fz9w_vuCsZUrfuJHRB2eY6BetPkthTx6GyKuY90rE5YObhDhFgsMUjmL 9KUmSfiHAoOCfoSQt.tXRAiGOxMwxVWKiprE8.WOo0T3Xz73O2i_76jQ7UPHbHy6Fp4_ZilKZc.n WB2EsvRBbRK3csJckPcANrQrYnQK.nDi5c2Ff.UjXLhje5yqutj7t27Y3WYqgUFcJztRrJjg.euX tcx1Mi6IzCC0WNK8n72wfbSrrIgW22WhCQ.I.P.MspZtA55M_SOQyXicKgIWphmbzYweaIiUlIaU 1FqhGJc5Gzypzs0boliliYNyvzNWXu4y.dxxy7lRiSkdvQ4jLSooNEzE_6VnSRvSpsjqkoSxFq6D 67frMQBP.CeHm9hrsgRQ750C1qatC61Ym7fI.Ydy9znNoJIWMhCxmW9zhOrwZcpml9Tb8WQUno.D PyVtDytOkH3YEBZoc0icLXUa3tEF0G_u3BOJcEMUC2rH3zA_mgXUjqtLXoxF29NZOe4Oei4ovpH6 7ckstZPf2E2Kzs4LYRdVADmDG2g4wzqtwqdhqF8h7kdNZAc1Y2PsgF5OZj8H9j_gvoO9by212YUs pbREZcDglU.isrmruYjeJoubQS99NOg9EvXx1igy9U Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ir2.yahoo.com with HTTP; Sat, 4 May 2019 12:15:30 +0000 Original-Received: from 2.152.205.184.dyn.user.ono.com (EHLO Ergus) ([2.152.205.184]) by smtp429.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9f7d74a73f0e0509ee58cd91fed04074; Sat, 04 May 2019 12:15:29 +0000 (UTC) Content-Disposition: inline In-Reply-To: <83y33mlgdb.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 77.238.177.145 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:236147 Archived-At: Hi Eli: 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. 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). I will try to do the same for replace-like commands. On Sat, May 04, 2019 at 12:26:56PM +0300, Eli Zaretskii wrote: >> Date: Wed, 1 May 2019 13:20:25 +0200 >> From: Ergus >> Cc: Juri Linkov , emacs-devel@gnu.org >> >> +@kindex M-w @r{(Incremental search)} >> +@findex isearch-yank-region >> + @kbd{M-w} (@code{isearch-yank-region}) appends the text in the >> +active region if @code{transient-mark-mode} is @code{non-nil}. This is >> +an easy way to insert the text in the region without needing to exit >> +@code{isearch-mode}. The region is deactivated during the search, but >> +it is reactivated if the @code{isearch-cancel} is called. > >Please leave 2 spaces between sentences in all documentation and >comments. > >> + ;; set it to nil so that isearch's messages don't get timed out. > >Comments should start with a capital letter. > >Thanks.