From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UD6aLF7LN2GwkQAAgWs5BA (envelope-from ) for ; Tue, 07 Sep 2021 22:28:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uJdGKF7LN2GLHwAAB5/wlQ (envelope-from ) for ; Tue, 07 Sep 2021 20:28:14 +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 063F512739 for ; Tue, 7 Sep 2021 22:28:14 +0200 (CEST) Received: from localhost ([::1]:45492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNhhU-0000ek-Hx for larch@yhetil.org; Tue, 07 Sep 2021 16:28:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNhh2-0000e8-9r for emacs-orgmode@gnu.org; Tue, 07 Sep 2021 16:27:44 -0400 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:36808) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNhh0-0003OG-Au for emacs-orgmode@gnu.org; Tue, 07 Sep 2021 16:27:43 -0400 Received: by mail-qt1-x82c.google.com with SMTP id d11so526423qtw.3 for ; Tue, 07 Sep 2021 13:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=ZX6eT0dsXRwMylR3lUq0MDhQkZjo28psXC3WFAP43zE=; b=SCMfLo0satg+RVI6wk3aSbwqCVyZ8n8VUhSHsInCidCL2lFsJwe+9kbwdwTJDHpj+x qzRGOohrCCyaZjClcadaQSt4jMD1KEtF4IFh1Q4xKGzeF2nMyqPysKOuIGmjkEoaVtJw HHCkplygv48X7dSM9GGFzv5QwkLvsTXV4Ls/0wn78xMqLOlaBmCnFQzDwiQhlEFF/uQ2 s1ZMZoTuzW2aKUHjXf7jIHlQF58qxsrvTxKPgWInrH4I7/ItpMR0B9C8XI43J2DRLQmh hdoT3RBBkAo022Vg8ndQrHqd5JiAighLlpRRrjW7+LOAJM7m09HzW5qftvFo353avT+J b9Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :date:in-reply-to:message-id:mime-version; bh=ZX6eT0dsXRwMylR3lUq0MDhQkZjo28psXC3WFAP43zE=; b=dvxBuf9NRJ2np7O7sM50MDngGbTjBUSpjUpf5ZJqyJEO72KUJYp635RZoxNvrNbo1J AKc/u5+XqpqV5RlpCI8K1mbk06iYmFpFi2JyiIknRoJGWsxUg9AGKvsEy6olfIYS8W54 RddOLZlpZBm2Z7VzW2QjQLPTD/wSmJe40sO3nOu5nkUHgDl9uO1LxqVwBsDt9Ur34m2v uCqBujeAn2GqnTxpr5g0pa7GDoG73jRvcQ1irtpg2zDi0dAdl83gkuJgcSFt3is66IZb C0NFne63SIqcBK3MsOe+aAAe9R3I6Z60wrQoKo0kKdBJlxbseI4wzRhB/Q0aCqNQDNxE 4kuw== X-Gm-Message-State: AOAM532iYl0EVX1jnWOM1XP0CniQXLjnrgzhK3aI2ikJRP88TjSZvbax wCZu3MsztfMXrzLN09RPGDxLDJYHpEA= X-Google-Smtp-Source: ABdhPJx7YttgqhyYpVcM6AP2o+opIA2W2CJMiAFy+JAQMz4iP33E2gn+JK1fNttLvBQkppIcmEGYWw== X-Received: by 2002:ac8:4d8f:: with SMTP id a15mr286992qtw.168.1631046459836; Tue, 07 Sep 2021 13:27:39 -0700 (PDT) Received: from Johns-iMac.local ([2601:547:901:82e0:2998:709a:89a3:760f]) by smtp.gmail.com with ESMTPSA id g5sm89514qkl.48.2021.09.07.13.27.39 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Sep 2021 13:27:39 -0700 (PDT) References: <1539255.1630902548@apollo2.minshall.org> <87pmtk39mn.fsf@ucl.ac.uk> User-agent: mu4e 1.6.5; emacs 28.0.50 From: John Kitchin To: Eric S Fraga Subject: Re: Bug Re: Greater than, less than bug in emacs-lisp source block Date: Tue, 07 Sep 2021 16:23:40 -0400 In-reply-to: <87pmtk39mn.fsf@ucl.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=johnrkitchin@gmail.com; helo=mail-qt1-x82c.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: Greg Minshall , Tim Cross , org-mode-email , Arthur Miller 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=1631046494; 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=ZX6eT0dsXRwMylR3lUq0MDhQkZjo28psXC3WFAP43zE=; b=YUnfnqJ2mkRfLLwhbP42l01aBqJK1JosAF8Z4rEeIIIiHD5lWqMhYV0J2zc0jKOwFqDyzG 2UtLH9YWB5RRhDQDnx8WVCsYd8GDkBJslAhlJ1r+Pp/0OxFmObrdIG3GhBMcL4D3T89MBb gf9JGLEnsYQQ+v5eBxZsVLhei17RNDa8bOrq8lqbrulUwt9nBGM+eQ5lDpq5kVDyrfEZ5j 4Qqdt4vTu/fJggOcPWfdKHccletYQem1n70Wk5aWQzMn/oJsYe6ZHHSQRrEj2Up+Gc1h4J XFx3lM87wnyaVbz+evR5ltYx+jP6qI/BUqcs2KmHBRSSfayp5fD54DyPV9R61w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631046494; a=rsa-sha256; cv=none; b=VaCZbftKt64aFE/vjOczUKscwYL3je+61qWtd8iS5mjr3Tu9GuFSNUnaYpvd5YD4HtR4ea kzF92NEdMBFz07sd2cpqqgtSZBRqy/Ygrmbq7mE5p6kE6eupw6TSGS9YbuUlKJOPm0Bj6e DH1GnyELyTyEe9ZNLqJ9BCAW6VBzBz+XeZ1rxwH6LdQBXlWPCgAE6fEFchKt/ey0nBgr9g wBpB+wB7RyMflgN/Mg+ad25OBq8ZpLx/0AdrX2kIu4fzNxSq5au+gwWIJqCtnHjSlb+wrv 4KINAeDMi9GMT1dTTsvMDBbouBTx58B9AgHaT+Sy8BbherWYnwAtvpyHqK+NvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=SCMfLo0s; 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: 0.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=SCMfLo0s; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (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: 063F512739 X-Spam-Score: 0.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: nMj0LOjzO0mD My current solution (which already differs from the last one I posted here...) is here: https://github.com/jkitchin/scimax/blob/master/scimax-org-src-blocks.el#L61 It is more selective, and only changes the syntax inside these src blocks: "jupyter-python" "python" "emacs-lisp" and does not change the syntax if the character is in a string. That way it still works with xml and html in strings, or in their own blocks. This might be the third iteration of fixing this issue, so I wouldn't have the hubris to say it is the final solution yet. Eric S Fraga writes: > I believe this has been mentioned in passing in this thread but I'll > repeat just in case: Unless you are working with xml or HTML in your org > documents, and even then, having these two lines in your org > configuration (e.g. org-mode-hook): > > (modify-syntax-entry ?< ".") > (modify-syntax-entry ?> ".") > > solves all the problems with languages that use these in an unbalanced > manner (comparison, assignment). I've had this configuration for years > now and it just works (for me). -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu Pronouns: he/him/his