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, 28 Aug 2019 00:31:27 +0300 Organization: LINKOV.NET Message-ID: <87y2zewb0w.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> <604cbbef-7e25-486a-a97a-9bc1adf23928@default> <871rx87b9h.fsf@red-bean.com> <77205e15-f38a-46dc-9451-4030a318900a@default> <874l23ak8m.fsf@red-bean.com> <87a7bvwqg6.fsf@mail.linkov.net> <645496e5-935d-4f9c-9a53-b38a3a83f9fd@default> <87lfvfvabh.fsf@mail.linkov.net> <07fab6f3-3edb-40ae-bdfb-cc699a38f3ac@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="84895"; 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 Tue Aug 27 23:33:42 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 1i2j5y-000LzT-Js for ged-emacs-devel@m.gmane.org; Tue, 27 Aug 2019 23:33:42 +0200 Original-Received: from localhost ([::1]:58798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2j5x-0003p4-Gh for ged-emacs-devel@m.gmane.org; Tue, 27 Aug 2019 17:33:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34051) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2j5r-0003ox-Io for emacs-devel@gnu.org; Tue, 27 Aug 2019 17:33:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2j5q-0005km-1D for emacs-devel@gnu.org; Tue, 27 Aug 2019 17:33:35 -0400 Original-Received: from anteater.elm.relay.mailchannels.net ([23.83.212.3]:53366) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i2j5p-0005iR-KM for emacs-devel@gnu.org; Tue, 27 Aug 2019 17:33:33 -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 B935720CFA; Tue, 27 Aug 2019 21:33:31 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com (100-96-4-156.trex.outbound.svc.cluster.local [100.96.4.156]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 13CA921E91; Tue, 27 Aug 2019 21:33:31 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a50.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); Tue, 27 Aug 2019 21:33:31 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Shade-Name: 3744b4a52e741f14_1566941611353_339721572 X-MC-Loop-Signature: 1566941611352:3497202854 X-MC-Ingress-Time: 1566941611352 Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTP id D0D837F4D4; Tue, 27 Aug 2019 14:33:25 -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=2yOwJmJcqK/YhRb1L2O7tAaTKNY=; b= 0yF1fJLp0ctp/WWSLQHNn44lNJ+3BBFIz54cT/6z6UGcQZERwdpu5bHQ/TOj7YP4 P7aU3lviYvYH64XHF/jrSkX62YsVm2xauInx3r/noqLilf95odOsmq74EKVruWY+ L/gcNVECYHVTloy6Mkp0AsJhCudhNMiGA+8hjfI2uos= Original-Received: from mail.jurta.org (m91-129-108-240.cust.tele2.ee [91.129.108.240]) (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-a50.g.dreamhost.com (Postfix) with ESMTPSA id 395087F49F; Tue, 27 Aug 2019 14:33:22 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a50 In-Reply-To: <07fab6f3-3edb-40ae-bdfb-cc699a38f3ac@default> (Drew Adams's message of "Mon, 26 Aug 2019 15:40:26 -0700 (PDT)") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudehkedgudduvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtkedrvdegtdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdekrddvgedtpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepughrvgifrdgruggrmhhssehorhgrtghlvgdrtghomhenucevlhhushhtvghrufhiiigvpedt 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:239629 Archived-At: >> `M-.' and `C-M-.' are good keys for pulling text >> into the minibuffer, as well as into a search string, >> so let's reserve them for the text pulling feature. > > OK. (But we already have multiple text-pulling > keys for Isearch.) One of its first usages would be to bind `M-s M-.' to a command that turns the active region into the search string. >> > For `isearch-yank-until-char', I'm not partial >> > to any particular key. I'm just partial to not >> > using `C-M-c' for that command. >> >> Then for `isearch-yank-until-char' let's use `C-M-z' >> with mnemonics pointing to its similarity with `M-z' >> (zap-to-char). > > I'm not against it. > > But I don't think it's a super idea to say > that to users, i.e., to give them the idea > that this is closely related to `zap-to-char'. > There are some similarities, but it's not that > close. > > It's OK for its mnemonic utility, but I'm not > sure it's good to explicitly mention `zap-to-char'. > Users of `zap-to-char' will anyway get the > association (without our pointing it out), and > there's no harm in that. We could bind such implementation of skip-to-char: (defun skip-to-char (arg char) (interactive "^p\ncSkip to char: ") (search-forward (char-to-string char) nil nil arg) (forward-char -1)) to the global key `C-M-z': (define-key esc-map "\C-z" 'skip-to-char) Then `C-SPC C-M-z ) M-s M-.' would be another way to yank until next char.