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 17:43:51 +0000 Message-ID: References: <87bkn52dso.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="16910"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Heerdegen , Emacs Development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 11 18:44:58 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 1pFf9l-00045Q-3j for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Jan 2023 18:44:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFf8s-0005OL-GN; Wed, 11 Jan 2023 12:44:02 -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 1pFf8r-0005O1-No for emacs-devel@gnu.org; Wed, 11 Jan 2023 12:44:01 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFf8p-0003lO-Eg for emacs-devel@gnu.org; Wed, 11 Jan 2023 12:44:01 -0500 Original-Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30BGjBVQ027678; Wed, 11 Jan 2023 17:43:54 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=TsT0qkylTnfBTe0oZ1jQK48DhV3y/P3tPQkWymXIoRY=; b=snynMAohahu1yz8uctjvbdlavvCwRMOsZzBxOlijN9cBUdKq9TCBS1UTas1vEQqYq+m7 rqXqDyA4UJfadqAsM/qt+o2LFhAstHBoL2NqPv9yAy6nAjxGsrSup1UxDsw9UJWU5NnR vY7jy0xrzFUfk2sveUJ2p0oacnH6J5p9eDMEeqFlZahcLT6gvAxDx7E2M8feu0qTCXT5 T+FpjTk6vsrz/ptND+c/uxHqx1D65u2UUt07k3YBMwxqPgBXN104kK8PGjRlb47bsbWm rMWy+kEJOLeF963KY+hx14urp29KchTXR+0WV4MNWrcXdZBq9lel2S2XfcuQiawa0XtC oQ== Original-Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3n14nfbyuv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 Jan 2023 17:43:54 +0000 Original-Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30BHPeMq007540; Wed, 11 Jan 2023 17:43:53 GMT Original-Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2040.outbound.protection.outlook.com [104.47.51.40]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3n1k4b1kbr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 Jan 2023 17:43:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iVxYkz2fdO34FBnYiTBYAC9xL6j65JrB1tR+BE4JtL0/PJv0Otx/Zedtho7wP6yUaGpTuo1ynR5iQpTY5jOuFAtzmyMeuJSJai+PagDZfDJZubPeX4sJDm61URoslyhUhFJ9fWfXoR4n6XuWyqGYmurVto6DS+0gK7J9aIqhnzZNRUcFQZt3G7vyVy0Nh2/I41CR0ZEpma1uWHl6RQUwaNleRBVi+oWiLrFmuDIVh+gERw8G9iLMm6Gm16I0kxRsgFd/vmaDpClaK5Vl3Rnbjtp/Yef63lP3drfmdaW8jH+aLz0CX9jsSDW4693rrdo0xx0k0qpz9oMjRJASemw7Mg== 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=TsT0qkylTnfBTe0oZ1jQK48DhV3y/P3tPQkWymXIoRY=; b=MCIaSaaJaVI4WHyz8N28my0Hbcw+iAowOy+dQgHM0K/hl51Kt0CmWE6jUB7vHJHvuahVtUN2XDOscnW9HsTBpce0beAxe22XVLvrsUEjWrjUuNKs++eCQuqtDaj3eph3aYQWX+twZr3oBhQfzb7dwnUealI7ZnQ0I2wDmn6FKCd0n/G8ryMI4WkDtKmL0+spYNq5bzLEnpJWc12vmh5JKnCF95W32LaIVnai/EB/dEFL+UOAdrDFttTgXwHxK7HxVdcibiFifNuikK8cxEs8IEXEmAkYJbMGQAeEufA89tPzJnPvW8HqZhEqQoSWzPRtXw9BzD/81+LXJdG20rDPPg== 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=TsT0qkylTnfBTe0oZ1jQK48DhV3y/P3tPQkWymXIoRY=; b=PH++C1hiVy4ot0KdG5R0GhkG5hiGvHxslCEEr8kDTGhiM/rzGR3YE2d1pVEHl4ZmWMdLakBPdCT6r74do82OWJS7b2B/n4tZBVulUh9JC5km5ehCMzPVvKny4fV73u8avJdlEsPBIBd5aKaER5Z+A8DIVErQT0yjlmKRmOoWtec= Original-Received: from CO6PR10MB5473.namprd10.prod.outlook.com (2603:10b6:5:355::21) by BN0PR10MB5094.namprd10.prod.outlook.com (2603:10b6:408:129::5) 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 17:43:51 +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 17:43:51 +0000 Thread-Topic: [External] : Partly deferred font-locking? Thread-Index: AQHZJeCbdF/r7APeJku16D1G7gGoxK6ZeUag In-Reply-To: <87bkn52dso.fsf@web.de> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR10MB5473:EE_|BN0PR10MB5094:EE_ x-ms-office365-filtering-correlation-id: e0a0b00f-71b3-490b-2bd0-08daf3fb66ff x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6KKdyoz8qJKpwCAFwpyE4983UnptX/LDgv1gjbqt6M24UJKi9ZBAtnnVwukm9J/fPJW+K69XTvu2WxXGSJYIBH0K4AKiBw717cJOnnu+9SWfK+DC3ojyfRQ1Pvcs602bTSKjP5thU9OiM+bwtpC6Pz06TTcS8/b3cGgSICxWwdi3/+vYsr2IUwgQlMmJo5DnqOBNuJYzLWq5R72Rpp8mDn6M6ECN9+CbGQeFUKYvfRxmyLwLJohAk9AI0gfKhmAF7Qd7EUe3ekBYCFj5rH4NsgTs0rNc+VS0eQ7E+Tm1Ce4To1sJhGSCtE/t04THcjIeKnl5yt3p8N5dj1LVmVZpUpYlLFYrVghaiuxvta7AP5oLhmE9dnzgYGdpFpudfM0FpgypOXasKif4Y/2aJ3QJGmTDti0F0DL8mVGID5aKbi0BVGUyWabIIMCK4jVKPLrgEFT2bKyrB64n6hCwgSGUvzyVT5UlwcghNFqavNyOi02GQwPaljhZaDVyy+tXmKENGRYUBJDzz1auxCcJp/oDT2SVUgk1P2agJ9yEpoA3kstQ0STyMbP7l7lIkexAj71kxKgQLH3A4zyDTZtol1WsSrMA3zin5eNba3hAfHnJIRzznTKLHJ5qXQGsRm4IctIiRpUvIeOrGKZOHYv+f8Xzhc5FaSg3+bMQ4Ne+jvIDm2Cs7WJ/kZ6TAxB4eOHj4gBhGWov4qpjhHK66vNP3A9cXw== 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)(39860400002)(396003)(136003)(366004)(376002)(451199015)(86362001)(7696005)(38100700002)(71200400001)(38070700005)(478600001)(186003)(26005)(6506007)(55016003)(33656002)(9686003)(41300700001)(76116006)(8676002)(66946007)(66476007)(66446008)(66556008)(5660300002)(64756008)(8936002)(83380400001)(52536014)(110136005)(316002)(122000001)(44832011)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?xKa1GcJwHttRwAL3ucEZgLDOvGCHgmxAIPBtyJ7LZ34+jb5QaXe5qJgWF+yr?= =?us-ascii?Q?hJ9M3qnMT6wVZneWC1pmJ4om5vs7T2qAOZjXCCVobrmlNOBNrGjwWJcxIG6Z?= =?us-ascii?Q?QlUX56udi2jYEtjVH9fm3Jf6LbQWpOPcs6drV2XHQWCJsgBGaijU4ncnGwv9?= =?us-ascii?Q?oyN6BPsT7o1C48mVVYwTTcG9JkBJGKbedgprH/vy43nhPOTigEQPpeGZm9Cx?= =?us-ascii?Q?e3NPvlYIrqn8s2Wumxg+8nI/XzPwMlynUKMH7w/A+TlarmrZNXrlYa71/A/W?= =?us-ascii?Q?h5GlnepGg448B+dwxpRKsRD8kJBpzWrXBHZguQT/TQdiruKnRwe90XwlDOfI?= =?us-ascii?Q?O5m6gT+TxTgtTylVfq5QZFQJw7tXmGVc7UfXj97XGNSMJXBpo+kCsKmAPMcd?= =?us-ascii?Q?jFnCkoXcrix6MzhNmEZHhcJBcBPMLdf1nwdQz3Mvo1NjivHQxyPguIIgQw+W?= =?us-ascii?Q?OXCdyKCnwc1IDyPhIGdsBUC2+GIW0UXCT4Ru8p5tj866aCkkPZRmL9+K3aU7?= =?us-ascii?Q?HEzS4EqxZqeRzOV7R/d1TZ1y9eeV9vu1k1zzlpfyXzpo9ZwvKZ1Tt7HmpFa9?= =?us-ascii?Q?VITyddH+0qvfMnL1agfJfmX7p/oOv07SAt1ymNQUN1hUWZyldgP8y38E7yUe?= =?us-ascii?Q?tY X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: tdTHQ6ueou3AAm5ztqd/FdiGizvhrt5Oh0NNxgZdDcdY1PJU/gbwenoF4r/Kk+q2tcY0ThkPOYKstXW14Pf819c4HeEnEYXd83AZjS1yyaamrvkE7+WdCyV7WsdyHNN/BO08uKnlD9gnXAjMxloXZzvlwcTmhQYEqJ28r73ZKpg8wz5zcLEk36RrKxd9E9EFsJ71wQ2TbUEb6z6oV4l2+ulDJ2RgNRfsas4vluaskgHD0ufnWPLbXgHQsr5z4kobNquwDYrwN1AoYUc5X5DT0U3oQGxCaY4vkrnpkEnVYxepAHIBko9ECAvFeVLuEL/t2mGCaYVnGzUHk81dl0cbjt/6uq/l8qqQj71SY0i5H2VUXFrvNFcMYg6IWQDqpx6jonYSWjely/W6PLIJbaX2g4mxxn6uFd/6Q/npG6PWHGOWBfALA5+kqkIfjH2XRh5S3A7Ba5XP9vYAU5NA1mNN6+7Bv0v93rAlw8oool/dy3v1umBFg0HDmnH26jVMueDgXDqdDB+wPqLxl/JaoOuPkXWrYBR9k3ALfQRm9x/Z5xFEzOq1Yfx/DUSy+RNcUoLbGC3iuHbm5Bb33pocwprwDDsYX/Ugb3IQhybbJXZjmOF/r387PcAqb3RVTfYrypZxnmoq9zety3liwVVn3n/u92jnOIPlEy/EuA6I4QdIM6C9KBDPY0HmXqMswRBvudHJm1UaHtWO0+LdBCBaR8QihsQNgI0b7w4S3/WcIyFTuer1DS VsIp/YGvrTgClrn8WL 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: e0a0b00f-71b3-490b-2bd0-08daf3fb66ff X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jan 2023 17:43:51.6097 (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: 2zQ/ktsSlMDi9EIbKmpn38sm2yQ3s+Lfr8oJByC1MV1kqwTym2GUABCKlVETQdNa6OPGFWnLmbyarfqGLoh7eA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB5094 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_07,2023-01-11_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=917 mlxscore=0 spamscore=0 bulkscore=0 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301110129 X-Proofpoint-ORIG-GUID: XFWfR80m0F9qX1KEv0uZ94OLf-Y4q1Uz X-Proofpoint-GUID: XFWfR80m0F9qX1KEv0uZ94OLf-Y4q1Uz Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-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:302351 Archived-At: > Is it somehow possible to defer (only) the more expensive parts of > font-lock using a timer? A use case would be the symlink-target > checking fontification rules in dired: the need to check the target file > properties makes scrolling large dired buffers sluggish. >=20 > It seems there are only global settings available that also always > influence font-locking completely as a whole (`jit-lock-stealth-time', > `jit-lock-defer-time'). >=20 > Are there other ways? Or would it be worth to implement? There's option `font-lock-maximum-decoration'. However, it's up to a major mode whether to provide multiple levels, and how many to provide. 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 AFAIK, hardly any major modes, even those from vanilla Emacs itself, provide multiple levels. So it's not clear whether improvement in the possibilities would actually be put to use by modes, to give users more control.