From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#39512: 28.0.50; Add command isearch-yank-region Date: Tue, 11 Aug 2020 03:12:46 +0200 Message-ID: <20200811011246.bcciofvpzjtuy3jb@Ergus> References: <87eev52bw6.fsf@calancha-pc.dy.bbexcite.jp> <877e0wiosp.fsf@mail.linkov.net> <87v9hst5wv.fsf@gnus.org> <87mu33zchk.fsf@mail.linkov.net> <20200810011954.ro4utplq3ohpob2d@Ergus> <87v9hqjb27.fsf@mail.linkov.net> Reply-To: Ergus Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18653"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tino Calancha , npostavs@gmail.com, 39512@debbugs.gnu.org, contovob@tcd.ie, Lars Ingebrigtsen , eliz@gnu.org, drew.adams@oracle.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 11 03:14:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1k5Iri-0004l3-OK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Aug 2020 03:14:10 +0200 Original-Received: from localhost ([::1]:55080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5Irh-0002Um-Lf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Aug 2020 21:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5Ira-0002UJ-BD for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2020 21:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54680) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5IrZ-0007lk-W5 for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2020 21:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5IrZ-00074R-Ok for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2020 21:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ergus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Aug 2020 01:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39512 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 39512-submit@debbugs.gnu.org id=B39512.159710839127101 (code B ref 39512); Tue, 11 Aug 2020 01:14:01 +0000 Original-Received: (at 39512) by debbugs.gnu.org; 11 Aug 2020 01:13:11 +0000 Original-Received: from localhost ([127.0.0.1]:37989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5Iqk-000732-Ne for submit@debbugs.gnu.org; Mon, 10 Aug 2020 21:13:10 -0400 Original-Received: from sonic314-14.consmr.mail.bf2.yahoo.com ([74.6.132.124]:37588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5Iqh-00072o-PK for 39512@debbugs.gnu.org; Mon, 10 Aug 2020 21:13:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1597108382; bh=mMeMJdLAixnjks8hTgKI1irtmpaPX773MT4AFT+xiZo=; h=Date:From:To:Cc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3lH9Vm5vU2CsSe9fpNjyESOJLCb7Z2vSW5gKiDd EUcgATeNTY99CVUODCXIdn85jtjfsBpusZJP7mwxqGqR.W4kifio04E9gb_I0F5YrjLvSJ0sy.Fh od8x_Q_Ek4OBxbQTWpAAUK4DT.zh1ScwdyFwxEULJF Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.bf2.yahoo.com with HTTP; Tue, 11 Aug 2020 01:13:02 +0000 Original-Received: by smtp413.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID fedb89c16096cb84fc8f576e83eb3472; Tue, 11 Aug 2020 01:12:56 +0000 (UTC) Content-Disposition: inline In-Reply-To: <87v9hqjb27.fsf@mail.linkov.net> X-Mailer: WebService/1.1.16455 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:184615 Archived-At: On Tue, Aug 11, 2020 at 02:49:44AM +0300, Juri Linkov wrote: >> Now I am using swiper which has an improved version for thing-at-point >> (something like `thing-at-point-or-region` called `ivy-thing-at-point`) >> which actually is much more useful and avoids an extra binding. >> >> https://github.com/abo-abo/swiper/blob/c6b60d34ac37bf4d91a25f16d22e528f85e06938/ivy.el#L426 >> >> Implementing something like that in vanilla is (in my opinion) the best >> default behaviors for isearch-forward-symbol-at-point. But I don't want >> to go in that discussion in the mailing list because it is difficult to >> get an agreement what touching old commands. But you are free to do it >> if you want. > >Indeed there are two ways to add it: as a new command (that requires a new >keybinding) or a new option (disabled by default) for the existing command. >Maybe we could enable it by default, but I don't know how it will affect >the use cases of users - maybe someone users use isearch to extend the >active region to the next matching symbol, and don't want 'M-s .' to yank >the region. If the region is active but empty that functionality could make sense (extend to the next thing at point), but when it is not empty I think it doesn't make too much sense in general use... but let's wait for the rest of the opinions. Actually, probably such a function (thing-at-point-or-region) could be added to thing-at-pt to use it in other functionalities too. (like highlight thing at point, idle highlight thing at point or region, kill thing at point or region and so on) It is something I have seen re-implemented in many packages here and there again and again, so probably it is time to provide it in vanilla.