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: Sat, 4 May 2019 15:40:29 -0700 (PDT) Message-ID: <8096bd54-4505-481c-9f8a-deeff33df2ac@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> 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="135117"; 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 Sun May 05 00:43:24 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 1hN3NK-000Z06-Qo for ged-emacs-devel@m.gmane.org; Sun, 05 May 2019 00:43:22 +0200 Original-Received: from localhost ([127.0.0.1]:33670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hN3NJ-0004R6-Sy for ged-emacs-devel@m.gmane.org; Sat, 04 May 2019 18:43:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hN3Mf-0004Qn-Hp for emacs-devel@gnu.org; Sat, 04 May 2019 18:42:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hN3Me-0002aD-N5 for emacs-devel@gnu.org; Sat, 04 May 2019 18:42:41 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:40378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hN3Md-0002VO-8w; Sat, 04 May 2019 18:42:39 -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 x44Md1kW085432; Sat, 4 May 2019 22:42:35 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=0D1tFeaS4HwA+3Xy1zs7nbB3KZUCLkqMIhVyLPNJlrA=; b=Pg4+giuzyTRGuW+NmP4qkDeZy6aku0MhHR94ffYlImNv0xL0ibD055g0AlaVJDMZDlsH 2qJrkTzub3LpvjLR0Oi6lzdUcsctM2541KqToOpRRXnRzjHf+RCxrm4hCC3NkoHu0WgE bY0SomcCuqecqXebF+O/yeAcJz5cASGk4Mr587HQyfHmtsmvl5nowKYbNjHhRc7MvU9u 3i8sW7tgxu9utKPPbc54SnwJPT3X2PQcKdEDo0ZQE0A8QdrejONTNSCghWyf1PYqWx3e EtD43huU6yq0K0N9vAk4XXrGnn5u1m5bydZJY2mmFpqE/uy2k0LSITTo4GNoq8xZk2RU Ww== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 2s94bfhk88-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 04 May 2019 22:42:35 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x44Md2Gk109219; Sat, 4 May 2019 22:40:34 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 2s94b8e2pc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 04 May 2019 22:40:34 +0000 Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x44MeUQr031833; Sat, 4 May 2019 22:40:30 GMT In-Reply-To: <87sgtuszek.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=9247 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-1905040170 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9247 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-1905040171 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:236169 Archived-At: > > (Note that we already give 2 bindings to > > `isearch-toggle-case-fold', which we need not do.) >=20 > The other is isearch-toggle-char-fold. Oops - my bad. Eye-scanned too quickly. > > It would be good to "standardize" bindings - say > > reserve `M-w' (e.g. on a prefix key) for the > > "copy-region" (or similar) action >=20 > 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. What I have is a command that copies the current search string to the kill ring. See previous posts in this thread. I posted the code for the command, suggesting that we add it to vanilla Emacs and bind it (as I do) to `M-w'. Here it is again (just rename prefix `isearchp-' to `isearch-'): (defun isearchp-kill-ring-save () "Copy the current search string to the kill ring." (interactive) (kill-new isearch-string) (let ((message-log-max nil)) (message "Copied search string as kill")) (sit-for 1) (isearch-update))