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-char Date: Sun, 25 Aug 2019 22:58:21 +0300 Organization: LINKOV.NET Message-ID: <87lfvhow4i.fsf@mail.linkov.net> References: <87tvakfnv4.fsf@red-bean.com> <87lfvvjxjs.fsf@mail.linkov.net> <87sgq1r9rb.fsf@red-bean.com> <87lfvt6m1e.fsf@mail.linkov.net> <877e7256uc.fsf@red-bean.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="88183"; 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: Emacs developers To: Karl Fogel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 25 22:48:05 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 1i1zQj-000MgG-54 for ged-emacs-devel@m.gmane.org; Sun, 25 Aug 2019 22:48:05 +0200 Original-Received: from localhost ([::1]:47864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1zQc-0001hO-08 for ged-emacs-devel@m.gmane.org; Sun, 25 Aug 2019 16:47:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51311) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1zOB-0001eb-W9 for emacs-devel@gnu.org; Sun, 25 Aug 2019 16:45:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1zOA-0006uF-LI for emacs-devel@gnu.org; Sun, 25 Aug 2019 16:45:27 -0400 Original-Received: from anteater.elm.relay.mailchannels.net ([23.83.212.3]:40562) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i1zOA-0006tQ-8F for emacs-devel@gnu.org; Sun, 25 Aug 2019 16:45:26 -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 DC2D41A24D7; Sun, 25 Aug 2019 20:45:23 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a15.g.dreamhost.com (100-96-4-105.trex.outbound.svc.cluster.local [100.96.4.105]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 6F9611A23F6; Sun, 25 Aug 2019 20:45:23 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a15.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); Sun, 25 Aug 2019 20:45:23 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Bitter-Bitter: 73faca481726dd3a_1566765923675_3531195056 X-MC-Loop-Signature: 1566765923675:689301871 X-MC-Ingress-Time: 1566765923675 Original-Received: from pdx1-sub0-mail-a15.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a15.g.dreamhost.com (Postfix) with ESMTP id A14D9831F8; Sun, 25 Aug 2019 13:45:18 -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=BlWn2+64oLKCp5olJ7eOQhrUE/M=; b= doJtsOX0OMpOFrZME6S3ysunFspu5kgUE/rF1EXgzxDsDOxEpPyAg/XDEHbBu62Y NHQAEDWXe1Vknu7PadgK69z8Etk19LdsUCMlcZq4N5q6pr0Mb9Xgi2d11XfpnUGC HkfKoyPolAvVEE78jhe284zmoeMP56DOKLHo4HtDmyQ= 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-a15.g.dreamhost.com (Postfix) with ESMTPSA id A23BE831F6; Sun, 25 Aug 2019 13:45:16 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a15 In-Reply-To: <877e7256uc.fsf@red-bean.com> (Karl Fogel's message of "Sat, 24 Aug 2019 21:14:51 -0500") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudehvddgudehgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtledrudeifeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdelrdduieefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepkhhfohhgvghlsehrvgguqdgsvggrnhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.212.3 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:239560 Archived-At: > Well, I tried setting `isearch-error' in the error case -- instead of using > `message' as the current patch does -- but it didn't seem to have any > useful effect. I just got the "I-search:" prompt back immediately, with no > indication that the character I had typed was not found. Then I tried > keeping the current `message' code and *also* setting `isearch-error', but > that seemed to have no effect either. The result was exactly the same as > the current message behavior. > > So I've left the code as-is; the current patch is attached here. Using `message' is completely fine, I see no problems with it. > (Through the discussion, thanks to you Juri, I also learned about the more > general `isearch-yank-on-move'. For those who deliberately choose that > behavior and won't be confused by it, it's pretty neat! But I think it's > orthogonal to this patch, since the point of this patch is to add > a transparent new behavior within traditional isearch -- that is, > a behavior that won't get in the way or cause any surprises for those who > don't learn about it.) Yes, it's orthogonal. What I also like about isearch-yank-until-char is that an easy way to yank until the end of the line with just `C-M-c C-j' is a replacement of isearch-yank-line.