From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OItDNTkXMWFqowAAgWs5BA (envelope-from ) for ; Thu, 02 Sep 2021 20:26:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OCDbMDkXMWEKJAAAbx9fmQ (envelope-from ) for ; Thu, 02 Sep 2021 18:26:01 +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 CFC30C562 for ; Thu, 2 Sep 2021 20:26:00 +0200 (CEST) Received: from localhost ([::1]:46454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLrPS-0006l3-Up for larch@yhetil.org; Thu, 02 Sep 2021 14:25:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLrOk-0006kv-Mp for emacs-orgmode@gnu.org; Thu, 02 Sep 2021 14:25:14 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:52214) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLrOi-0005pa-FH for emacs-orgmode@gnu.org; Thu, 02 Sep 2021 14:25:14 -0400 Received: by mail-wm1-x332.google.com with SMTP id u15so1924881wmj.1 for ; Thu, 02 Sep 2021 11:25:10 -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=sqQmSG7XR4bZcxuHxqhI+SRJ0y3LFApB+MKK1n/ts1o=; b=CE2fDVhOZzMiMtM3ZkMh53Qz6awp9+S7ZoEKAajxLwfVQWCGECPFLYnZcW/mE0r9Vn +Uor4qpn6vE8fAwjY3eU0oJAqN7wB7Rn/kW0s/wlxl9xvac3Ahu/B2yg6tlzL+aC/U1S qPDaaxfHs3dI+ba2BrLuFUCZEwOwTuFl9Q4GlWgJQdHw5DNP6R2ARLO/Qb4RfJOM0/yn uZ6hBhkkSBcUtULb7Wl6s3AxZtVX/c1fpsnGk3TOg1yI2Um/uTvolUtPe4LjFjTLmJME S+MH8Wl4QOBX1x5Fv/yjUZJu19rp6U3JwjuwWgXwJQTRWadW3a1VdVw831TcFLCsDQBC YgmA== 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=sqQmSG7XR4bZcxuHxqhI+SRJ0y3LFApB+MKK1n/ts1o=; b=qjHvA8iz/VULnzqqXG674O5xJ+I5Z697Kb8h1fH8PLXi+JPvBZPFsM4yyFGtplCwz+ 68naiWop+WknsImZKjDbsqHRMGNFgcLbFStfXeSDKm2LRn8BvFsRMfQXSZQGZMI2EAR0 xhapWi2zkicpAiDO7jfXWkIAUneb6faOO2Try2KwVOj8MWMK9xgOrDZr7FbtVmUsxSOl Ov3VfStxEa/6c5Qw8gV0jiw1OjCGhGj909MH8jNIYXLYlCDnaRIQuGB0+eOLhxZ/yuT3 dD3uyfhR5EI0TM0a3C0Axf6cgaCQQZRDW37EBuWM9IPvlNxtif4xhexUpxLQNCjzkVBI HgDw== X-Gm-Message-State: AOAM532FFxxqjugBhVlnYTt6ZVOFkMLDsR2cEN87TYgdecA1rqSxqtv9 rbkxcaXfmPuTlOeGkgoG/g5imi4eoUZd6Kvhf+w= X-Google-Smtp-Source: ABdhPJyXzLL7somxt2kDVcjnDWJSwmLE37Mp7JjPKwTkZ9hyObBMEpBghOF+NttHJGY1YQRKPv6+D+kFiPY72XpNXek= X-Received: by 2002:a1c:8086:: with SMTP id b128mr4562451wmd.54.1630607109508; Thu, 02 Sep 2021 11:25:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Kitchin Date: Thu, 2 Sep 2021 14:24:58 -0400 Message-ID: Subject: Re: Greater than, less than bug in emacs-lisp source block To: Charles Millar Content-Type: multipart/alternative; boundary="00000000000087d1a805cb074d0d" 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.249, 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=1630607161; 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=sqQmSG7XR4bZcxuHxqhI+SRJ0y3LFApB+MKK1n/ts1o=; b=GEuxqi1J1jG8ofJTotZ75avFL6KP4r6+toYrmR2zUqwkr8TYy8hVUsalRbc1bSjJdXzaK/ 1IeXn4l0R6rDpObNp9tJ2BIPBieLCZ/NWI90fupPWg7ebMjUMvZlhp/NTx5Yoa05301eIR ozlrWWwp0FOUq6wyR6dNAE4ypZDsmmnabyvCNipib4breHsdeLTNGiRQ+be8oTYVJMmDua HX2cvGMuTuoEOjuaaKc95vdnu3Xmp97rVDUYbp8frT6vM4c6c8YzGl8H1nKq/ZcSEfXzcg MNdM8iq9WoNGmyTULDfas2fvwIBDhV+6hM44VD11QJKdl+MKbeIQmuGsBub1LQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630607161; a=rsa-sha256; cv=none; b=X6roS1j+Q6n7qHyYdurM9y77MPflwbYxnOVauwNGHTl2sTPhvdaWjsYxRChOA5GUhFwtGZ ivy0lSTznT3RKIbofUYRDRX/+jXVDuHvuAAG2p6TtjlpImnVbvPlm5Y9n7ssVdoWdDUdr2 /B35RuvZA47H3rOHNzVCxUNPkQQw321fYr5ZRLmuJsC5wmmHG+hwMN5gxZUmiTYaLlJnQu ovaicD1Jx8inxdqN/FzyM8iSofAyrOLja8ovpP7nOY+Ceo0VnezTNth5dwBIMllpMhDXM/ YN2VzzaCr61/R+GSp/pRjnszAxMD5RcZFor3eTcvbv/3/i6PFZTM/P2P/M0vjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=CE2fDVhO; 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: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=CE2fDVhO; 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: CFC30C562 X-Spam-Score: -2.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: HDaG2+vzewn1 --00000000000087d1a805cb074d0d Content-Type: text/plain; charset="UTF-8" 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 > > > > --00000000000087d1a805cb074d0d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think this issue is described in=C2=A0https://emacs.stackexchange.com/questions/50216/org-mode-code-block= -parentheses-mismatch. There are also some solutions there.


Jo= hn

-----------------------------------
Professor John Kitchin (he= /him/his)
Doherty Hall A207F
Department of Chemical Engineering
Ca= rnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
<= /div>


On Thu, Sep 2, 2021 at 2:10 PM Charles Millar &l= t;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 immediately
following the "4" is paired with the opening paren before "i= f" and not
the opening paren immediately before the ">"

A "less than" results with stranger parenthesis matching - the cl= osing
paren after the "4" matches no others; the closing paren immediat= ely
after "bar" matches the opening paren before "if"

Charlie Millar



--00000000000087d1a805cb074d0d--