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] : Partly deferred font-locking? Date: Wed, 11 Jan 2023 18:49:27 +0000 Message-ID: References: <87bkn52dso.fsf@web.de> <877cxs3oqt.fsf@web.de> 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="32955"; mail-complaints-to="usenet@ciao.gmane.io" To: Drew Adams , Michael Heerdegen , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 11 19:50:24 2023 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 1pFgB5-0008LC-F3 for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Jan 2023 19:50:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFgAK-0006Mb-A8; Wed, 11 Jan 2023 13:49:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFgAI-0006MN-Cs for emacs-devel@gnu.org; Wed, 11 Jan 2023 13:49:34 -0500 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFgAG-0005op-2T for emacs-devel@gnu.org; Wed, 11 Jan 2023 13:49:34 -0500 Original-Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30BIDxRX019201; Wed, 11 Jan 2023 18:49:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=QWU+9tgk2iQ3M5veVsKOz0UZjwpwXZx4xq5UQjI5jfc=; b=KMrcmsD0FHxRZSaG5ThhqMn5dlNkiH/0apWgK2tlXboxTb8SyOAQMKrEzg4QMoCekOo6 A8pTWvnrUgEQmtk9R+h9Oh+Kq0cYfF2gqDvVdjmc/Wrx9E9s2b1WDtFvWkhJtPVn7eep XH1BUZIu4h5ujeHr7Td2hQ1YijlufdpUDp/hM1DUDd/eZWICNkKxY6e2AuFNnWCgj55W ssx8cWZn9mkQGX/piquuO+1Hrlb5OUwqIfCpKn8WjJnp5dlYxDKRYvmxcOq5kywExB/1 zGTesLDahNo3VRDL3eZsmoVfq7G3NJpT6dOpdhk0ETv2vFU3BNgO4+zsMCsWAiVt3ypb aQ== Original-Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3n1y1ngrub-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 Jan 2023 18:49:30 +0000 Original-Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30BHkECe005416; Wed, 11 Jan 2023 18:49:29 GMT Original-Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3n1k4a4jy0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 Jan 2023 18:49:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ek9aPXyd6sgWa0/pI9+xPDD/JehOGWfJDeWIcoZg30nrpVuJGJ/hluY3J4MO1UBGyWiux5Qsn8dHzgRnYfr/YBkCIwKrXDLiOKRv6G1eKSGUgiUt1qLnqfK6uKA9q9b7WSQxSzd1i5hkSclLMI7igKppvLvWGC7mtTRoO9eJTsI1X3ahiP2pPRVX7avbetslAT4OCob3DaRSXeYO111PfVk8QkkJwwVbrb9T09mU0HjcmLl364sX50LZ2pAhAw5Jsp9SvSuS1Yf5/nxMLjY1WWwSfeYNO5kvfw1yX7ATOYDhVij2Lr1cZcN2NqMdjdKcfNd2bkzCCgRKpkJH35HjIQ== 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=QWU+9tgk2iQ3M5veVsKOz0UZjwpwXZx4xq5UQjI5jfc=; b=ASLww9ifbX+DQGo+bIO0XEL2aCddQc4mKwnGp5lmNZFWTIF4HjvSL6Trq7zJVHpx09k4BcZDQQaPYDh8WUej77D+AsGJl1qYlwp3GKTIFRfXsiKDG9rZiFRbuMzddPElpTD3+0zChqbooRXyNIx05dmp7IHo4HS3V4Q7VtM/VIDmrA4EkJEqQIa9ZGJr/QkiwAQPIW30IQ2QHVWU2RDi7OWH+lJYhhEfrKGruZrxeOE0Bhfnw4/KMQJO/VLxYnfiAX5G+bJcUbFqR23KEY+oAspVBDlKam4I+HzzgAYxgCoVG4OX9jj4cXpbhQ5L8rbel8qvWkq9uIVVzxySFIXizA== 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=QWU+9tgk2iQ3M5veVsKOz0UZjwpwXZx4xq5UQjI5jfc=; b=o4dgSW4foNte05mjUeoEtrIgMWbqGpu/BapSWZfT79iWVAdq0BpG2a04nE509G5DqICH2N10KoVeKktkK8oIZ5i6G5UfvsE3iKKHZTUfQW1pzsgspNEaboCetW3xg7QJUoqCRSYCzc8opnXzCFT/QZ2nZelbMglKevniUfQVHDM= Original-Received: from CO6PR10MB5473.namprd10.prod.outlook.com (2603:10b6:5:355::21) by DS7PR10MB5213.namprd10.prod.outlook.com (2603:10b6:5:3aa::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Wed, 11 Jan 2023 18:49:27 +0000 Original-Received: from CO6PR10MB5473.namprd10.prod.outlook.com ([fe80::59af:ade8:1aa1:3ec0]) by CO6PR10MB5473.namprd10.prod.outlook.com ([fe80::59af:ade8:1aa1:3ec0%9]) with mapi id 15.20.6002.011; Wed, 11 Jan 2023 18:49:27 +0000 Thread-Topic: [External] : Partly deferred font-locking? Thread-Index: AQHZJetVNWs3j8mbjk2B8+jRD45VDK6Zi4/AgAACULA= In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR10MB5473:EE_|DS7PR10MB5213:EE_ x-ms-office365-filtering-correlation-id: f3c21b15-e80c-47a0-efb4-08daf40490bc x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Qi5inKJl1FB81KJvP8xnQeYuvGp5K/co3+PCarYaPCwly5iTbUgcqjb6x6nbppRpnMFbJUWlLxDGJqxBYaFwoGvFOm4sz9wqOCtAVfxYvAA3/HHw54+qig/C1jWZd4xPb4C23Vqg5jPx7ZIxvyaVy6jXHwkVbODXmN8t6wCoTO3lVB+c2OmygxR0EMoilM/PygDaohhf5oJfsXGSse0YSsFd6CetgZnx1maFS/pH5EaYo7hlo52FIDzg711u9oUJWaGzilMhW8apy0goODEp0mysOWIy5uUIn0JR2Y8gJZWyFpKg1Tjf3nQN63F9lKOIsG0L54nO2ASGn335C75w/5qqSQX/9dmBJi433Ev5Tpakh4e+w/5LYmjT9kIhQp1ENHnBcQLJoMW+pQQTZQSuH7yXBBuOMyBhR7LhOqtkmEPYsSMWPcgEjIj5Aqg7eDD+fTxsZaj+MZkqfLX2LDyiQLewEgYgxXF9WAfsZAERNpz18HHwo5a0pyWOCHaJlMw34f63BOdl47dvKaDdmwb3LmMqg5Oz3x3hrVx67WS2Xey/7L6/HSbDGhfi2ttF3bcKkIW9OSRrC8KCj9C3gi5//+91q8WO+AH/MeYu7MI0iQyQnnijxO2UeUpQRTa79FcsQaXVX7rPoVET+x+TJyHiABxn8a/rn/jSFGcQ9ig9gKVhrmIphORdP7BpAK5CKPGRLSqm7UE5eH8KCNYfKLHSlg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR10MB5473.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(346002)(396003)(376002)(39860400002)(366004)(136003)(451199015)(66446008)(44832011)(4744005)(2906002)(41300700001)(66476007)(8676002)(64756008)(86362001)(8936002)(66556008)(76116006)(52536014)(5660300002)(316002)(33656002)(66946007)(7696005)(83380400001)(71200400001)(478600001)(9686003)(186003)(26005)(2940100002)(6506007)(55016003)(38070700005)(110136005)(122000001)(38100700002)(66899015); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?074m474D5e7n9TQhHkU8W1RhS/R555NbEWns3izVg6983z+SagVlkw1CmGuk?= =?us-ascii?Q?BlifmGzJXhJ0UdRuX1V7DnToN/mILUqpm1gx/8bPI3tEnHi1lDDS5ASPax3W?= =?us-ascii?Q?lmz9cXH1i6IbYqCoO31goZs4+EDpH69wCWKQBX5XCY3p3chyvxiNeRrjPfw8?= =?us-ascii?Q?2/8EgdbrWsgZD4ll/mdrxkvH/vjA4lrp7Tv+qYXTtllBJWG5jYtXToWqe4OG?= =?us-ascii?Q?rtDbwR835i2hmxjl+GiERWRt5t6vJpqsNozCUzzf4xFGOYVQO/H/saCVBu6+?= =?us-ascii?Q?MfznpG49014NTExjuouf+EOEAhR6yMi+VZ+ptctQu5GTBS775lrgwe9E+jsq?= =?us-ascii?Q?cIvXGygCzmsEG5zjnJtKg6a/xgwBCjh3t0ZuZsQ9WTVbI4jxhgiBdr+DPy+L?= =?us-ascii?Q?sCVrDDeDRKkqqXkkqNp5WVBdATO7QTSrHLEkdxhyACaG+vRf97S69TRzr1F4?= =?us-ascii?Q?COHczhK3ZtgkAerQkFCvwlzrQN5PfpqWVmTlzAzA5nUtTzPkqZeM4O75Pve1?= =?us-ascii?Q?pSenyLEEU0l9gsKLwHSXaR4rxpaaRaQd93DTUWd0VLtG6V0P0VLmnSR6F+Hl?= =?us-ascii?Q?LlPkOmjrEUj2U+EK1mGTefk0xkMwb8MIos9rwyY/FSgqnsSxITA2m6VlvpxS?= =?us-ascii?Q?eW X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: tvbUd3K5YVGocc8ZVmuYlRJrDqeWjlzvoo9bsBAOkZwL/qDlyy3aNSaRpBG+Jyz4+vV7J4y9yRLChDxJhdURN3xin2UU0yV02z6wHj/U9GFXQtxz8pme6OQ+wwu7LoG+/5lJqfowLgxO3bAmdVmAXmb9F+AJZeYNFp/H+n43HqHw2ZV8bOXWhjG0Hw20V7GLEAPuat8DAOA64f6CJaiYZTZ4+ZG1jex7Q2batVAiu5K57nDJDx/5c/YOJbkVfcyNdOFNR+PGQNFXGPDx7PkapHVqLeb1JXI3scy9520wBsMTrcUcX4DZBMQeGHEZaQB6em4+AS94aJa1QXO1BWl+oczzVfheEo9zTGU8JEp1mOsn/3qfZOJzsXLS+NnNKobkdzdze/6ohnkge+9Ofr5K5wXwK24+IPGNZwFE8MdAh/g15ltKkBf2pTS7TsertgkjOiY4HQcBQFThDF2jSFBUe2JODlute9F0kwNf+KfBBBMTs42G6/FnPSt6MYysNQXNfdtQiVg/uwWp1AuJwmJBOSKJgDGJIZboff+UCGC5m5gBjWYV1axrPO/nAxFx9zPJ+ojDWbFYF5d0dVgVuftaMbWOWUxR03caIwtmHrCvGL/BJrh7asvvH3/cv6Axi0yaK4hGP6k+n/AtbPyqHFzNfb5o63GgsT8wCo86x66svdDDbv5EMLll8MfQOawu0U4MblFn4+I2xZcx2XJPv330RC6Doslh+UMI7oV0kiNwcZrWpJ P72/o8PQ84nuFa3Pz/ X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5473.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3c21b15-e80c-47a0-efb4-08daf40490bc X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jan 2023 18:49:27.1381 (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: JVu55wr2OzndPcd1VSyc2MBZ+omKWDRUV829xjBXKb2JFI7R638lGdWDNttpIRE+f5znK6hDsPJ0YRlphEaKOw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB5213 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-11_08,2023-01-11_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 suspectscore=0 adultscore=0 spamscore=0 mlxscore=0 bulkscore=0 malwarescore=0 mlxlogscore=838 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301110139 X-Proofpoint-GUID: nLnUduhpe6KG2Nxruo2nhvIEKQn5NTlc X-Proofpoint-ORIG-GUID: nLnUduhpe6KG2Nxruo2nhvIEKQn5NTlc Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302358 Archived-At: > > > Beyond levels, we could imagine being able to > > > specify a list of particular kinds of fontifying > > > per mode. That's not possible with this option > > > today. No doubt there's room for improvement. > > > > But those levels only let the user turn off some parts > > of font-locking, but not to defer those parts, right? >=20 > Yes. I was trying to say that what we offer could > be improved. ;-) And that even what we do offer > (the "levels") doesn't seem to be used (supported > by modes, so usable by users). And your example of fontifying symlinks in Dired is an example of _what_ gets fontified, and not how, no? If that symlink font-lock rule is in a higher level then that already should provide a way to avoid its cost. IOW, IIUC, just choosing not to fontify symlinks should take care of that particular cost. (But maybe I've misunderstood you.)