From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [External] : Re: Simple isearch concerns Date: Mon, 5 Apr 2021 02:22:11 +0000 Message-ID: References: <20210403001539.x4rb55dvh46rmhb3.ref@Ergus> <20210403001539.x4rb55dvh46rmhb3@Ergus> <87tuold7or.fsf@mail.linkov.net> <20210405014140.atgn4dva5pi5i6eb@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28732"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" , Juri Linkov To: Ergus , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 05 04:23:28 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lTEtk-0007O2-FH for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Apr 2021 04:23:28 +0200 Original-Received: from localhost ([::1]:52232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTEtj-0000lJ-Ew for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Apr 2021 22:23:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTEsf-0000IX-SW for emacs-devel@gnu.org; Sun, 04 Apr 2021 22:22:21 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:36588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTEsd-0002sJ-0a for emacs-devel@gnu.org; Sun, 04 Apr 2021 22:22:21 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 1352Jwfk140757; Mon, 5 Apr 2021 02:22:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=pwJTIc+f1+u/78nNtPoUr/DG9vWyb4vwewvp7w1FTsc=; b=Az7zGSE6gEORGdj7895p/XmJOMQfGdOZ2dEkkco/3fWRYQFYMbaL6tnrhuzudZoHpUPa bRLq0TMeCC9DXbj4U3KO+mORFr70HeqjPCym5Tga4AdntEJ2EZKxbE7q1gA7jiD/FSwq 7B2pC0m0YeEZ5+9ZRAf8A4CpKih/HIdaEJi2lfZJ3lSusbgJk8zsHv+ZG5xlMjTzaN1t I3m5EDoqzgCEXkZIWNwJg+jEGtp3RMBTSYU/v2Fj2KbGaAX3bKLlSjwJYbfCEjJYZP+U 9u5mCj4mCOqSfaCGefKkaofVDN0JMAthep3OczCSnLJAWrFWeU7WUclCDGm6I/af+z9N Cg== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2130.oracle.com with ESMTP id 37q38mgy90-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Apr 2021 02:22:13 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 1352L9oi118069; Mon, 5 Apr 2021 02:22:13 GMT Original-Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2171.outbound.protection.outlook.com [104.47.59.171]) by aserp3020.oracle.com with ESMTP id 37q2pvqcvx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Apr 2021 02:22:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wi/ok5+zFELdn+zdeT4et6H6Oc6E5phoKD/XLqoU9iCjsg/0QaYigvuiKP1CG7PDl3GFmDIakBzK00BEaPz7Yjpx/7h0kNDtBcbbcclQqmNtho1ZWhYzBf5ry7y86YeqI+BCPon94b0NH8l7P5SE1ZMm4e0jpe8oyhr3mKbowIsTFFv+qjBzdL5cW4BZ/woLHwqmw4leGmSE/1KESRGwobkOMFrtDVojc2s++XpVESsP6kIgZSHUwH/OhGf6D+XsMDh+/lCtQjZaQD5CpgiRYQLwHqzAYXnyBvIpVpkDDlguke7Xt/dnotRDAqf25owp4ma+WBlrbZAxBV1AxeuB0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pwJTIc+f1+u/78nNtPoUr/DG9vWyb4vwewvp7w1FTsc=; b=OgRy9pn9Vk8Bx6MITmaZRtZRLXAvA5sR1YO37UlGckxqN0nPwzUxgwx1K7m54EHrFWQjs40Wczg5Zr1QoAdYsaIhG15pHCpYIdBytxg1zSysNLcFwN4mHtPtNfmUq2YD4reS9gG77wz3896zAMYclCu7nqhwb/OWscwcWbNDrBNNq++jgIXSBpikY9P6SISwHvyQOoY3/amOeZOC3RXOGwyLTxvo/MVgWRDqp77Tfx7FdO3bem3GWH42ODcKFAGhVmqzoALVMbu1HSLv6btCPDLBE8FbEJBk2eWuEKMQjqve97lFGYaN6x9TCl7uyiNekOBc5T/IV9SxOU1ZVP6NlQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pwJTIc+f1+u/78nNtPoUr/DG9vWyb4vwewvp7w1FTsc=; b=J55X3Wa6TX4VSwszWKOMPZTOKCpBCfX8M985qpXEa9PaSk6beP500xQ2rHgoduRTguYeXg6rnTrEk4fKPezgdc65LveuhJAS8ZfF1AwAnrsipL2PwlHkXYyVszQrp5aJPHTIKhNK8KwkIl1GnCZoa4wqRQEA6xVn2Cfqy02LioQ= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4764.namprd10.prod.outlook.com (2603:10b6:806:115::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.29; Mon, 5 Apr 2021 02:22:11 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315%5]) with mapi id 15.20.3999.032; Mon, 5 Apr 2021 02:22:11 +0000 Thread-Topic: [External] : Re: Simple isearch concerns Thread-Index: AQHXKbzp4YLVEj9D/kekGNHAuvSJhaqlLzCw In-Reply-To: <20210405014140.atgn4dva5pi5i6eb@Ergus> Accept-Language: en-US Content-Language: en-US authentication-results: aol.com; dkim=none (message not signed) header.d=none;aol.com; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4085f61d-c890-47fc-2b70-08d8f7d99e8a x-ms-traffictypediagnostic: SA2PR10MB4764: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7iBXNFQQRf7RPnoauvpGzhlcl0mVQa0sOpH/LJ2NYKu/nMldYQACHa/SxF4gPU4RazaPT/7tfvgB9pDfRCe1mbOX0D5+1VTx88X/rBkkfCfIjYLn52UUMnrUR8/6RKxNftWSCjWD5O1jgIB0SlseafxLIT1AlGzu2Yg8IUsu6/LzvdsM2Lw8AQHpvAWd9Z0M26wgiT0ycrBe4L9aM8odqIzGQDi/oGWgFvENCEzCvxbqG6KaV8EtR3Ij1nR8xv0sRPGf27O9vDH8BlR9StvHM/yFS7vfYsSZlDF6xm0m4rMpq2Q2XIwF2OHsuZBEVXs1RdCJRCkHYI0YUgMV6OBCiCpj7LV0gsTPxvSs1knIXxcFW91TIX/JY3EacLx2NEM1OKtX7JA9nc7Wl+K7lx416WYuWiz2uoI6APN7DDrUbfqB8Sjoi9ChRP6jZ3Yg3X6Pih2qz+ihAgBTuC9FRie6S5X9XHb4plv6a/Stk9gmk9vdVOMA2BAKspVa3iGn26RXUXNn6Tevv2ociA9NIbRVI9QDHUMCx7pJrR0TqJ82aNbusCMpmTDc1ikra80MNS3TuCITludFNvnKdlgHUt247qwKMFs2aMXrB2Q72+eOPZMhDjHM4h64JX2+brxuF9YF38ZTOGQRFO76M0MwvzNwJstxfcXqoIv0H7YdQy17tWQ= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(346002)(39860400002)(136003)(396003)(366004)(66446008)(478600001)(64756008)(66476007)(8936002)(66556008)(54906003)(76116006)(6506007)(2906002)(66946007)(7696005)(44832011)(55016002)(5660300002)(26005)(86362001)(52536014)(71200400001)(38100700001)(33656002)(110136005)(316002)(9686003)(4326008)(186003)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?AOBe07sxR77kw0x9JZO72+ujprY060j7vyRTfIaceVm0YL55VmppfX3EnV+C?= =?us-ascii?Q?h00r0V6c+Dmnt39xyTFOHYxAfdvI3aebd7rUmF4kuGDaUA9/mre/SufWTyy2?= =?us-ascii?Q?MESfBZs55Ha1dG5h3N1SZvzuQwsuH/J/q1b/Btoilh7Asyf3Co77RtLndqaM?= =?us-ascii?Q?T3s8FZ0Yg8EESu91S1LwX2sVeWOh1E11kF1p96NvVSxSNZ9Jlbv7Aml9ULtc?= =?us-ascii?Q?b7JDdbRhaS6A/bcgAzqCTboZ40OKGNFVqwC58NYKvASoqEh62NLAVoR4PO8d?= =?us-ascii?Q?R/20WORjVzYxAZCh91r1ijzJs5VnJ5J8V8FjuYj9dKRhbykIrbGpIHoUFVTl?= =?us-ascii?Q?edigoVn/NOhppRl8aK3lhJsFsilb86vi+OSSLObELBCIWFDWrjS7D1RPvq2I?= =?us-ascii?Q?Yp123Z8tSvqPcyJ+x1/DuwXZcbO1are9jRKkLFU8tR8Ecd5bSZ4xcIhrWDsf?= =?us-ascii?Q?J5cjWX3qDVi+QBzCqo0MSNrwttmVjrng+9JOhk9SfpXeOsvO4K0FaCyuLxF2?= =?us-ascii?Q?4Od8BAgpAafcBmqcgh0ie39OTEUAUbGi12JYnbE9y9qzWRB/nIcH6cuEUDLv?= =?us-ascii?Q?9ej9QCPDnNfOKqc/xPhqp4K3Pkswd/58PV3dfuU1qO1jWpvSUfCSGWIDX9Xn?= =?us-ascii?Q?Vi/P x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4085f61d-c890-47fc-2b70-08d8f7d99e8a X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2021 02:22:11.1230 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wzMFqXHsT1HbT8+Y+PifF9GEs6I+jxgy1jw/TRGA64NmimLRepjztOyDTidTLyHnMroaFs6QEvRN+cWQMwjaew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4764 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9944 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 adultscore=0 spamscore=0 bulkscore=0 mlxlogscore=830 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104030000 definitions=main-2104050014 X-Proofpoint-GUID: UWhKT01fYmZXhnhj-CN5yZZiqlqnJB2A X-Proofpoint-ORIG-GUID: UWhKT01fYmZXhnhj-CN5yZZiqlqnJB2A X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9944 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1011 suspectscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 spamscore=0 mlxscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 phishscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104030000 definitions=main-2104050014 Received-SPF: pass client-ip=141.146.126.79; envelope-from=drew.adams@oracle.com; helo=aserp2130.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:267402 Archived-At: > >FWIW, I can't imagine why someone would like that option. I can see it > >being useful *sometimes*, but I think it'd be harmful at least as often > >as it is useful. > > Swiper provides this option and after trying it I found it very > useful and some other users seems they do too. >=20 > Specially when the idea is to select a word C-M-SPC after it is found is > very handy. Another use case is when the word looks like my_var or > my-var it requires M-b twice to go to the beginning and then select. >=20 > In any case, if you think this option is not desirable for any reason, > another alternative may be to add a command in the isearch map (bind to > C-RET, or M-RET) to end the search and go to the other end... something > like isearch-exit-go-other-end. This alternative is actually a bit more > interesting; and maybe equivalent to pressing C-r before RET... but > faster? FWIW, Since 2006 `isearch+.el' provides something similar, but which I think is maybe a bit more useful. * Option `isearchp-set-region-flag' non-`nil' means automatically set the region around the last search target. * `M-s M-SPC' toggles `isearchp-set-region-flag' during isearch. * Command `isearchp-set-region-around-search-target' manually (anytime - not bound to a key by defaut) sets the region around the last search target. Is it more useful to just go to the other end of the search hit or to select the search hit? Depends; anyway, either allows for the other pretty easily.