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: Wed, 14 Aug 2019 23:39:17 +0300 Organization: LINKOV.NET Message-ID: <87y2zviiru.fsf@mail.linkov.net> References: <87tvakfnv4.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="82671"; 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: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 14 22:44:35 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 1hy08I-000LMi-Rd for ged-emacs-devel@m.gmane.org; Wed, 14 Aug 2019 22:44:35 +0200 Original-Received: from localhost ([::1]:35922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy08H-00077r-Op for ged-emacs-devel@m.gmane.org; Wed, 14 Aug 2019 16:44:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36710) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy07L-00074R-SW for emacs-devel@gnu.org; Wed, 14 Aug 2019 16:43:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hy07K-0004nG-Ug for emacs-devel@gnu.org; Wed, 14 Aug 2019 16:43:35 -0400 Original-Received: from crocodile.birch.relay.mailchannels.net ([23.83.209.45]:36607) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hy07K-0004my-Mx for emacs-devel@gnu.org; Wed, 14 Aug 2019 16:43:34 -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 355DE1A2AF5; Wed, 14 Aug 2019 20:43:33 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a69.g.dreamhost.com (100-96-30-202.trex.outbound.svc.cluster.local [100.96.30.202]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id AB6D91A0DCD; Wed, 14 Aug 2019 20:43:32 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a69.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); Wed, 14 Aug 2019 20:43:33 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Minister-Relation: 7d3fea5257275fc4_1565815412939_1917953415 X-MC-Loop-Signature: 1565815412939:3180561692 X-MC-Ingress-Time: 1565815412939 Original-Received: from pdx1-sub0-mail-a69.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a69.g.dreamhost.com (Postfix) with ESMTP id A224081F57; Wed, 14 Aug 2019 13:43:30 -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=IrfHmuQGxp30wyNNvKsQeOTPrwo=; b= xEtIctjRfgcqnE3akU5i6HzYjQMu1gLgoa0B33Nv11qXe/x5JXPMUHOlxzz5do9B 2TGhux3Y207rYg4mNGgsz6W6+hGwCRfdcpxyYvQIGi9XmOA4j7WkKtyJlrtQoVlq ny88Gjn2G8l2VUtz7lbcXrDeJxsft5kA3SL9CsWNf3A= 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-a69.g.dreamhost.com (Postfix) with ESMTPSA id 9D8EC81F56; Wed, 14 Aug 2019 13:43:28 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a69 In-Reply-To: (Noam Postavsky's message of "Wed, 14 Aug 2019 13:59:11 -0400") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddruddvledgkeelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdelrdduieefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtledrudeifedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehnphhoshhtrghvshesghhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.209.45 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:239368 Archived-At: >> This patch implements 'isearch-yank-until-char', a new yank command in isearch. >> >> While in an isearch, one types C-M-c to yank into the search string >> everything from point up to (but not including) the next instance of >> a specified character. It prompts for the character. > >> feedback, both about the feature itself and about the choice of M-C-c as the keybinding. > > Maybe M-z (since this new command seems analogous to zap-to-char) > would be more mnemonic? I guess someone might want 'M-z' to quit isearch and zap to the next char. BTW, should the new command use the same function arguments '(arg char)' to be more compatible with 'zap-to-char'? Also I tried 'M-z ' at the end of the buffer and it raises the same error: Debugger entered--Lisp error: (search-failed " ") search-forward(" " nil nil 1) zap-to-char(1 32) funcall-interactively(zap-to-char 1 32) call-interactively(zap-to-char nil nil) command-execute(zap-to-char)