From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.devel Subject: Re: Recentish C-s M-y change Date: Thu, 31 Dec 2020 20:09:26 +0300 Message-ID: References: <87r1na4tyu.fsf@gnus.org> <87tus6tj7s.fsf@mail.linkov.net> <87a6txigm1.fsf@gnus.org> <874kk5lzew.fsf@mail.linkov.net> <87eej8ifll.fsf@mail.linkov.net> <87h7o3k5b5.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36874"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 31 18:10:46 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kv1TK-0009U0-EI for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Dec 2020 18:10:46 +0100 Original-Received: from localhost ([::1]:59174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kv1TJ-0007md-Gd for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Dec 2020 12:10:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kv1S9-000744-LB for emacs-devel@gnu.org; Thu, 31 Dec 2020 12:09:33 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:54067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kv1S7-0004NR-OI for emacs-devel@gnu.org; Thu, 31 Dec 2020 12:09:33 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 62C3D5C01BA; Thu, 31 Dec 2020 12:09:29 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 31 Dec 2020 12:09:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=S5/S7FXac8rdkUUUhZkq50Wdfz LtHy7rYzQI6nU1Ya8=; b=YkOn5cViWeC4KcKQK7Gm8OjGDKgY1Jqu0Tm8ab/g9+ jQ4RUu+PEhtMIcytnGYjAZifSaNXLceX/uO7jDXTsil8YFQjLuDhlaAykGD0x0Le CLOvhLmJJ5fnucD0dgnpT3JIVdZQMCLK6lOeXq6k8eoToX4OsO0Kk0aB8/kVkOSh x0YX314QtqNkSTCbV8ltO+KveoU1RojvYb6Tq9OM/eaUxvaUHkznMt3jqsgSdAEN OItby3ja4y24xHWtYJDoH2GHO3+Oq9vI3Y+X+8oN9aSYQl6vmtYta4afk9KpZhUy Wrt+sh13zFBA2deOfuD8Lc13G5L3hJPXOYPPON0DFoWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=S5/S7F Xac8rdkUUUhZkq50WdfzLtHy7rYzQI6nU1Ya8=; b=iDT4wi+8rmUXNjomzJQSjR IgmdaUgStE8nGfgZcd+EgdkGCgFuhQjKg/BRvPJc5K0R69MT+KZzCFFJ1Xb01AOL PWc5A0Opp9LekxVdthJhGiwf/CfqgLUmvOK7FjwtPjWSCOXtA+sJF++EgRKljnNk lLHroyfkzmRPgs09miQfQv0vT90vsCb/qZt1HNB98Dghmd5rdU0HFgWitEJWMHLl mBczXoO1pRbgvTNuP17tHo16djiyI5+8g6jj/8zY9hRRucjSP5eJd5Nh/MSgkXAX D2lE5JkuLsauEhWOMvKPemWLeNgGU95q2HKdxx6uTTVV9f2esU6s7y1gb97SswPg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddvhedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhgffffkgggtsehttdertddtredtnecuhfhrohhmpefhihhlihhp phcuifhunhgsihhnuceofhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmheqnecuggftrf grthhtvghrnhepvdevkeffvdeuvefhuddtjeehkedvueefveettddtveduudfgieffieev ieevhfdtnecukfhppeekgedrvddtgedrudelfedruddtieenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehfghhunhgsihhnsehfrghsthhmrghi lhdrfhhm X-ME-Proxy: Original-Received: from fgunbin.local (unknown [84.204.193.106]) by mail.messagingengine.com (Postfix) with ESMTPA id A25EF24005B; Thu, 31 Dec 2020 12:09:28 -0500 (EST) In-Reply-To: (Gregory Heytings's message of "Thu, 31 Dec 2020 15:18:41 +0000") Mail-Followup-To: Gregory Heytings , emacs-devel@gnu.org Received-SPF: pass client-ip=66.111.4.28; envelope-from=fgunbin@fastmail.fm; helo=out4-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, GAPPY_SUBJECT=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262184 Archived-At: On 31/12/2020 15:18 +0000, Gregory Heytings wrote: >>> Would it not be possible to use C-u to have both behaviors? With the >>> following code C-s C-y M-y... and C-s M-y M-y... work as before, and >>> C-s C-u C-y and C-s C-u M-y use the new feature. >> >> Looks overly complex >> > > What is "overly complex"? The "u" and "y" keys are next to each other on > most keyboards. I was referring to the usage of prefix arg in subcommands. > There are not many possible solutions if we want to make that new feature, > which I think is a useful one, accessible without changing the keymap too > much. C-y, M-y and C-M-y are already bound. Using TAB as you suggested > does not seem to be a good solution, newcomers would have to learn that > searching for TAB requires a C-q. I suggested TAB because a second TAB would conveniently show *Completions* with alternatives from the kill ring. Yet you're right, having to enter C-q to search for tab *character* may be confusing for newcomers. > Another solution would be to use C-S-y or M-S-y. > > But I do believe that C-u is better, the universal argument is commonly > used to select between different behaviors in Emacs, and is in particular > already used to start a regexp isearch and a regular isearch. > >> >> and currently "sub-commands" (bound to keys in isearch-mode-map) do not >> use universal arg AFAICT. >> > > That's not correct. C-s C-u C-q C-i searches for four consecutive tabs, > for example; C-s C-u 6 C-w starts isearch with the next six words. Now I know about this, thanks! Are there any examples where the prefix arg would alter the *behavior* of the subcommand (make it do something different), not just set a quantifier? Filipp