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: [WIP PATCH] Controlling Isearch from the minibuffer Date: Tue, 11 May 2021 19:38:46 +0000 Message-ID: References: <87zgx5cz33.fsf@gmail.com> <878s4n4wn8.fsf@gmail.com> <87y2clve4m.fsf@gmail.com> <87o8dh15d7.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="39432"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , Augusto Stoffel , "emacs-devel@gnu.org" To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 11 21:39:49 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 1lgYEP-000A89-EH for ged-emacs-devel@m.gmane-mx.org; Tue, 11 May 2021 21:39:49 +0200 Original-Received: from localhost ([::1]:47168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgYEO-0008Dj-GV for ged-emacs-devel@m.gmane-mx.org; Tue, 11 May 2021 15:39:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgYDX-0007D0-Kc for emacs-devel@gnu.org; Tue, 11 May 2021 15:38:59 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:33992) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgYDV-00074a-Gq for emacs-devel@gnu.org; Tue, 11 May 2021 15:38:55 -0400 Original-Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 14BJaHU2020104; Tue, 11 May 2021 19:38:50 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=6rZKlwDfkvs3/McktSmQtfiwhb8isjNR0nnRcdExXOo=; b=yAEOV3GvcxeT1IwWl9XKPoDxeD6b5J1FBHHutnrFDosG24rV1LSqiIDaVjyzfREcF23f C4dh4zXiXemQG/CGA+HJPZ6M1V7qGuJXHH4NbU3W0PaTOZ77mGSkA7RGKx5hHjaAq7NG zphMtb+XA97r6e+KQKWp6EmjqR1J04AoXFTPQKOYLci0lkSWRFXXuEAHas1uvApOqxA7 0YJVuyRbRYFNhROAyCoa3ivx1CMtD+042j7r15Ve0tvkgbv9JyGqjDFRM3a6rxPkJP7P E+hwrDFUNjA8bdFt2skx2cILSoTkkfEjgGfI9nDnc+kgymLbRWLqdO0fg7mM2cD7Yr0V /A== Original-Received: from oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 38eymb8ffc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 11 May 2021 19:38:49 +0000 Original-Received: from userp3030.oracle.com (userp3030.oracle.com [127.0.0.1]) by pps.podrdrct (8.16.0.36/8.16.0.36) with SMTP id 14BJbJPs194798; Tue, 11 May 2021 19:38:48 GMT Original-Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2103.outbound.protection.outlook.com [104.47.58.103]) by userp3030.oracle.com with ESMTP id 38dfrxrx9w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 11 May 2021 19:38:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=je8NbpyAu8EAAUCbG+1PBRWz+UQwc3k1xGFtGvrKoHxdUmL+fZ8SNDCet8egMll2qWJwLsN0s3lON5JjCYZZM2Kikw6jzvMl4rXjqZlvq2s5oQ+eTMkhnRebd0bbdHqDE8fkYWmxA3ixg1K4+qfhUAeWRr/xhXKMsQTkXLAcWbmJ4uK6UMxFfmNtw+3xiHZax/JMecPZnr3ZeAgMfikZxIAcAf0C3120sop60WR1CQqr/G+sE3HNJq56Us3ikzeJaoNS/apzeeCKU5bCn58gvm0WPOCs5eGl5UcXewBG1fBS9N8rMv9hTIlyecE0+0lgvi+dQgMJDQxe86FnZ1g3Iw== 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=6rZKlwDfkvs3/McktSmQtfiwhb8isjNR0nnRcdExXOo=; b=XHiNpgLcGkPmA8a7402q0s+DQc58ZlAzCSKDpCw/xrB0yvf8ybpHPBlR0LuVhLOQTtd/n5bNq33YD58WsNuPD1IkUaS3y+E7ai+85vTxqYcUQb9u14Qdzz61KdNcqu96mBuhMJfKxalrzt2if9DahvnbiGtCHaWIGy3tKTwSr9/xEKxJsWPRdzZC3546v/la4OLhEJJmvhLEsWiCxv7DboLb8Hj8lZfQHMC1Usa3Bu2OxhL2SgvHj+UiFLr7MsQqsuTv6PL9asfghWecja+e2UXrCtTdJRM8jNc8VRYjxMbnFNalTrqURoxY+kdpxUvO09Cbaqi+Vle6lKu0B+1R4Q== 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=6rZKlwDfkvs3/McktSmQtfiwhb8isjNR0nnRcdExXOo=; b=ORUAtxYtkWm73+uVOIcAsL77ZM+Q/xwpYhTjAmGd9Ll2+h1Oid0kB5QlsMOTEY3/rs8iLzuIJgxdY2KLUzWz+3pyqBaCKzoV1Ht/Z7f8LJfrRbB8yzKigPVc+5DhpovNQf2WxbDHLKVIJrml/+oUDrrHeRiMAp8esnbNAzUkNBY= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2958.namprd10.prod.outlook.com (2603:10b6:805:db::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Tue, 11 May 2021 19:38:46 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::2109:9725:fd4a:6494]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::2109:9725:fd4a:6494%6]) with mapi id 15.20.4087.049; Tue, 11 May 2021 19:38:46 +0000 Thread-Topic: [External] : Re: [WIP PATCH] Controlling Isearch from the minibuffer Thread-Index: AQHXRplIjqasdIjeq0mxUab85KqaP6reqPYQ In-Reply-To: <87o8dh15d7.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: 1a6194d9-db17-4375-6e3b-08d914b46483 x-ms-traffictypediagnostic: SN6PR10MB2958: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1775; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: GXMO4ilhe7uUwr6qBI6rsxyoWVzoOC9Uz1PpFwAr+gJYeYil0pgv6msPqs0vpYHNXo/mI9+l4nB7jtBi1IvS7sJ1MPFieOnv03HPvAhzfvLVo+RIqwjHk0/HvT413A0blu5LNWUh66rf3pqT1vbKZPJZN3R1ezgpglCWwzlkidp22HfeNPgB4uAdxt8qMIq0wUsmvaH6l2jmMIXzJzNBh9LwozpPi10IS0cLef0mZDYlKiT+8LkPywFyWKEdMyHQQyru2bIfue4m+4Va2Mwh0i219uLo3YQeaEGlTtmpSP+yN3+E1BpgwOW6J8y48D2k1yDJ7KJDdemYnR71nnsW0uDSKTc6SVw193DDSXGMVNlEgX6WnzmoCy97iqvG79yaosxkINI0kYttWCGz6GGvyEuGiSOUFbThSgENSR1NN01//TfG1+jYXFovVxrcFCzFrCk4LRSX9wA078eQogQl3Nk7ms+jHVjUlrAD1LbC+usXt33JFz3sc5LjIcdEfscz6JALvFEuEQ+fV0f4qMNS9qml+e5nUDmkBJBLf5bAkNBXBnM72DZo1Kj4Nm1Mv390wHC6Owii9AS3yYzG7nqrKIcbyPWhnuO+hC6kVE6WtaM= 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)(366004)(39860400002)(136003)(396003)(346002)(2906002)(44832011)(54906003)(122000001)(5660300002)(52536014)(316002)(55016002)(71200400001)(8936002)(9686003)(86362001)(4326008)(38100700002)(186003)(6916009)(76116006)(478600001)(66446008)(64756008)(7696005)(66556008)(66476007)(66946007)(26005)(6506007)(8676002)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?v88rjKchVQpwP+z2ASQmT48T7yU0b1bGuwacptrgfWYpbJeMn+FySzRQb8PU?= =?us-ascii?Q?792XfTopqzC1mZcekNEKkCnKssZLVNc5sv1Wg4ToAnTcG82HRg57vgZFDSTz?= =?us-ascii?Q?ZI9beehkLWQG76+8whb2ORqeNULrs/gPNrWbQ47tzP1luDLMMC+Go4R2j1l5?= =?us-ascii?Q?shKSdu7FnMH9tJXOrNcDQkV+22inZu22+BRaJuTyWOHhst6uCURa/EuVxoNz?= =?us-ascii?Q?0DjBKSH4HH5nZCkTX/T2SHKayctbcltEB49P1DOcR0nQtHzV+vXXujhQCUOm?= =?us-ascii?Q?8U98uIL5mUAd0EwCq8yto58iq43e+m/3rRPS2BLQV9osmxZIlKKkoM2U75MW?= =?us-ascii?Q?rKoQhAD488CTnUp4q9qEDBwLCXqs+TKPVJHBtX1bYSuvLy9el8L6JrYSoOWY?= =?us-ascii?Q?4JK5ljfsTVZNJSS+IOPSkbDlKSplJ8lckfGP6B2+p+VdCtUz+xdhtrWfVv2t?= =?us-ascii?Q?aPtE/3i1eKxGdYMal0Hzey/OURz/gKaeGlWQIGTi9n+SOWmT/jSTZDzUon+M?= =?us-ascii?Q?y2g3VKMHpj1XjpvNeEP5re5mYZKVH+LbbT2u6sw5iw4o7LvP3GFy86YzH6ZY?= =?us-ascii?Q?Kt3ytqymHXT0jrJB4VqFztv8ksP7yZ0NN93upyL3RGZ+xagZAC5z17EKgwTC?= =?us-ascii?Q?rTz1 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: 1a6194d9-db17-4375-6e3b-08d914b46483 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2021 19:38:46.1823 (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: RcSP5PFwmOX6/pDm9WB948Zzzhuch3/b7Yjei7VdADK+Hi0oTkuUcNX3C/ukejm3mTumOLJ2iMIYSUXuk0wjOA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2958 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9981 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=969 phishscore=0 adultscore=0 bulkscore=0 mlxscore=0 suspectscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105110130 X-Proofpoint-ORIG-GUID: eLyyqsfSOo4AP2aTAqy81KYAy9PfZNmt X-Proofpoint-GUID: eLyyqsfSOo4AP2aTAqy81KYAy9PfZNmt Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=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:269184 Archived-At: > > Here's another alternative you might consider, which > > doesn't throw out the adorable baby with the claimed > > dirty bathwater. It's offered by `isearch+.el' via > > option `isearchp-initiate-edit-commands': >=20 > This looks like the option 'edit' of 'search-exit-option'. I see that you've changed that in Emacs 27, from its former simple choice of ON/OFF. But no, it's apparently not the same thing. Your `edit' value applies to all "Other control and meta characters", though the doc string of that option isn't clear about this, and that description is from the doc string of `isearch-forward'. A cursory look at 27.2 `isearch-pre-command-hook' code indicates that the `edit' value of that option only does what `M-e' does: it sets `this-command' to `isearch-edit-string'. IOW, it sounds like just a way to do `M-e' by hitting "Other control and meta" keys. The feature I described is very different. It lets you specify the behavior of _specific commands_, having them (1) invoke editing the search pattern and (2) perform their normal actions on the search pattern. (A normal action being typically to move backward, possibly deleting some text.) So really, there's nothing in common with what an `edit' value for `search-exit-option' does.