From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EKuaNmmHNGHuqgAAgWs5BA (envelope-from ) for ; Sun, 05 Sep 2021 11:01:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ON5cMmmHNGEERQAA1q6Kng (envelope-from ) for ; Sun, 05 Sep 2021 09:01:29 +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 42232195AF for ; Sun, 5 Sep 2021 11:01:29 +0200 (CEST) Received: from localhost ([::1]:37202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMo1m-0000YD-NX for larch@yhetil.org; Sun, 05 Sep 2021 05:01:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMo0p-0000X6-6j for emacs-orgmode@gnu.org; Sun, 05 Sep 2021 05:00:27 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:46846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMo0j-0001RT-Sw for emacs-orgmode@gnu.org; Sun, 05 Sep 2021 05:00:26 -0400 Received: by mail-pj1-x102a.google.com with SMTP id u11-20020a17090adb4b00b00181668a56d6so2549430pjx.5 for ; Sun, 05 Sep 2021 02:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=b52nqBh4T5dpb6P2tD6JFIAnMBp99e4WDh1XCIwJoTw=; b=K79GWJwaj/EmqltzlDivrquzUHuhDJA/EOaeauj8aLElPuiPp26+8c7Cus0AKq8jxC qZBID5ORWrzG6X8ojxicMg2qhqWW/pNpH7+CAQpwRkMPEteXnFsO8oSK/a0/p7K9bWBz 6tDKA0Pv7SRzcaEow1ApC53y5oCXproKLIugJ/Zd04JU3u+YfIlvkp/EmMe7QZd9biXS eCgbNUHD1D5O8TQbqqNQuCHn1fkTY+0JB9G3Wb/O3sKH87aHT7EWPBvqlVHvPC5s2ClI pUEYvciwWF8JGGoswQLNBdSzKE0mp5HRHr53EZHscxVmRsw7WN28T3VgFgtPk3vuSKq+ iOKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=b52nqBh4T5dpb6P2tD6JFIAnMBp99e4WDh1XCIwJoTw=; b=KUVDnbg0Z+IcZAxcbJJ8f9ZZxanX0nWgy3ygnCMrDYqcCbVcPWH0EAQBe6WgYnW7g6 LsXT0Pv/OfPu8hdt6Zssca53I/FRcOX5S6Ye8dcnla+dDNRARTWviXAsE+4FrElQfQll AuPX89sK+xLMOqul5cxGlhXjRquDePLINWLtSbDvfQd7KB/76Uc0DoxjMJ5c5TTw2jAg INKhLbowdKMd8VQPSVIe7skDu1TS0gpCs55jImaaCQsOZJmq5prYXD8Efdasyu8yvHPX fR9hH8KFnFImMcUVjM00xN6YxtIEHtLgBPBR7fY7UtK3pj6CErawUj9FP+MmJk91Fv76 sJxw== X-Gm-Message-State: AOAM533IsZcNUm+Iqq8Jjynqjft8s0zzEs19X7m+9zJpYT5cC3XnrRk2 9hE6oS9w1IpJx/fPQg3Emss14W7ivnE= X-Google-Smtp-Source: ABdhPJw+ujOzk6H7e44fJ9P2WxrUDpncJt91PZ4Kixww/UNiDLz+HzlWS7hE+D2ALHvJc2RcPU2wNg== X-Received: by 2002:a17:90b:3912:: with SMTP id ob18mr4128879pjb.206.1630832420182; Sun, 05 Sep 2021 02:00:20 -0700 (PDT) Received: from tim-desktop (220-235-1-77.dyn.iinet.net.au. [220.235.1.77]) by smtp.gmail.com with ESMTPSA id h9sm4307858pjg.9.2021.09.05.02.00.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Sep 2021 02:00:19 -0700 (PDT) References: <3b398cbe-19d5-7006-d854-4a8693d217bb@verizon.net> <87pmtpojq8.fsf@gmail.com> <87eea4nj6f.fsf@gmail.com> User-agent: mu4e 1.7.0; emacs 27.2.50 From: Tim Cross To: Arthur Miller Subject: Re: Bug Re: Greater than, less than bug in emacs-lisp source block Date: Sun, 05 Sep 2021 18:37:11 +1000 In-reply-to: Message-ID: <87a6krmm74.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x102a.google.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630832489; 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=b52nqBh4T5dpb6P2tD6JFIAnMBp99e4WDh1XCIwJoTw=; b=IlwNJLXgEidVJDgtKIaMu8goS5wd3Fvq9zRVTSSZczXJ2yxWnlzktfr0Cq31J+aVVhyuJQ ECPgiRBmXDJXCy5c6jr+cDw8bLzjXdp841ey7qxaCHAZiTbIIs8xaJ7FQgXvBfRquma+h/ 8JZ0ACjSZ4Z086KoP/cpDQQRZRD2Mc07K0SG0LcURKWbdnlcZsRB1t3mwXy727o6dC7eJ+ 6RkBVIITiNr85YRelt2cL6+lmqpWzlLZ5/QeAd7nk4ezsaie7agF5P2Oxo44n1EjjCTuG/ sBHOm5fzaNbLBHr2mhOeqM3ar6RlbPRcnEa6Rf+jEO5Vaav/+xw4hWwKjeO1/A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630832489; a=rsa-sha256; cv=none; b=YOlw/GQH9MLn+xaZA87n4u3ueZo3DEVUOiyexAYj9MHMf9OD0JGuapSJf0EYbAKk4dNAUH Vg3iuB+84sAjiD9d1RQQRII4t/lcDdx/5zk6hVYT/ePXduC0a6BFxLoBU1cYpcNGbMBNJg gzU7Nyq8rN8VOj+YvkG/0dq/24o8RCgPyg6TtU5sAX2b0GarChb4Q8Qn/z05ZA/0V1mca+ 1K6wMYivG+YDp+7A003hDXdifNti/jXSBKIGFizZ47fWCHuJM3BlSRYAN+7Hn2vWtMy+Uf RR55f3UWMZi6LwFfPA9wuYE9oDRpw3zbcI3SYmjO0gySN6PKIqXQjzgX08SDCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=K79GWJwa; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=K79GWJwa; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 42232195AF X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: YkQsXS9/vN+s 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. >> 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.