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.bugs Subject: bug#39512: 28.0.50; Add command isearch-yank-region Date: Wed, 12 Aug 2020 02:13:11 +0300 Organization: LINKOV.NET Message-ID: <87k0y4n5dk.fsf@mail.linkov.net> 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> <20200811011246.bcciofvpzjtuy3jb@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24784"; 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: Tino Calancha , npostavs@gmail.com, 39512@debbugs.gnu.org, contovob@tcd.ie, Lars Ingebrigtsen To: Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 12 01:20:12 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 1k5dYx-0006Kg-W9 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 01:20:11 +0200 Original-Received: from localhost ([::1]:45824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5dYw-0002lP-Pb for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Aug 2020 19:20:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5dYp-0002kj-1u for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 19:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5dYo-0007AF-OT for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 19:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5dYo-0002XN-Ev for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 19:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Aug 2020 23:20:02 +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.15971879549669 (code B ref 39512); Tue, 11 Aug 2020 23:20:02 +0000 Original-Received: (at 39512) by debbugs.gnu.org; 11 Aug 2020 23:19:14 +0000 Original-Received: from localhost ([127.0.0.1]:41975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5dY2-0002Vt-BB for submit@debbugs.gnu.org; Tue, 11 Aug 2020 19:19:14 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:37219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5dXz-0002Vd-7X for 39512@debbugs.gnu.org; Tue, 11 Aug 2020 19:19:13 -0400 Original-Received: from mail.gandi.net (m91-129-102-47.cust.tele2.ee [91.129.102.47]) (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 878B124000B; Tue, 11 Aug 2020 23:19:02 +0000 (UTC) In-Reply-To: <20200811011246.bcciofvpzjtuy3jb@Ergus> (Ergus's message of "Tue, 11 Aug 2020 03:12:46 +0200") 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:184701 Archived-At: > 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. Good point. ‘C-SPC M-s . C-s C-s ...’ means that the user wants to extend the region to one of the next found symbols. But still there is an unsolved problem: ‘M-s .’ activates the *symbol* search mode, not the default non-symbol search mode. This means that the yanked region will match only symbols, that is useless when the region is longer than one symbol (the symbol search is activated by the call of ‘isearch-forward-symbol’ in ‘isearch-forward-symbol-at-point’). This means there is still a need to add a new command that yanks the region but doesn't activate the symbol search mode. > 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. Yes, this could be added to thing-at-pt.