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.bugs Subject: bug#54296: [External] : bug#54296: Add buffer-matching functionality Date: Thu, 10 Mar 2022 14:52:46 +0000 Message-ID: References: <87ee3d4cli.fsf@posteo.net> <87k0d35c82.fsf@gnus.org> <877d92unqn.fsf@posteo.net> <83bkyednvx.fsf@gnu.org> <87cziudmyg.fsf@posteo.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="32727"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "54296@debbugs.gnu.org" <54296@debbugs.gnu.org>, "larsi@gnus.org" To: Philip Kaludercic , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 10 15:53:22 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nSKAM-0008KW-0R for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Mar 2022 15:53:22 +0100 Original-Received: from localhost ([::1]:46104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSKAK-0001LJ-Hm for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Mar 2022 09:53:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSKA2-0001Ki-DR for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 09:53:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39749) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSKA2-0003hD-4o for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 09:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nSKA2-0005AV-3G for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2022 09:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2022 14:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54296 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 54296-submit@debbugs.gnu.org id=B54296.164692397919859 (code B ref 54296); Thu, 10 Mar 2022 14:53:02 +0000 Original-Received: (at 54296) by debbugs.gnu.org; 10 Mar 2022 14:52:59 +0000 Original-Received: from localhost ([127.0.0.1]:33646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSK9z-0005AF-HM for submit@debbugs.gnu.org; Thu, 10 Mar 2022 09:52:59 -0500 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:62758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSK9v-0005A1-58 for 54296@debbugs.gnu.org; Thu, 10 Mar 2022 09:52:58 -0500 Original-Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22ADe0U6028062; Thu, 10 Mar 2022 14:52:51 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-2021-07-09; bh=5pfePcujnSGBvH1CA7tqGYPcLYm7mkCJOGuU45qU0J4=; b=E59VY4hMNGE3QUNUEQAmpPgGxN5oExwZXemUuUPZtbHVeilPXNWNRAHXro5EEfw+qPNZ 9+JsN8gAZEQnRtW+0hV4pz+z0hvqW+f051I/DDr6/Bfh3c7Ui4vG+vjxZ6Hjd+hIhhNx 4IlEXm3CyvCxFNFC32lHwK1mQi49LlJp5GgzTcjBWRjR+CdVf5EG0EauprCwGPswzAfN q1ZDzv5GcBDiQOvVZa9LMZytdh9yVioDzT77PWCAafc/3525itz9cSaa2ZJWwJHgnl50 nWdmjpDogrXzzvycfACjfTVLD2q+2PX5gGTpFbdEGkT38jJukfK8IuCK8D0TCDbRnjxE og== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3ekx9cna5j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Mar 2022 14:52:50 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 22AEkOo0059846; Thu, 10 Mar 2022 14:52:49 GMT Original-Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2172.outbound.protection.outlook.com [104.47.55.172]) by userp3020.oracle.com with ESMTP id 3envvnahnb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Mar 2022 14:52:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n96U79Z7ymkTMTe4Tn7qrIvLOYoEM6YNLxFrEmMRWPnB1369/sekRLjyzRS2FKRgTyhSLjxs4WnUMNYsB3sL0TddhAGQLSf6DiLBvAFzJPiDy7I4NFRR577MGxj7EN6y78DmXgQ0EwUcYT6JJNDhKnX1ox/Unb/YQRImjXJYIU/26ratCxqeER/MVZimfdOaqcc0pxG2homx9xw2bhD5/EiRdVM+it7c9mITzJ+OBO2xSrKAhh9VupJ2tGm71NLVbxx5XZEEv2nDVQUXUa6mp7K3R1JUpTpt8XtgbvPUpUtWmH1LdVgK3Ik/heGIg1d2GPuXfsJqHH9ifp3VwRS6kQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5pfePcujnSGBvH1CA7tqGYPcLYm7mkCJOGuU45qU0J4=; b=d+rwkrQSeZZb0C6PEl4xCtlYzNJae2hYXtsUDgaut16V1kkK5UNfkQB3E/eOlGfnP9hqUkkhrt03uxG2tcIPmUHfoagD14RBvM8uqK6ot/1QpEi9/NFnPMeYDB/xk68Cu1REi15TAy/f6FdlF6YnRkCM4qDWr6tnSNic8QTzwA/b8PUaLsA/vQO+VRvPJyiv17pxidVVSPr8PlppEMmxJyoZoCL6YgC5Zi85+6vN6RgsfHNiYMvLsocncJG26e2k5EAHJopuytCcuZJzax4hs83t3B+t4VnCineR8f+ZKsordpxId7zsZG+b+GDVOxFOl1KUSaXOLXZpEHfHCT1qgQ== 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=5pfePcujnSGBvH1CA7tqGYPcLYm7mkCJOGuU45qU0J4=; b=VBgfIteQsxfVGRmvBmYyrXNBx1aDExXPCs6urnbzCCOtgGlA0ydfIKuDP787axU2xz/wDGlePM4EL237GF9vxRzsBLldjBIn9si5ppN8pu/hZmOUzlsTt4k2bEMv5Se0LGTtYbXwmm6PsJhtCVeiSGAECyzkxsYFtpe33XvXAKw= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB2725.namprd10.prod.outlook.com (2603:10b6:a02:b0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.22; Thu, 10 Mar 2022 14:52:46 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::ec69:8077:89b0:4379]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::ec69:8077:89b0:4379%6]) with mapi id 15.20.5061.021; Thu, 10 Mar 2022 14:52:46 +0000 Thread-Topic: [External] : bug#54296: Add buffer-matching functionality Thread-Index: AQHYNHiO4+foVpn8zUysorVKnzE6fKy4su4w In-Reply-To: <87cziudmyg.fsf@posteo.net> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 948e4d20-39ca-45c0-e7f0-08da02a5a3e7 x-ms-traffictypediagnostic: BYAPR10MB2725:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QpaICHP06fYBLfy66peKRwG9i1gV22x7dkOGgeHCy3PSbaWib9fUtX4JoMV18BvJEMnhTVUpy/SmbkEQp6h/K071l/ax0LskkmkgKQrlp8nmATGxw4c1x1s0citozz0nOZKtZcWAvaBi0ohUJnZJvHppcEPxtcCZJUXUPBMzLrEVcnfR+ySyuVtYTa527u5EfmSZlwhbeh3cDU80aareN7HQPOUwmsDLEkU8iyyhXvKujAH7uYutPmJnxzYGHb6NX7PGHOp3LwYsy7K3v+n9Etpc/M/OP0BSzdfGUcyQYuKgBiRxmgpPGLaV/6Bagnk61LrZYXrSIA8BPPyGbX0dZTsQu1qZBY89LxWTCfVeaPkwlR6RKF9dLNzuw5cDjT3JVgTda/MB5roYA1lxHkrhsM+dDXE72Ulgt+bYn1BFKY8TUV9cOUVkmpljxUFvhFfsuhuKnUnYyIf9spbx9gv6XCISfbBRAodffhFTDVikpl7RgJg1ACURIg/CVhR8XOsJfXD+eltjfGWqG7HIc3VyGmvZ6IhXd7iGx3tLEJm6dHO4VeCFs6Agdgizx9ynK4CQWRsUE9wDSK+HqGMh4iudK66wP/BIFRKTBQfnO+hqkZynvUk6Hs6OUg13ylrn4XIedVUQHswoAK/XZijQJDLwxa7Su7TWsAtzau8mrhe2++y6AgnaOpuk4hTu+7v7t4Ad8yGnbEYX+yEbHaCPITt1ew== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(44832011)(4744005)(8936002)(38100700002)(2906002)(52536014)(122000001)(55016003)(5660300002)(9686003)(6506007)(7696005)(86362001)(4326008)(33656002)(76116006)(316002)(508600001)(66476007)(66556008)(66446008)(66946007)(64756008)(8676002)(38070700005)(54906003)(110136005)(71200400001)(26005)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: FWaSOQg3IBPzoIeajOGRJ0AodjVkIsPqFBH//iGWoj3zM0X+q10uVS9uOVVP9OXHmfS061TwsCLt2w6/EY5FvPIvUyRLVhVdDwyhFlDW5CpiHRj58Px6sQkZPEuq5Nn48Ro9JS6Cc2patBTL+4LDEanGX60h6P8Om1UbsGJSB+5I+hrReKD1pwjpe0QfRQcdqb8a7Sf6n8eebQrQXH8c/UMzUDfhE1IH/LJx+Fa9ecxwGCsNS8r0VthFQe+0Yn1I3DbTnPI3kSBOJWdOn1tPtV/RZPpj261txVsjai493Jm4zAVUITtKbaB71Q3QtuGe/j0UGxEjFr54QM0X6Ipc6x50OvNLTW7NHtpu+DGaHTj48eJRBxwZQY2asBWOmWHhaR2Uc2AW7oUzecFaqvbwd5zTlh2IKf39qdy54jBcuInbagZsXpFnRwOahyo6Vw6USW4eZW/TUEHu+5GcyJ86eciS2Jb14pKVHPEricrg/JFUaXBk8oNPr7UOa70I2iRW4b0CFqHxh09sSINw0DL9lvw/ZISNnQidVd85/iZZUlO2kTlZy3fRFSx1dN4zqy60fuV7a7g+a5EECvekrlib7TFbFDdO0r9I3xX8ChOmTVw2HAirwj+z0KBHAprYuZT9T9n107jEE5jM3D50uuXNTjzM+HBWhYfjXUmWwMhlTW95p4SNk6qaSTgpQKQFn6yypqENizgMuJbGDe5tYnfRnJrx+vI3eHf04W0YNXNDxoqbPh30dIcWapfL0Z gRmDLGmqAoJQKNvewh/MyLfTm988dZt4UhGjFtVjFhn/jlM6glcILn24X7EiBD+qrTYH1i5gaQBZHFjQPAPhcI7x4Gs6S/7XKv X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 948e4d20-39ca-45c0-e7f0-08da02a5a3e7 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Mar 2022 14:52:46.8777 (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: 1pMWaiaXjcLhjn+RkSYWQIDKr9BrakyluKMXsXfHRis7BD7XavorO7r/cIt+YOE/bv+R/zfEJbeE7HWRmPgwSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB2725 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10281 signatures=692062 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=822 bulkscore=0 phishscore=0 malwarescore=0 suspectscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203100080 X-Proofpoint-ORIG-GUID: lUyTSYxtK8ZdGpeIy-QGE3X_78_l-sBx X-Proofpoint-GUID: lUyTSYxtK8ZdGpeIy-QGE3X_78_l-sBx X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228189 Archived-At: > > This is a predicate function, so its name should be buffer-matches-p > > or maybe buffer-matches-condition-p. >=20 > I like buffer-matches-p. (I'm not following this thread, BTW.) "Matching" typically has a connotation of pattern matching. In the case of Emacs it is especially about textual patterns matching text. If you're testing a buffer object, and not just its text or its name, then it's probably better to speak of the buffer "satisfying" a condition or a predicate than it is to speak of it "matching" a condition or a predicate. In general, patterns are matched; conditions and predicates are satisfied.