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 MONXJmIQMmGu3gAAgWs5BA (envelope-from ) for ; Fri, 03 Sep 2021 14:09:06 +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 IPd6ImIQMmF+FgAA1q6Kng (envelope-from ) for ; Fri, 03 Sep 2021 12:09:06 +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 2930E1AB81 for ; Fri, 3 Sep 2021 14:09:05 +0200 (CEST) Received: from localhost ([::1]:34606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mM80G-0002Wi-2q for larch@yhetil.org; Fri, 03 Sep 2021 08:09:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mM7rt-00081c-KF for emacs-orgmode@gnu.org; Fri, 03 Sep 2021 08:00:25 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:34370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mM7rm-0003Wn-1v for emacs-orgmode@gnu.org; Fri, 03 Sep 2021 08:00:25 -0400 Received: by mail-wm1-x332.google.com with SMTP id v20-20020a1cf714000000b002e71f4d2026so2844858wmh.1 for ; Fri, 03 Sep 2021 05:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+MLhOH9zeJs3b+EHAhB7cjQYnJ17z62S90TI1pPWetI=; b=ZJwadaO7uv8WrYjmNYcM0AbGk9kHEvsbvZr6yhjkH+VMfvuZ+TX/Ejscz2ubCp6LsE rl3dnT1SDkMPbM0eMVyBLW/A50prT0eZRFpZkg437qhELw8eIeHu6ANgmpdXPdlc622J DAc14HAomlmRSYOqnNVaiBzIDj4hp6iiFWLebYNypm/Vm5J8CsOtt5qcf9ie12mBn3uE rO/mFRf1G+dbOMYiNJ6uGXgjMAXWwxO6gRFmbbwPfXIQIwEhNebw0sa/6rNPulyN/WJ4 WmxvNC5o6PJp0uxuCtNZPxt6RQWXAgpKY5vrizmaY/p8jI2Vm2HwGwePdJecq5ajxXc1 l8Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+MLhOH9zeJs3b+EHAhB7cjQYnJ17z62S90TI1pPWetI=; b=DLwxeE++1SXDqnKmc+2anlsfMjSJyM+FAlFyA45sFPLl4v6BvcBeGsBkkScWjE2ptf T5rAFvqzOAMrFtK27iqAslwxPy0swBu8/cLRD7i2WgA3cbcOtG08MGGk/WndDfrIeu9P GgedMHME6OFTGG65PGnyUX46XSSombSvHf2Kfx5RAlKPwnRvacDTf67cVxC0CDukxoXp 1+D5ktZRP8PefaXXe6agao3rPHrks9RCpvunpr+IWQemanSJNPWOqcp0cEaqtFlZqYK3 Cj+CoiBSPkDNfCHwqekpoHCacunSI+9SDNyu5hOyUOG47jMI0IHwwkAIYTM0yFn0MEZ8 pr8g== X-Gm-Message-State: AOAM533mVSn6KRmHXVQbIgk11VwbyMgfR7X8uYKBeDC+kyaj9iYwWjPT 4JTyOYjuJaOyqnTsN035q9b1E1rPOn+dN9rJwTM= X-Google-Smtp-Source: ABdhPJxVsBqWzE21eaN8dN/pgZwegbyN0PuE/mWHcgl/C4zC4nX6OgQSAdMalq6fODOhzOcGQDf55k1kH+qQmGVR/QI= X-Received: by 2002:a1c:ac05:: with SMTP id v5mr2889543wme.13.1630670412718; Fri, 03 Sep 2021 05:00:12 -0700 (PDT) MIME-Version: 1.0 References: <3b398cbe-19d5-7006-d854-4a8693d217bb@verizon.net> In-Reply-To: <3b398cbe-19d5-7006-d854-4a8693d217bb@verizon.net> From: John Kitchin Date: Fri, 3 Sep 2021 08:00:01 -0400 Message-ID: Subject: Re: Bug Re: Greater than, less than bug in emacs-lisp source block To: Charles Millar Content-Type: multipart/alternative; boundary="000000000000b224ba05cb160a97" Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, 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: "emacs-orgmode@gnu.org" 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=1630670946; 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=+MLhOH9zeJs3b+EHAhB7cjQYnJ17z62S90TI1pPWetI=; b=hE/WsMzppUrUM9oym7GA45c/Mq+UHWLllU+MenVuG3SgwXrVDW7SMso/Kyh0rBSQPJspsk Wrh8zgcgUrUNis35qN8wC1Pdz4LGuYrUll0PNq3SAqxnFzaYmZTgE/mhjDSee4BW+Ai2Ek t83idVVvscdMUjCwIAB5G8DzK+indTagi60ORSEBmDmAHxzUCm3JL2ql3O0NoZpwcjtQmH Cp9/k9phoXGhen6V7jJTuzDP/svigAoxa7PuKee0rbIi9aYKHaSc2QQEO2xBaSWDe0x+pK OOEDiVv0fd9gEOBlnZGb0gIkejZZAiKenr49/dADNmUFaAHYTCQtBkV6pJ0jBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630670946; a=rsa-sha256; cv=none; b=NwQNKrj8rByR9OFmeSWp7b5rBqguwOzeNfHlZo6lp5QLcijT+AgyjhgSCJd2jS+HOwKlaX MFu1prFo7vGYpDaLef52vvTYa8WF5jyWIkwyMENhMcatu+U0tON8FCGziQ6kClkG1iTrp1 8h1zq7BalcudgIpMZ18xTw37J1A6r+Gz4aU6QSpcBmEdR3ax/fcIUt2lLJbNCNmmbUaRBR bW6zakJngcHJczsJVAKkV5L0k6U6yZ8iaYHjFTRwzKDFKydp7XXXWZ83WS+7rOflX/ERsT IgQNsMjXUs1IQcl5CaRFzlFD+iiupEjB8JbRchXW8Xopu3md5ulcrsxVe8OIMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=ZJwadaO7; dmarc=fail reason="SPF not aligned (relaxed), DKIM 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-Spam-Score: -1.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=ZJwadaO7; dmarc=fail reason="SPF not aligned (relaxed), DKIM 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: 2930E1AB81 X-Spam-Score: -1.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: fdsabgqm+xx6 --000000000000b224ba05cb160a97 Content-Type: text/plain; charset="UTF-8" That is probably a matter of opinion. If you use angle brackets as delimiters, e.g. in html, xml in src-blocks, then the current syntax definition makes sense because you can use them to find open and closing brackets, navigate them, etc.. If you don't use those, it makes less sense, and maybe isn't even something you want. John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Fri, Sep 3, 2021 at 7:42 AM Charles Millar wrote: > Thank you, John. > > I will give it a try. > > However, is this a bug that should be fixed within org source code? > > Charlie Millar > > > On 9/2/21 2:24 PM, John Kitchin wrote: > > I think this issue is described in > > > https://emacs.stackexchange.com/questions/50216/org-mode-code-block-parentheses-mismatch > . > > There are also some solutions there. > > > > > > John > > > > ----------------------------------- > > Professor John Kitchin (he/him/his) > > Doherty Hall A207F > > Department of Chemical Engineering > > Carnegie Mellon University > > Pittsburgh, PA 15213 > > 412-268-7803 > > @johnkitchin > > http://kitchingroup.cheme.cmu.edu > > > > > > > > On Thu, Sep 2, 2021 at 2:10 PM Charles Millar > wrote: > > > >> Set up: > >> GNU Emacs 28.0.50 (build 344, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, > >> cairo version 1.16.0) of 2020-12-31 > >> Org mode version 9.4.6 (release_9.4.6-637-gd70f28 @ > >> /usr/local/share/org-mode/lisp/) > >> > >> The following code will evaluate > >> > >> #+begin_src emacs-lisp > >> (defun Foo () > >> (if (= 2 4) bar)) > >> #+end_src > >> > >> #+RESULTS: > >> : Foo > >> and the opening and closing parentheses match. > >> > >> If a greater than is inserted instead of equals, thus > >> > >> #+begin_src emacs-lisp > >> (defun Foo () > >> (if (> 2 4) bar)) > >> #+end_src > >> > >> it apparently evaluates, however, the closing parenthesis immediately > >> following the "4" is paired with the opening paren before "if" and not > >> the opening paren immediately before the ">" > >> > >> A "less than" results with stranger parenthesis matching - the closing > >> paren after the "4" matches no others; the closing paren immediately > >> after "bar" matches the opening paren before "if" > >> > >> Charlie Millar > >> > >> > >> > >> > > > > > --000000000000b224ba05cb160a97 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That is probably a matter of opinion.

I= f you use angle brackets as delimiters, e.g. in html, xml in src-blocks, th= en the current syntax definition makes sense because you can use them to=C2= =A0find open and closing brackets,=C2=A0navigate them, etc.. If you don'= ;t use those, it makes less sense, and maybe isn't even something you w= ant.=C2=A0

John

-----------------------------------
Professor John = Kitchin (he/him/his)
Doherty Hall A207F
Department of Chemical Engine= ering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803=


=
On Fri, Sep 3, 2021 at 7:42 AM Charle= s Millar <millarc@verizon.net= > wrote:
Than= k you, John.

I will give it a try.

However, is this a bug that should be fixed within org source code?

Charlie Millar


On 9/2/21 2:24 PM, John Kitchin wrote:
> I think this issue is described in
> https:/= /emacs.stackexchange.com/questions/50216/org-mode-code-block-parentheses-mi= smatch.
> There are also some solutions there.
>
>
> John
>
> -----------------------------------
> Professor John Kitchin (he/him/his)
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>
>
>
> On Thu, Sep 2, 2021 at 2:10 PM Charles Millar <millarc@verizon.net> wrote:
>
>> Set up:
>> GNU Emacs 28.0.50 (build 344, x86_64-pc-linux-gnu, GTK+ Version 3.= 24.23,
>> cairo version 1.16.0) of 2020-12-31
>> Org mode version 9.4.6 (release_9.4.6-637-gd70f28 @
>> /usr/local/share/org-mode/lisp/)
>>
>> The following code will evaluate
>>
>> #+begin_src emacs-lisp
>> (defun Foo ()
>> (if (=3D 2 4) bar))
>> #+end_src
>>
>> #+RESULTS:
>> : Foo
>> and the opening and closing parentheses match.
>>
>> If a greater than is inserted instead of equals, thus
>>
>> #+begin_src emacs-lisp
>> (defun Foo ()
>> (if (> 2 4) bar))
>> #+end_src
>>
>> it apparently evaluates, however, the closing parenthesis immediat= ely
>> following the "4" is paired with the opening paren befor= e "if" and not
>> the opening paren immediately before the ">"
>>
>> A "less than" results with stranger parenthesis matching= - the closing
>> paren after the "4" matches no others; the closing paren= immediately
>> after "bar" matches the opening paren before "if&qu= ot;
>>
>> Charlie Millar
>>
>>
>>
>>
>


--000000000000b224ba05cb160a97--