From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: PATCH: isearch-yank-until-match Date: Fri, 16 Aug 2019 20:51:16 +0300 Organization: LINKOV.NET Message-ID: <87a7c980ub.fsf@mail.linkov.net> References: <6c21d7af-e071-4c9e-9325-38c6f19794b3@default> <87tvaipa53.fsf@mail.linkov.net> <20b318b8-de76-4e51-8089-4c75585ae77b@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="195555"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Karl Fogel , Emacs developers To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 16 19:53:18 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hygPd-000okq-Jf for ged-emacs-devel@m.gmane.org; Fri, 16 Aug 2019 19:53:18 +0200 Original-Received: from localhost ([::1]:58926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hygPc-000710-CP for ged-emacs-devel@m.gmane.org; Fri, 16 Aug 2019 13:53:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33298) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hygP8-00070q-GJ for emacs-devel@gnu.org; Fri, 16 Aug 2019 13:52:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hygP7-0002fR-Bc for emacs-devel@gnu.org; Fri, 16 Aug 2019 13:52:46 -0400 Original-Received: from bumble.birch.relay.mailchannels.net ([23.83.209.25]:7035) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hygP6-0002eT-SZ for emacs-devel@gnu.org; Fri, 16 Aug 2019 13:52:45 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 50B2F502721; Fri, 16 Aug 2019 17:52:42 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a32.g.dreamhost.com (100-96-10-116.trex.outbound.svc.cluster.local [100.96.10.116]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 95AB7502CFD; Fri, 16 Aug 2019 17:52:41 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a32.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Fri, 16 Aug 2019 17:52:42 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Left-Interest: 6cbf5090101d2775_1565977961855_1594451572 X-MC-Loop-Signature: 1565977961855:54561063 X-MC-Ingress-Time: 1565977961854 Original-Received: from pdx1-sub0-mail-a32.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a32.g.dreamhost.com (Postfix) with ESMTP id 04E047F4B7; Fri, 16 Aug 2019 10:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=IMUqiU3P4Ka+y3CSIkIlVHZz7Oo=; b= Yn+Ova1m6VMH8SucR39Uw0CajNkRmrbDu8hOv7dAnNjGwnKkFO6KgQyQrmAKNG8I dxOkCEAbvWarONARqnZ3TV2dXk9BvCb4wv5ow69E+GtM6iB5yB8wUiPwty0XRqx5 CMdkKs21n4tUlxHoypwu63DFqLI85Qab2oEMgB2jD34= Original-Received: from mail.jurta.org (m91-129-109-163.cust.tele2.ee [91.129.109.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a32.g.dreamhost.com (Postfix) with ESMTPSA id DFE087F4B9; Fri, 16 Aug 2019 10:52:35 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a32 In-Reply-To: <20b318b8-de76-4e51-8089-4c75585ae77b@default> (Drew Adams's message of "Thu, 15 Aug 2019 15:15:28 -0700 (PDT)") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudeffedguddugecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtledrudeifeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdelrdduieefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepughrvgifrdgruggrmhhssehorhgrtghlvgdrtghomhenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.209.25 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239396 Archived-At: >> > I don't think the patch breaks anything (e.g. >> > uses of `isearch-yank-internal' or >> > `isearch-process-search-string'), but I've done >> > limited testing. >> >> Actually it breaks other isearch yank commands. > > Care to elaborate? As I said, I tested it only > briefly. Please let us know what breakage you > found. I don't doubt you, but that info is not > actionable. C-s C-w C-r C-w messes up the search string. But I believe this could be fixed. >> But anyway the idea is clear. I think something >> like this could be added to isearch, but optionally. >> It should not change the current default behavior. > > What default behavior does it change? > > Just what part(s) are you referring to, by "this"? > > Yanking up to the match for another search pattern? > Fixing yanking so it supports also backward search? > > Which part(s) do you think should be only optional? Changing the behavior of yanking in backward search. C-r C-w is still useful to yank forward like it does now. I don't remember when needed to yank backward. Do you use backward yanking often?