From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Font lock in org+elisp confused with ?\[ Date: Thu, 01 Apr 2021 09:18:30 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13626"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) Cc: emacs-devel@gnu.org To: Tom Gillespie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 01 09:19:43 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 1lRrcF-0003SQ-5k for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Apr 2021 09:19:43 +0200 Original-Received: from localhost ([::1]:33556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRrcE-0001fH-2y for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Apr 2021 03:19:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRrbF-000184-Jh for emacs-devel@gnu.org; Thu, 01 Apr 2021 03:18:41 -0400 Original-Received: from mail-oln040092069073.outbound.protection.outlook.com ([40.92.69.73]:34332 helo=EUR02-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRrbA-0006kC-Oc for emacs-devel@gnu.org; Thu, 01 Apr 2021 03:18:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZWDPzwWswJc3I+/AOMfcbs2Sy+AvqKxmAFo0ZN7xoV2TihPoILhPcHDsy9IyMe/lr+ZldVItzbLo4f4bQu2+gUxM1H4tYzn7/h3c28mK33GO2opxtxVYbLqonkyr2onNh4/uxIm9adiMcDOIbQQa0CI7FrXf5c0p/G6tSy4J7TBamf3tzyy/a4d9tpHHWBGU35oAthfz49qBE/rNElSgDMq6Z/2/BoAQgVtelk4sSNhwlGh026bABVrM3W7MUeO6z4GHkb+ddPrteBMmEA1eRSSgfqeJ9H7/Fqh2ry61WQd8GhBHqNEigL5EdDDmdi/49fZJ+IZ2kE7jKTqjQMi9cg== 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=sgl2IGxbJPUTcF+4qJHOwB7NReWXZ+UguFoNg1K471A=; b=bayamTidV2qoliqt4q0f9h6yMl/fHVh4HCY+4uz3EXlIrGk1tdixhESlAVv3K4+AsZXHvoFYo7DCPcDEdCO2tQc5Gf+kDUqcxpuubpB+D0J5fcd0q4uXDLIBxdDJ4ue5oaHNRjsZQF1RE6D+j54QQcnN4DQ7ns5lNuSioA5o4QAfKfiNbGn1bHfXm2V/K0eXZiZTs80h1FiKHBDdzr+gdAbMKSLSYqIPZe5oz2D+02Xe9btcK4SfYvD8rThLtTDjwPWebvFOWPpVnJpXsAokCp71hV57K5p80UsU4Z0FEN04cR7lefiWONYpK/FmnuQ9Zm6mGm+KCN02p5PcTB6j8A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sgl2IGxbJPUTcF+4qJHOwB7NReWXZ+UguFoNg1K471A=; b=LG73p/XwOsPc2BEFuWPgyljDvyPuUMdbd2tjA4fGsTVf7qkMsyOsXbsgL1WiERAo4ZgrEWBRczJ68MjuY595CG0It3Pg8eOUPJtAygwriSi237mk5tYhJkevK2j5Ye6sv4JzAKqzU4L2VzTTeyTpX+VhCGBCC2HGX5ATJfe8sw/k1dxD1iMAbS5hZg3Zmhe5Dsvfq7o1tBzqus3rNRJ4Ij7euf8JvPDoEyE7VIaUtF3vaGnKjeOXmulP4tPmIh8O33ZBJjQ3cnCuk9gVUGR/ohUy9uwyBI+6z24TujvZlWEeIF89hqYNdaSCPlNKjRNGjyYoss/mgmARWzSskEcu0A== Original-Received: from VE1EUR02FT008.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1e::4f) by VE1EUR02HT084.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1e::460) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.29; Thu, 1 Apr 2021 07:18:32 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e1e::41) by VE1EUR02FT008.mail.protection.outlook.com (2a01:111:e400:7e1e::72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28 via Frontend Transport; Thu, 1 Apr 2021 07:18:32 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:487E7558557BA964309860723147F341A0ECC1BF14C4F8C1B7A7E08CCA764741; UpperCasedChecksum:1F46C4B91BEA91F4D614DE8375F9B496A5E5D558F976962EB579777558A974E3; SizeAsReceived:7462; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::2103:e705:bc0c:5a8b]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::2103:e705:bc0c:5a8b%6]) with mapi id 15.20.3999.029; Thu, 1 Apr 2021 07:18:32 +0000 In-Reply-To: (Tom Gillespie's message of "Wed, 31 Mar 2021 22:43:12 -0700") X-TMN: [Y1ObBIpXiHsjDoRBcewQNgzaRnko7sIq] X-ClientProxiedBy: AM6PR10CA0070.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:80::47) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <82h7kqmq0p.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from HP-Laptop.homepc (81.232.177.30) by AM6PR10CA0070.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:80::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.26 via Frontend Transport; Thu, 1 Apr 2021 07:18:32 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: e250cbce-a168-4cc7-8a69-08d8f4de5b39 X-MS-TrafficTypeDiagnostic: VE1EUR02HT084: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V/Cdjs8Ck0G/d3t/9LnySWgD2yLKBioRYRvYa+jsROIDG4RK6SHfZymBhE0HEPbG18bqytYSigJzNQOUc/2scuaL9ZpvntK5LRWYmdPSvQQIfkeZDvC7Wdj1nJselekKgK1LRrD142++oM6jgQS7b5hz/gA1dlcI21ugrvAPbQEyAfST6vX0qX+ZfrjueOTEJ6vODmMimwNIuEVnFmgv7IoQxoFixklYNygXaWW5lJLOZAm10rBhoyd6S6M66coDojLsl6S6LnO2RIq8fCrz3benaE5h+bpsaF4Y80q/HUthhH/2VFpJEPmbSZll4nerMpIeN2LNdjNQTAXFWYz3I55IwdyAXP4HXOcjBUfaPSg9d+w1GPCby5fewS1vdP/v X-MS-Exchange-AntiSpam-MessageData: Ed4jMFZ2sHp4j+Krk/HShmg+MlZKLeCUgduYjUnYVGeMGERevLj0urQn+gXX1csH0c3BnstYYKUM86s8J0MkN85ApQADE/kgfZjDGvYwDMB/54YFGEvuornAz3FpO39/DQCK7I+QwOTVXdUmDngAeQ== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: e250cbce-a168-4cc7-8a69-08d8f4de5b39 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2021 07:18:32.6874 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VE1EUR02FT008.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT084 Received-SPF: pass client-ip=40.92.69.73; envelope-from=arthur.miller@live.com; helo=EUR02-VE1-obe.outbound.protection.outlook.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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:267237 Archived-At: Tom Gillespie writes: > This is a known issue with org babel blocks. It is due to the fact > that org babel translates the font locking for the language but not > the syntax propertization. Another frequent cause is the bash case > statement. The end result is that unmatched parens leak out from the > babel blocks and wreak havoc elsewhere in the org file unless you > balance out the parens e.g. in a comment. I have a hacked fix for > this, but it has horrible performance, especially with line numbers > enabled. I think that a proper solution would run arbitrary syntax > propertization on subsets of a buffer without having to continually > check where those subsets start or end. Best, > Tom Thanks for the explanation! I don't know how org-babel works, I guess it opens another buffer, font-locks syntax there and copy it over? What was the reason why they don't copy other properties? Performance or something else?