From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: isearch region or thing at point. Date: Mon, 6 May 2019 19:56:47 -0700 (PDT) Message-ID: <3f55cb2e-9b62-4559-9266-2fe4d9250524@default> References: <20190429004135.rn5tp2gnmbjovrxj@Ergus> <87h8agy4yf.fsf@mail.linkov.net> <20190430162501.xmqh5r5h57sjjlq5@Ergus> <87h8af15kg.fsf@tcd.ie> <20190430231614.l423x6eqta5fbhor@Ergus> <874l6f132f.fsf@tcd.ie> <20190501112025.fnsynkbmkvllapyv@Ergus> <83y33mlgdb.fsf@gnu.org> <20190504121526.mslnh3xqgc64dy7t@Ergus> <45220b6f-8236-41fa-a520-fd7c562072da@default> <20190504145636.34kaiqrji7zxsdhh@Ergus> <19478b8e-f8cb-48cd-9231-dd82b42b734b@default> <87sgtuszek.fsf@mail.linkov.net> <8096bd54-4505-481c-9f8a-deeff33df2ac@default> <87lfzjtlos.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="181140"; mail-complaints-to="usenet@blaine.gmane.org" Cc: contovob@tcd.ie, Ergus , Eli Zaretskii , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 07 04:59:45 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hNqKW-000l29-Tv for ged-emacs-devel@m.gmane.org; Tue, 07 May 2019 04:59:45 +0200 Original-Received: from localhost ([127.0.0.1]:38446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNqKV-0006nO-Mx for ged-emacs-devel@m.gmane.org; Mon, 06 May 2019 22:59:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNqJs-0006n2-W7 for emacs-devel@gnu.org; Mon, 06 May 2019 22:59:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNqJr-0002jl-Ub for emacs-devel@gnu.org; Mon, 06 May 2019 22:59:04 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:44278) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hNqJp-0002HU-N2; Mon, 06 May 2019 22:59:01 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x472oI9n041027; Tue, 7 May 2019 02:58:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=Ls4ZSXQQdYU6TtQCZkLYwM+Rw2zJWtqveEA6PceYGBM=; b=NuBPO8SDnOjjG8bbplgO6Kp0zkwwEEkMcXEn5xgK+TqFkTzoEZuWnz3Uv3HXWj3Itzzb YMi9Q/Ay1ZPctkL4vpy1+v39yrX6c3+oCi6x3WnkcjnqQoqVhhZZosGIFOEVkAEHh8/X xoN0LYAK8K7MB0CdUfu/Ic2TeElAJ2eFwGFOXUnokrMBN/SHCryIaRrePSMQjPQe3QTt nDKGGPJYR+VRQpaW02mOmUf7DTZNbBOBDqpnqqWax6qUGCfZCxyUuvgcXbVkCL8E6H0w Pi8YcLWEful1E6jFZ8z1AdtHWysV/bLZvOA+7gTBvVONTU1JA54FSB9g5kCmMsXil0fa Xw== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2s94bft5vs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 May 2019 02:58:51 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x472tXrq155675; Tue, 7 May 2019 02:56:51 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 2s94af7sxq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 May 2019 02:56:50 +0000 Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x472um2u013177; Tue, 7 May 2019 02:56:48 GMT In-Reply-To: <87lfzjtlos.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4834.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9249 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905070017 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9249 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905070017 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.86 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:236223 Archived-At: > >> > It would be good to "standardize" bindings - say > >> > reserve `M-w' (e.g. on a prefix key) for the > >> > "copy-region" (or similar) action > >> > >> I remember you had a key to grab the region into the minibuffer. > >> This is what Ergus wants. > > > > I don't think this thread is about grabbing the region > > text into the minibuffer. Ergus grabs it into Isearch > > as the search string. > > > > And I don't think I have a command that grabs the > > region into the minibuffer. >=20 > Maybe the same key, e.g. 'M-.' could be used to grab > the region into the search string, into the query-replace > prompt, or into the minibuffer? Maybe. If you meant `M-.' then maybe you were thinking of my binding of `M-.' in Icicles. It does pull buffer text into the minibuffer (appends it there, so you can use it to insert multiple things into the same minibuffer). It really has nothing to do with completion (hence with most of the rest of Icicles) - you can use it with any minibuffer, whether reading with or without completion. My `M-.' does not pick up the text of the active region, however (it could be made to, but it doesn't do that now). Instead, it picks up existing buffer text starting at point (either or both directions). You can pick up multiple consecutive occurrences of a given kind of thing, or you can pick up a given kind of thing, choosing the kind by cycling among THING choices. The doc is here: https://www.emacswiki.org/emacs/Icicles_-_Inserting_Text_from_Cursor Perhaps it can serve as food for thought. It would be simple to integrate the possibility of picking up the region text when the region is active, as an alternative.