From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id Zv1KBeWdNGENzgAAgWs5BA (envelope-from ) for ; Sun, 05 Sep 2021 12:37:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +MK3AOWdNGHTCAAA1q6Kng (envelope-from ) for ; Sun, 05 Sep 2021 10:37:25 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7FF5B21566 for ; Sun, 5 Sep 2021 12:37:23 +0200 (CEST) Received: from localhost ([::1]:33800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMpWc-0001ZI-Lc for larch@yhetil.org; Sun, 05 Sep 2021 06:37:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMpU2-0006my-0y for emacs-orgmode@gnu.org; Sun, 05 Sep 2021 06:34:42 -0400 Received: from mail-oln040092065049.outbound.protection.outlook.com ([40.92.65.49]:49838 helo=EUR01-HE1-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 1mMpTz-0004wA-1s for emacs-orgmode@gnu.org; Sun, 05 Sep 2021 06:34:41 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mF3qkccUDS2rS+ZI2Gb1RIcS1LV7dYzkeiOVeRtA6avMea79U93CeTHpo2CFGrcbyMokbO39LK0OzljyRTEeZAa1GVTu32LkNu1Tpfd5c0YgK9oguPBc5ERGv4WXXqAKWjtWAt683uSEFH+rDt1z2evJFTxRhkNMn2m9nEc55k0FwoUn/H0XnBvp3i1ntfFYUWOhFD+f0bWB48kkJ4OYZHWJ35fNTCXNB9V7V0HV+GMqkax4egt/YSWHKtylYK/Lw6HLCyPNJq290ydDQYNI08zROZW59OpPrkIPexfhunSefu1CQGxw2RFe+nKNDLgAjn/J+bBXrXN3f7q+5wPASQ== 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; bh=fxUBnLMcxqih0zQt5646u0eywTFIqqw0QZX8NhZzfaY=; b=d4sP30Drk68IB13G2A1XH+FHvEWeRIYPUX8tkvpeHZcJruIdqMDU7oGi8ASLwHVud+lK5SWFVk7m+GXzHIdQl40EF15j6nfi8JbxdHsDTUfHIC3kIUyo/jNXQfbzPR89HFYdp+oRqlcUzVyZCR/97f5CvR46KXOVVOAbrk8MPkDpfi4kEhAinl1zL8NzqqPW50YD/gJ0S3E2tLicUK1+TEe+6f3QJiOCK6MnmsPpIpzA6rv/lLNynNX6WPPp+wpZdJFMdGDeKMOaxPE1h3lFaSa0L5NfKtfySkd5OTEzUZvRlHnKrQA4Wk9ZOaDQyxXh2Y99SGu9QuWsnIkbtrBxUg== 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=fxUBnLMcxqih0zQt5646u0eywTFIqqw0QZX8NhZzfaY=; b=JTqG8usGwaI5I79kU9OkzR8CW8SBDt1yGWQYICWP+74l6bopfoZH4G/IFE96wu+5JLxOMUeKDDSM9vHoFO+tfJOeBS2DviPPZ6Kdeub5zJrWx+Y2DM4cCGVLrzDHuZ/PPH9+zlKCm4chlxzqp2QLrP+dHJQmRhf/PkxHBn05jXh/2kchcVGrc4sRKSXLxV+kc7ZtQYeQJaOUcu/QkcLPHDfkv54Bt6ZA1t1BJIbbWuT+tgkrPNWFBQ6qgPyhUOb1clbgJ5tXlL6uoixSAaJhqamZDtWf5ol/d0RkJBgyp2uRYCITjNQjqcKM5sElFkSsoCwlMoy9xrQ28CzWzF4yOw== Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM0PR09MB4227.eurprd09.prod.outlook.com (2603:10a6:208:193::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.21; Sun, 5 Sep 2021 10:34:36 +0000 Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::c55c:ece5:bed2:a9dc]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::c55c:ece5:bed2:a9dc%8]) with mapi id 15.20.4478.025; Sun, 5 Sep 2021 10:34:36 +0000 From: Arthur Miller To: Tim Cross Subject: Re: Bug Re: Greater than, less than bug in emacs-lisp source block References: <3b398cbe-19d5-7006-d854-4a8693d217bb@verizon.net> <87pmtpojq8.fsf@gmail.com> <87eea4nj6f.fsf@gmail.com> <87a6krmm74.fsf@gmail.com> Date: Sun, 05 Sep 2021 12:34:35 +0200 In-Reply-To: <87a6krmm74.fsf@gmail.com> (Tim Cross's message of "Sun, 05 Sep 2021 18:37:11 +1000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain X-TMN: [jlgYz9Vcdx0Bfhu6pKizcbLf/NO4syYi] X-ClientProxiedBy: AM6PR01CA0045.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::22) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87fsujb9ac.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pascal.homepc (81.232.177.30) by AM6PR01CA0045.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.17 via Frontend Transport; Sun, 5 Sep 2021 10:34:35 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 33eee68a-8a8b-416e-8ef2-08d97058c192 X-MS-TrafficTypeDiagnostic: AM0PR09MB4227: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dCZgajn9jjrO19rbeb+zMbRi5cPc15GcmsvXeQc0+o52tvuJwNGu9i5DvMZwRW+8hLBcXu3QIFL/PX5aJuSUP7BS27WDAT/yimGRuzL/Hh5DQ2saFFnMus90cotTd1WX4o0L2OZlt4ZZoDv6NNymAI6gh0Y/NozDbxPLhG8rI8dLcksk/z99eMc571NBjcBNm0DCo3Y+csx/kwz7flzi+olJ7JlkiFQAYOLitPeHvfInMIUWtztWm9TiyLb5nwqtGNrwUdyVauYfFBITH0HRfKt8/QVPQWCbyVR4YYZgCaRlhqjv/4F7o7z3ZEmhGPpYkdL8iV6QvDosUhVGRu/6QnDAeslHjViWISWnILEn8anUXCA81leX9yyT2e4M4VOT8/NqfH48XjioMueb2C6dkqEqQUWDmX+WSQcfnsG+yZyI11nebo01RBudhWAhVJAT X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JhVO+eJy6ask37BbqkSNcb/MGwbRgOOUs2UIP13YFTmScc1C0RWNZUtnLOCfhNCFbQsgZXERkKDbwozWmy1X+Uk61mQmZ2YeAJsbSGVOVpZsrimJQ0uHbYC1GerGoNF8gJqDEqMfO6IPUP6Q+a40pg== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-72e6e.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 33eee68a-8a8b-416e-8ef2-08d97058c192 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2021 10:34:36.0091 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR09MB4227 Received-SPF: pass client-ip=40.92.65.49; envelope-from=arthur.miller@live.com; helo=EUR01-HE1-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-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: org-mode-email , John Kitchin Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630838244; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=fxUBnLMcxqih0zQt5646u0eywTFIqqw0QZX8NhZzfaY=; b=HLQc96ZZffDCVBv2p/GhKk5rb2PXRHIDmveTxoBbKpj0ggExxC4+5J5RzFBCG/Y2u0dtpv KK1iGuGxP/yC9tqBoc8eZtN0hmyLe521qdd3ZG4laA2QD3FQawx1P8lwwUQSiMXS88DzO+ 1vNrEr5FVQu9HJo8Q/cXbMcQxw+doy+RFA6V2g5hcM6pfddwnsfB6V858lmdGYqrN5rfbE PiJna4chYXagSjWsDzoncdI9LTSV46atGgY5j+hV5rC0/+VF1l37HOTexha2u1YYPSAWD8 yhmGi9jtsCUlP0RuYCSAq/yfPRccrQv5aYscoRsefMUUJ46Hy8m4zkAO0cQoIg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1630838244; a=rsa-sha256; cv=pass; b=czJbydN3ArxIgsWZJoGuCG+zNP4UpQznzVipkiolPGdWx4uY8z+GJozjNRQFnoTvdqmadi 5X4jBD+oQBUA4Goxdk1zlUZA5maaznbv9jMPsuCS8V9K4N/BWPjckaE1qbBPB363NBiwY/ RunwZsxyW4H9uOdSlAx35JgYSvp/mxBqU+lgjtNVNG227TJ+NxipRmi8HbsFNrPP86i6fM ggluAvySwIQB1WBhPiZiELrCVGu0NtJIYeqKWMe/nRGrZf+WHu7v+7fpX7Ou8iQf3NQBXq X5wAjV8fhuoNk2GvbqBVbxv2c9laW7nE1q1K194aypR6eLRCFjMbveRZEAB+aw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=JTqG8usG; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=live.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -4.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=JTqG8usG; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=live.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 7FF5B21566 X-Spam-Score: -4.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0FTBwgFeFOhg Tim Cross writes: > Arthur Miller writes: > >> I haven't tested the updated version of JK's proposal, but looking at the source >> it seems to be a tad bit resource heavy. If it isn't a hassle for the OP to use >> aliases like lt, gt or similar, I would suggest that either using macros or >> simple defalias to rename those few functions, <,<=,> and >= is more resource >> effective way. If code is tangled and byte compiled, macros will be expanded in >> byte code, so effectively the runtime cost is almost none. >> > > Have to say I really don't like that proposal as a work-around. Main > reason is that it obscures the code intent (readers of the code need to > know 'gt" means greater than while '>' intention is much clearer) and it > requires all code generated (such as via tangle) to include the macro > definitions. However, above all, it just feels wrong to require code > alteration in order to address a limitation in the tool being used to > create the code. Well, in this case it is a tool deficiency, if you don't like gt, than use use "greater-than", it can't be more clear intent? After all, this is a lisp, and '>' is just a symbol name, like any other. For the inclusion of code, yes, but that is why we have (with-eval-after-load 'org ...). Don't get me wrong, I am not saying it is a proper way; it is a hack, everyone can use whatever they like. I personally find org-babel already to be slow when I have lots of code and blocks, and wanted something simple and efficient. I found this to work quite well. It is much cheaper in terms of processing to just defalias 4 symbols. I don't know, maybe it is just me; I am a practical person who prefer simple solutions. Maybe someone writes a tree-sitter backend now when we are getting tree-sitter into core? >>> I have to wonder why it hasn't >>> given how long this issue has been known about? >> >> That is a good question, maybe proper solution is very hard if not impossible? >> Like you said, Emacs is really not meant to be used with several major modes >> active as once. Seems like this is one of those places where it shows off. > > That is my suspicion as well, but I'm wasn't sure as I don't understand > the internals sufficiently to assess the impact of the regex search. I do > think the underlying point is correct i.e. adjusting the syntax table > entry for the < and > characters. This would seem to be the result of > the one buffer one mode design as you only have a single syntax table > per buffer. Yes I know. I was thinking several times of this and have come to this limitation in another little project. I would like to have major mode per region, where region is a continuous span of buffer between two points. That could help for some cases, for example in this particular case. I don't know how difficult that would be to implement, if even possible.