From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: isearch region or thing at point. Date: Sat, 27 Apr 2019 02:14:53 +0200 Message-ID: <20190427001453.isjx247kc3lu5fe4@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="137896"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 27 02:16:03 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 1hKB0c-000ZkK-Fl for ged-emacs-devel@m.gmane.org; Sat, 27 Apr 2019 02:16:02 +0200 Original-Received: from localhost ([127.0.0.1]:53567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKB0b-0002hm-EW for ged-emacs-devel@m.gmane.org; Fri, 26 Apr 2019 20:16:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKAze-0002gL-28 for emacs-devel@gnu.org; Fri, 26 Apr 2019 20:15:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKAzd-0000k8-3l for emacs-devel@gnu.org; Fri, 26 Apr 2019 20:15:02 -0400 Original-Received: from sonic304-23.consmr.mail.ir2.yahoo.com ([77.238.179.148]:39126) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hKAzc-0000hf-Hb for emacs-devel@gnu.org; Fri, 26 Apr 2019 20:15:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1556324097; bh=gWwImzDih5517nwBrBE3kojmkvsuYj8dToOQvo4qFFE=; h=Date:From:To:Subject:From:Subject; b=N11rgpS9jO0+8rD+dzbSdkkxzVdLsocU2AsZAFoVQZmtLTh/N6rMKkA0m9C8wgTuwTu/yfxPHbimC4OV7OCdKVITCfcsIi3KDr2nuR9KaNbqms5Pbt/TJBYRsbTaXma9jOT13E9rTSNjHcrcdLlBY85XTkPdwpqJabNBKu+3X1dHEcJtH/SvIJERu8vuG/62tdxFYVzog7YRf1cyv7yNou4Gu+jOjkuYpdVVoQZzPY0VHxsfXDC3DVbtf7n4q2eP+RVowhmwZY8PQKlMPCdfJDSagbqPKLz0brJcJX6xH/xl/5hktuDMYse8dMaUHeaSX/SUsckSA0Wt4lCEATLb2w== X-YMail-OSG: BiB0DzUVM1luZ848nVW5YBCrZ4SHsXxjnhf50q03Yl0TxwVs_Apnu43d7on0iVy X7cANFhw2Ea6HqigdKuyymgm_ziEn2nLAtGjoJLPRlHwBziBLaWy93wV8H73S5bf5ve8kZ9tEIzD tlqIYB1veRdhFHFcdu_uttUrJv.eN9OP32imzCYAli95oyIfEVkyueP2wHwrWgDEV.XpBkQ90TQO 4Of3uoh7nCnbh0JnVvf.W4aM1wC0kD4hBnv1TGdMLi1SXfuK1he76OI_fX_9SMoN51NcjJyaE3m_ IG530PNNylhWcrqkPVr0ASsoVUagfKhAA2bKkICpJeGaZmQLtgYonlmo93NRTCsELdDSEuY20tPt X9oLyC4NRxHd1MYct2vTdDHeYIqkKH1KpzEvNaiNOiQwG0qYHpn9un3CmRDTL8UT7TPofn_xFWZy dfI6UzG9knmFQ0Ibo0jS65aswbEiHqSRVIKHs6KyGmnBNrN5WT5Dmi89hoRh30wTeOqRmw.yWMw6 H6VYsV96rGZwMn38GhCQqrFFidI3vi88glEZq0TBTIH8tsnMFRt2Rlm_f3nPHNWQi4CBoVzM8A56 Ncf.DVaNs_kd53xDVd0vFlLP2ROhz66TJdnG_9JCww.LxcxyzLlU3Pm8oXKnVI3Loh5fcMUqsnQr 0gCL8iFMfj5WM6W57Pee5I5fUYfcsCz.qPmZ1_Ct0x0QQDK3bUuI2cYtvyxNEP3viZp._heNZKxr QraFBgLqIpM86KG2pnOkhaWqT3B.1mDfzbx9ComnibYtrUnM4lxfz7tTx4pUIgRvGc_.6A_bQqWl EoSHDf4RWoWy95fOKldZXzetY_ZEEZ35b_NcM7w_Pm Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Sat, 27 Apr 2019 00:14:57 +0000 Original-Received: from 2.152.205.184.dyn.user.ono.com (EHLO Ergus) ([2.152.205.184]) by smtp417.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID fa250e88792acbb1fd739525c79c6e09 for ; Sat, 27 Apr 2019 00:14:56 +0000 (UTC) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 77.238.179.148 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:235972 Archived-At: Hi: I am looking in the manual for two isearch functionalities that maybe are already implemented, but I don't find them. Else maybe it is not so complex to do in elisp (at least for my config) And you could suggest a right way to implement it. 1) isearch-yank-thing-at-point, this should be similar to isearch-yank-word, but if the cursor is in the middle of a word it may insert the whole word not just the rest of the current word. (swiper provides this with M-n) 2) In "transient-mark-mode" if the region is active before C-s, the initial input could be the text in the region. Is it there a way to enable that behavior? An alternative for this is a command that yanks the region's text in the minibuffer when isearch is active so we could bind it in the isearch-map (for example to M-f). Are some of these already implemented? Very thanks in advance, Ergus.