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 15:08:09 +0000 Message-ID: References: <20210403001539.x4rb55dvh46rmhb3.ref@Ergus> <20210403001539.x4rb55dvh46rmhb3@Ergus> <87tuold7or.fsf@mail.linkov.net> <20210405014140.atgn4dva5pi5i6eb@Ergus> <87k0ph5a8s.fsf@tcd.ie> 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="33667"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ergus , "emacs-devel@gnu.org" , Juri Linkov To: "Basil L. Contovounesios" , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 05 17:23:35 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 1lTR4g-0008ei-Jv for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Apr 2021 17:23:34 +0200 Original-Received: from localhost ([::1]:50950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTR4f-0005Jt-Kg for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Apr 2021 11:23:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTQq9-0000Ln-7b for emacs-devel@gnu.org; Mon, 05 Apr 2021 11:08:33 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:47912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTQq5-00054o-TO for emacs-devel@gnu.org; Mon, 05 Apr 2021 11:08:32 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 135F0WOq038682; Mon, 5 Apr 2021 15:08:27 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=j6V089gn5zvY3YPjneDoPHBT+XaCOQ1tLsvKVDb255E=; b=WQaeWOgIMpOf4Baq5MQf9tWyM8VwL1I5UBoLEHnRBgoDLUbk+u6YUKwjTZbui0A9mP+R xwH3inB3FkNbS9Ela8WvShMRWqu4Td7vZ4ptkiyvK8RRCNibtwag+Sd9OAHYqjj4XfQ6 7CkZlsXQH5tR1Lts9uvJEHzfT+zpNvSDUzNBzjYJtSYNOF9t67OoYTWFKw1sXD1JAccq LodPsW6573I/h4NjZzwowoIRbuLPFE7ri/7P+2oTHr33MIBHT9K9RCNoRsfLBUu5iDle pw0iU4dR1CgCe7VCddcD86F+xvD11CU6a+uEyd6clD9vBGAA/8KahHIGeuoCT5ZHApbR nA== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 37q3bwjc47-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Apr 2021 15:08:26 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 135F61iv058312; Mon, 5 Apr 2021 15:08:26 GMT Original-Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam08lp2168.outbound.protection.outlook.com [104.47.73.168]) by aserp3030.oracle.com with ESMTP id 37q2pbbv8k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Apr 2021 15:08:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Siz5LZoQ/sJHpi8Zh1CkrrClZhY33natLywoQna3jIVawJc6mCLoTM9wcw8M1bEN2CBezOkktuI0+6p8iLLkZw4AxcWM8d1aLBKTk5JkGlGf2ChECGeQBBTWRPJiRjHjrELkrER+YO1B9Ta1v6tDWVPWl0XVT01Pe1thPXpRN1YTaDlCZPQuExUdgKXYM3vtRm7+9+rmy3QZ6OJ2l4dFMQ/EZNwaJFe4NSVuu8dfuolFR4QZKts9I6O9g/BEVib0urv1xXi/hz4CSskJjaO9tgpE5qqGCtY6pvq1RayrMsXuMOkT5sV4/j29GAMAsgQF0EreOKeyQt0NhnQSkSF0gA== 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=j6V089gn5zvY3YPjneDoPHBT+XaCOQ1tLsvKVDb255E=; b=feyERvApUL/tYIzVFhotEoXmuQhtbCiUt3BVdNU38J6Ph6hoIo0I6F8Eh2QZdGH2VeKWovQdBeRNdXcC31tw7R/pMdeo6aABaFQl//j9rKxzM4Oi4ta2rSE2JFog45Wx4STNgPoeDeKakaq49X7DRr/roD+VvBGzrIMdPfo8ypiXqIFLIFNWdzX8M7jsbZ8vmJx/Ze0n/aGbFvx8Sed488oJv9LKT/rfLhAnBAkjGrShiU2dujT7TgnS7Ie91bd9ZNVFUSxB2sHKZwYfKQFF0vNnlVQ21MrwNj2vbEF6DYlrF/eHuSTj2kT3bpJTzn3eDVJetcLXeCUsR++fzon7nw== 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=j6V089gn5zvY3YPjneDoPHBT+XaCOQ1tLsvKVDb255E=; b=Xqd4haR3tWclfVn38WRvsnZkc8CWiUb918QYUY0rEsNpah3P4QriJhH4z9XrA0dHzwEs8E16kH2suAkFr6IN30fkqxwkDl4ldcW6uIJMT2Xbu25EQS0OmoYYMDEEodQ+nusXG8ZyYTQfGJL7lQpw5HaFERBStA5eeUOc4e9Dr1c= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4441.namprd10.prod.outlook.com (2603:10b6:806:11d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27; Mon, 5 Apr 2021 15:08:09 +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 15:08:09 +0000 Thread-Topic: [External] : Re: Simple isearch concerns Thread-Index: AQHXKgFy2VECN3mWAESpJkYiOXGECKqmBGkg In-Reply-To: <87k0ph5a8s.fsf@tcd.ie> Accept-Language: en-US Content-Language: en-US authentication-results: tcd.ie; dkim=none (message not signed) header.d=none;tcd.ie; 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: efc51952-a802-4550-ff4e-08d8f8449fb8 x-ms-traffictypediagnostic: SA2PR10MB4441: 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: uMcBhrrkX3AIZumzeATI2hXG2O4OxjWPlsswzSdfNOIndW8xeDs9Dk1g21loac82CguHI3xa123rgOOo1zey8SNp/9Fh5DChlX+77+s1QHm57LNnxE+Edosqyj6QpRIBPd2djAUAsWTgmAqJGOLMl+aXRCqNYmIbek1zF7VG6xhc/SYQccIg2kULidR0x23uDurvXCvyS9862162KDqOmPtfB/GlmdhKeOvuJVDrwP3svImkqcaaAI5uVR8742iWugAsLUJeg4DEQHbZLhORVCcyJz8RD/KeFYUtONjEZlC0PrfLpfkNbW/UUTyGwoYAZQKA3GpYRwPlaTZwNxTxh6aiaUnQe04Gzet7mocxr79HdgZRLkXwwy2Lcep9V0YfMJzILsspMp6HavKp3WlLkhdqJzNW6e+NwZORITxNvymvCNE/Azf0Mjpf30DOuKtZem63NK+JU89zl1yAMsABK2RgrHRlLlg50eck+ncZrLhqdoqeeuMhm2SAYc93pTNAodf0EQvoUT12zAO81Ha+3JeNnoODHqCvqe64BITrrQzM14dOcfDaUiW+F++wJm3WfrDJv2ASv15rlvTzy43ZQUVth0f/nUp03j+QkSbFFP89lre12lVbXhbx+3dGrkjSNIBa3jYDBOLlTWCJyjJfgRzXrT3NJMiK9rQqy868SJI= 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:(39860400002)(366004)(136003)(396003)(376002)(346002)(33656002)(186003)(5660300002)(2906002)(54906003)(86362001)(316002)(478600001)(296002)(66476007)(66946007)(110136005)(6506007)(83380400001)(44832011)(26005)(8936002)(52536014)(4326008)(55016002)(76116006)(66446008)(66556008)(64756008)(8676002)(9686003)(38100700001)(71200400001)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?/QXXVQEQHkGdkG1YksshkTZFb5eqom0L2GzACZ9W+35JoDEgSTCm8LhR/bXD?= =?us-ascii?Q?apa15EQwFUOyl68aG14cwuR7V1KipWD2SWKJ4/fxgX4+tYEc+N81xRSyUTHB?= =?us-ascii?Q?4nK6+Lvjt134367HsMhuabeije/QyWteFyZKmY7MtqbCTZuOj+QZ/+jJr97r?= =?us-ascii?Q?iU+9cRRM60giwKvIbCMwy8xR/TPnLffN9gtIgASRPbKJ7W7+FLNfSS3FJodl?= =?us-ascii?Q?CoR2zkhyFi48bee3uSxcD7KpMo3adXFNJsiYcUZE4ek16ILK12YuH639Z0QB?= =?us-ascii?Q?ShA0XlyfehAXPHyx6jvi5b0vynUJrUWSzZttdhr3o27oS1RPurtT+swW7Cvg?= =?us-ascii?Q?zZqhhY1pybkT/tDdOkvPw9F49gCuMygFTYUXrQlH65yffwUBt32rLXv5h0UV?= =?us-ascii?Q?HY2N15JwhiJRUJ/NNQoCeC+ORGcVqme/9NYGawE4nXF7PAcLcTXneDhVFB/0?= =?us-ascii?Q?tee4Z0lBKrii4FfdRYFY9IbgcayXk36XI7YVLvWB8fjEzr+sGX0xQTs7LXsv?= =?us-ascii?Q?PIEFcbvxElugR50XcslaackbCSmrPsp2GsDkl8kmZ5mGT0PfUQG1glE5+CEo?= =?us-ascii?Q?JnbTgE+Pp1sfQ2sMXJGdGFT/XOE5TyqlWgYr0Y0mLr5u0ZGwtS6sCpwX7by1?= =?us-ascii?Q?A8Yx 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: efc51952-a802-4550-ff4e-08d8f8449fb8 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2021 15:08:09.2946 (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: DkCGd8KBLYQurAQ566ghJavzulai5j8u8Q/HGY97TxMv3akbeTi+2hSILY1cwnDF51aA00yKtbYaV8TPSLTnaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4441 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9945 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 mlxscore=0 phishscore=0 bulkscore=0 spamscore=0 mlxlogscore=489 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104030000 definitions=main-2104050105 X-Proofpoint-GUID: ITTBHRsjCOIVBWlCOxY0iiS4C_RUg-Jv X-Proofpoint-ORIG-GUID: ITTBHRsjCOIVBWlCOxY0iiS4C_RUg-Jv X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9945 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=793 spamscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 phishscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104030000 definitions=main-2104050104 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.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:267418 Archived-At: > >> Swiper provides this option and after trying it I found it very > >> useful and some other users seems they do too. > > > > I strongly suspect that swiper does not provide *exactly* that option. > > E.g. does Swiper's option also cause C-r foo RET to place point at the > > *end* of "foo" rather than its beginning? >=20 > Just for completeness: >=20 > The original swiper and swiper-backward commands either always leave > point at the end of the match (by default), or always at the start > (after customising swiper-goto-start-of-match), regardless of direction. >=20 > Later came swiper-isearch and swiper-isearch-backward, for handling > multiple matches per line. AFAICT the former always leaves point at the > end, and the latter always at the start. >=20 > AFAIK neither of these interfaces was originally designed with a way of > customising where to leave point in mind; it was an afterthought, and > naturally there are open bug reports about their behaviour. FWIW, with isearch+.el forward and backward search mirror each other in this regard. Point isn't moved, and the search hit is selected as the active region. So point remains in "front" of mark in the direction of search (which is helpful for repeated search, for example). The main use case is wanting to act on the search hit, not just to move to its other end. Having mark at the other end gives you easy access to it, as a freebie. And yes, I think that if someone really wants to just move point to the other end of the hit then `C-r RET' is just fine for that. I definitely wouldn't advise wasting a key binding such as `C-RET' on that. But that's just me, becoming a bindings conservationist in my old age.