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 21:18:39 +0000 Message-ID: References: <20210403001539.x4rb55dvh46rmhb3.ref@Ergus> <20210403001539.x4rb55dvh46rmhb3@Ergus> <878s5wmsjp.fsf@mail.linkov.net> 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="31888"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Juri Linkov , Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 05 23:20:57 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 1lTWeX-0008CQ-7B for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Apr 2021 23:20:57 +0200 Original-Received: from localhost ([::1]:37912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTWeV-0007uy-M9 for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Apr 2021 17:20:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTWcX-0006yc-2H for emacs-devel@gnu.org; Mon, 05 Apr 2021 17:18:53 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:58206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTWcU-0005bc-Gv for emacs-devel@gnu.org; Mon, 05 Apr 2021 17:18:52 -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 135LERjk167378; Mon, 5 Apr 2021 21:18:42 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=EJ80uxW1W8wb+pVPa0Gj3EWBuTqifdpO8YDDe1Ni2D4=; b=gqCA2lF9pPb0Ey1UBg2fuqSQusPHbpTZS+ylT3Zx6RtMeQPbs/08EInkJhrOghdQ8iqt xVqzaVcZSmj/BkM7DWyrPOdrWQa3YEZTV+egdTlStW+PCN1Dop8xX4URaPfMFc455UdQ TQpVYb39IvQ1RTrcLYq2lsZi7z2kbaM4ix9iB21RM5YzHKMdDpG29ts+BsgL8/tRavio WSl3nX9ctkSMjsuR37FrV8rDvXtTp2dPz0EPuoXldXA1aqhGe1+BGzQ572Yi8dRAvB06 Hr366CWVCS9xcB2wULT6yvDNTMDshtXpZkKyL9dWrpE15r80Bv2TE82dCJ1c7GsjLLTL mA== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 37q3bwkdr6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Apr 2021 21:18:42 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 135LFqW1179531; Mon, 5 Apr 2021 21:18:41 GMT Original-Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by userp3030.oracle.com with ESMTP id 37qa3hkddp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Apr 2021 21:18:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G6+qziesH52CaPkREaf7Ha/0UFwmiWpgZcoMmlmyyT06dl2j9+Fb58Us8reI7JQY+3U8vkx4y1fj2z0FGjk66UZMjGQHW/tuwemHHjTpB0/1qCecvYspJtCrxakEkHJ2lb8NgZtB1EqajYrU6rbtp9Elf5iqH1tSSRTxLHcSB/Waa9PD7K6ar3Dm/b2o6SOmULiMRQp7MiUNGMZGpltPN76iUdLFk+iKZINZzbyAmG9kvnRr9ORc2mr9qeXOtxA9oneyhHDN9s7djPPUALe17FzzHOmU1tsugNfep1JzXkpVZ4K3pKEAxqlPeB3l9o/ShcrvXhtTym8aRyMkzQdnhg== 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=EJ80uxW1W8wb+pVPa0Gj3EWBuTqifdpO8YDDe1Ni2D4=; b=W3QNwib/uburVWW1cesjFqpsWsElHwZriWbThB9hnP4Uq3hy7//5JnEQO2mwX9u+B+HDOzAku/G1TBjMpA6BQ1KAHI6V7b2FRj+AcM0XgOSx0QWfFkzsjKmyzNiL2lkTM1cKpxiXxw9MCkPfL+7IscrIr7k15Vi2qnQF+dzMZxUBt3Hbf/o1o1zUvwXXFAyhnhCHAmnS0sbS1eacZWlMxrDXN9mZ+V3A6H3lAqRVQCSeCMQSVke53AFC/fFjzCbpJ/As5L1Trw1n0mDn2cBmd8ZKS8HyKZ9WOAP2/QdhNqiG91CmB8wJ2Ssmwa4lT/mVLl/6IHXWRLU0lrxvbKpflQ== 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=EJ80uxW1W8wb+pVPa0Gj3EWBuTqifdpO8YDDe1Ni2D4=; b=xwo5UgLNUQqRMu4MahTDFWk9yL77TxxD9w9brp5jBbU9zq5/z2e/m9WiJdCG8XhJDJsuP9nXm12J5IjcWHRyeLHNYtqmFH73CFCSa7k7rcj19+tQ0htwRTWWaR8aLQKCFNwvRolIluYnCkIDzkrS+JG33WHMYr+7OcSVH73Hnqc= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4810.namprd10.prod.outlook.com (2603:10b6:806:11c::7) 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 21:18:39 +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 21:18:39 +0000 Thread-Topic: [External] : Re: Simple isearch concerns Thread-Index: AQHXKlzJ4ykGuHK9lEex/eBqa5NjjKqmalFw In-Reply-To: <878s5wmsjp.fsf@mail.linkov.net> Accept-Language: en-US Content-Language: en-US authentication-results: linkov.net; dkim=none (message not signed) header.d=none;linkov.net; 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: 1319c9c0-58c0-4387-e236-08d8f87861db x-ms-traffictypediagnostic: SA2PR10MB4810: 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: XzgH8ujeiYOzkmihMk9gOQZbj+uakSf0fPwKizlQnQk4/ih2gns9kugbNsjzESVu7YGGFwWUeZadq8AYhFfLUOwJ2DKgboxhPKoAlkjR7ka/sF7WFgcpqPIkDNBAhZe73aDDxznIYks4eI8nDZXalWGLWNrGH0Gmwo2nwl3ymQP/oNxswfUnYxvXYkIgbmlOhiXrpf0LBceTOfrYIOZzbSPpqgKI/6UycMFpNy7geHDMiaNOJ+In3lVgtsTZ4gz/1Nq/qdASBVHxSTkVP6YWbchDQOb3B0R5nL041daw2EpWWxsptIOpXqffC2NKPntqWQj/NNVVDVWD7URjG9iZ4N0P7kfZwwbbTyV+EJ1fkvYl4l4i1c4ZLXDA8NDxn0cRUwqz0Ue4s0tOMbuMY/5d+nB0Tl813SaGGzRgiHxHublIiqb32NAgiTiSEdOoUTb6PxRhQz46DMczIVC4wWbYqeOSk6BsmvHkl+qRTuNSYB5wdhlbjXxX5qWtM0s9L6WbTYNnDjaIXUfuoEzt1qPncFVPzOWRi31SxGqWKJM1OlmK4Pt6gDRxOlk9egw55A1fnSQH8/VLwPzsAcl6OA+5V6ZA4XB1NL8CMRZf5uJZjF/RyFjEY+y7Z5Iy29fca5zdlyw0VpR0BTOdgGa8Q0ccqrzjXTxQ2t/c061UmovjyDQ= 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:(136003)(376002)(366004)(39860400002)(396003)(346002)(7696005)(52536014)(33656002)(478600001)(44832011)(6506007)(9686003)(186003)(71200400001)(76116006)(64756008)(66556008)(4326008)(66946007)(66446008)(26005)(110136005)(55016002)(66476007)(8936002)(38100700001)(83380400001)(5660300002)(316002)(8676002)(2906002)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?fwCJjLk8Po7U8UM4e9TmujHH4D+lP0z3aRku5t7ydd4Iwa+TVUa8raUoIDtp?= =?us-ascii?Q?VnMgm6yVqBW0eoG6FKlAzuzcXV38ZCCIj+zwnl1bau9oG1/zvO83UqN+HS5y?= =?us-ascii?Q?uZwqoA01pota/gBtldH/oIQ7MC556JWPtGuUaCQ9mOHpwWDRXAlSsMbEj2Iw?= =?us-ascii?Q?wfuysSHAKvCb4Ll3g8ByJLmfHFIo4VqIcRVcJ0T1BViYRirQ+Z6ZF5zNpSRa?= =?us-ascii?Q?TC0EW/B8mWvVolX31Jy9csA5W1TVO5l/mGMtMCjgdMJRAaFUePlkqzPTWzFe?= =?us-ascii?Q?BWKP128d9Z8kHXlO49xIdDWFLm2upZmoSSdMPmJh1edRb41ZldTDxXH771bU?= =?us-ascii?Q?Kh9XWtCehPOrtPsONU0O5TsWPVpNOD4ZOe0HMkxcS9AIex3Kc68HZVlPM+n0?= =?us-ascii?Q?JO5eL+uroxyKoVqBmOF/r7yd5TAeJf7uaj3ozwJhIBtcXgUj9qxZhe5N8kCV?= =?us-ascii?Q?gSANX5jXDdM88roltfJxTixDhorcWT+G1U6hx7wP91Nf+hSJ+/PEIa29BDyo?= =?us-ascii?Q?T3QgzoFH4gb/q85u+a+TzwA1iWOBxz0wabhiEBbzTIm8pZDfvEX6Mb5clQyO?= =?us-ascii?Q?0TifRRoqu8lvusH6sDYRvUPDyT9gq6bB4KeFVpRfN0j4ScJX2IS+PfO/gUiC?= =?us-ascii?Q?YPJn 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: 1319c9c0-58c0-4387-e236-08d8f87861db X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2021 21:18:39.3404 (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: aUwkf79YeQvAKuqjBQkSBSuguLod0zVz4YMHxAPxx9kB5IwrLKiVlpHh04JVKEnQ3g00UT8+XwydiVsPEgQ1zA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4810 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9945 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 malwarescore=0 mlxscore=0 spamscore=0 phishscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104030000 definitions=main-2104050141 X-Proofpoint-GUID: 1a0RofX3XbHRR3VSnNYqE7VPjWiZKjrZ X-Proofpoint-ORIG-GUID: 1a0RofX3XbHRR3VSnNYqE7VPjWiZKjrZ X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9945 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 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-2104050141 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:267439 Archived-At: > > 1) Are there any option to move the cursor to the start of the candidat= e > > after the search? I see that there is an isearch-other-end. But it is > > not a custom but an internal variable. Now I am using a hook but it > > seems a bit hacky. >=20 > As you see from the discussion, adding a defcustom makes little sense, > because this feature might be needed only occasionally, so better > to be bound to a special key, e.g. C-RET to exit and move to other-end, > S-RET to exit and mark the found string as a region. FWIW, I don't see that from "the discussion". I see that that's what you proposed. I described something different, and I opposed binding keys for what you describe. For something that you yourself claim might be needed only occasionally, there's no reason to add a key for that, let alone two keys. In particular, I'm not in favor of adding keys for exiting + performing an action. Better to add keys for toggling some search behavior, and leave exiting keys as they are. There are many keys to exit search, and there's no reason to suppose that they shouldn't perform the particular action you have in mind, and instead that only some other dedicated key should perform that action. In general, it's better to have a variable that defines the action, and a key that toggles it. That way, users can themselves decide whether or not to continue having it be in effect - they can switch it on/off on the fly anytime during search. And they can continue to use any of the keys they usually use to exit the search, and have those keys also effect the action.