From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Recentish C-s M-y change Date: Sat, 30 Jan 2021 20:37:39 +0200 Organization: LINKOV.NET Message-ID: <87k0rus4ec.fsf@mail.linkov.net> 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> <87wnwslhdr.fsf@mail.linkov.net> <87sg74itrx.fsf@mail.linkov.net> <87o8h9h1yo.fsf@mail.linkov.net> <5bbae1bd19fadee709b0@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34987"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 30 19:54:42 2021 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 1l5vOL-0008yA-79 for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jan 2021 19:54:41 +0100 Original-Received: from localhost ([::1]:56134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5vOJ-0005IO-N6 for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jan 2021 13:54:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5vNN-0004FC-Fp for emacs-devel@gnu.org; Sat, 30 Jan 2021 13:53:41 -0500 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:41971) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5vNL-0002sU-83 for emacs-devel@gnu.org; Sat, 30 Jan 2021 13:53:41 -0500 X-Originating-IP: 91.129.108.204 Original-Received: from mail.gandi.net (m91-129-108-204.cust.tele2.ee [91.129.108.204]) (Authenticated sender: juri@linkov.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 9252340005; Sat, 30 Jan 2021 18:53:33 +0000 (UTC) In-Reply-To: <5bbae1bd19fadee709b0@heytings.org> (Gregory Heytings's message of "Sat, 30 Jan 2021 10:42:25 +0000") Received-SPF: pass client-ip=217.70.183.194; envelope-from=juri@linkov.net; helo=relay2-d.mail.gandi.net X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, GAPPY_SUBJECT=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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:263629 Archived-At: > I understand, but the consistency is broken anyway: C-u has an effect on > yank, and no effect on isearch-yank-kill. There is a difference between no effect and a completely different effect. > And mirroring the effect of C-u on yank (exchanging point and mark) in > isearch-yank-kill is not possible. It's still possible to give C-s C-u C-y the meaning similar to C-u C-y where point at the beginning of the search string means to replace the string, not to append to the end as it does now by default. > What you probably meant is that C-s C-y M-y ... or C-s > M-y M-y ... cycle through the kill-ring entries and appends > each of them in turn to the , and that typing C-u M-y discards > the and enters the interactive selection of a kill-ring element > in the minibuffer. Actually the same problem exists for both cases: C-s C-y C-s C-u M-y Both cases (either directly by C-y and M-y, or the interactive selection by C-u M-y) append the string to the end of the search string. > It could indeed make sense to use C-u C-u M-y (for example) to enter an > interactive selection of a kill-ring element prepended with the > , but I'm not convinced it would be very useful in practice. I agree, it makes no sense to prepend the old search string to the initial input of the interactive selection. This is why this would be more convenient: C-s C-u C-y C-s C-u M-y Both these cases will replace the search string, similar to what their global versions do in regard to switching mark and point. Then we need to find a new prefix instead of C-u M-y to keep the old behavior of appending the yanked string to the end. Maybe C-s C-0 M-y.