From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qMhuEXwWZ2DNEAAAgWs5BA (envelope-from ) for ; Fri, 02 Apr 2021 15:05:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GFtAC3wWZ2D8AgAAbx9fmQ (envelope-from ) for ; Fri, 02 Apr 2021 13:05:00 +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 C6D951D834 for ; Fri, 2 Apr 2021 15:04:58 +0200 (CEST) Received: from localhost ([::1]:32876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSJTt-00048m-Ef for larch@yhetil.org; Fri, 02 Apr 2021 09:04:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSJTB-00048P-0Z; Fri, 02 Apr 2021 09:04:14 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:33597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSJT8-0004fz-0O; Fri, 02 Apr 2021 09:04:11 -0400 Received: by mail-wr1-x433.google.com with SMTP id o16so4721026wrn.0; Fri, 02 Apr 2021 06:04:06 -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=MYJgj3oKxifE2IneFru79u++S/BiJYC5RtcORymm9PI=; b=IK9373Z8xVzcUAiNY/SeQzRDyH4Q/LwbKGiMhl8ZKPC/jziGWqgXcgfxN+usw3OaHm RcmnBD3gfIRsllMzaP9jbcb2lNQdgY/cDatub+SmqoH/VFqgXeM//fOfoakvfhOWbgfS Uu5zFFxnnDkd4dV44Un53QowulUjSWOjIiiaiFwjevYub6eBjXBhZYBZA33tQoV430JY BoXiUjuDF4TmKejnfC2u0f1mFs7dkY/CWBGmTS6PfCraCDvvM+LeuSUdEtg6MgpU+d/h tnRzAai5Al2kmjboqwqqaekZdXo0N0YF2B25rAfM6GHt2msl/V5z/t9K3pXazJdnx01c vxAg== 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=MYJgj3oKxifE2IneFru79u++S/BiJYC5RtcORymm9PI=; b=YHiACHjPZpVPuhtoMVrP/lTnVo+QfMYbUVmARs4yoMmUsrjwqsplnV9+VdyvBjMrvA ZW0woD84BtriFVxi3MpiQXFljAsD4yX8cwO1hpdJN3TMiQ+KGCQk8FsYErI/+MXb1MkB Vty5RG1U3HfAmV31aXJU7Cf9CL6f9MnAqtHUsIDbPt3KLfAUr67MImgcb+Dw09W135qe uQ7t/OdUTwkVdyXuZj1a8i2tmdp/gUEWQpS0mm/ivKoCslUtX/OjZYplnnVTmdjWN0qA ZoCSvlZogXKSUR8d2lGtpcjgG1fO5GVmuDcPzIbN262fhefHfDw9ltXp9nMhrx86wKOP H9+g== X-Gm-Message-State: AOAM5336NJp+2aM9yLiwHtD07Uxrz9OcnXzkx6Gy+hhYhZTTS72MSHso 1tKVvbJKSxwKWem5RGIdFVEAt3GKum8Ww8Scxxk= X-Google-Smtp-Source: ABdhPJx0OX6Z4zqlpdj1zjUDXH51pJmGjEX9JlUFowbw1F+io8BAAu+Ni0mKq3m7im1TyknxdAMmsHW31g4xqZXfX8U= X-Received: by 2002:a5d:65d2:: with SMTP id e18mr14957712wrw.256.1617368644365; Fri, 02 Apr 2021 06:04:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Kitchin Date: Fri, 2 Apr 2021 09:03:53 -0400 Message-ID: Subject: Re: Font lock in org+elisp confused with ?\[ To: Tim Cross Content-Type: multipart/alternative; boundary="00000000000084b24d05befcfb56" Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x433.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: Org-mode , Arthur Miller , Emacs developers 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=1617368699; 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=MYJgj3oKxifE2IneFru79u++S/BiJYC5RtcORymm9PI=; b=FvFdTr9bVgjsD4u07NYnDvF/3lU4H+afpNdfLU9sOh/daXc1hSTf8IrNWTcyWw2ivn1e4Y 5xYcGy8roT2kj4CuE+/MUer/MQY43QqCzhwpUFB4SLFccqiwY8o94HSit5kt69JfXnUHMU SITstOPAsHsgVLap/KrvjVJToyWaNFhzTlhRK/VzIS3/vInw/OWxQ4CjZg/vum7TMzu9MY SIJMyXgA98HkjmWWNmUdfah1Zxf/Slf3S7PsOYx/Yw6JRZGV8XE6TqxKAupGG5evVNJ3zB vXLE6einOiFgA3OVsAopEN2jaXBJR+SKPXFxR5IhzBkmWwhTuItdkkR4AYbFxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617368699; a=rsa-sha256; cv=none; b=LS4Fn4zM+tvUMQ4AmdOY/KkCMrc2owg9gX7uQMvOlFAdAeOf2TcaPNMM4j243pP2iYrLwL eV8M8OUX3idkxUOllhzXXH5UdUR68zvslq7XjqQfzs5SCp1JJmzMHis1gv5n9icLNdJDgi X4IT7l7+4SrpgJ+NvjtAaEZJkuxoPqK9pUjDek8o/ojS+7/z7dF6voiY9RiTctt3egcWoE Zh3N+fgdFh628yEXAs71uPYHPSAlpaurV5Nac7jfIGh/w1wXw6m/anU2f1fSwRV079SlnZ 2xpH0faRc2d5bE0+PClkLzNy/iiz+zDu2xDiQqljk2PCJJaSKdIn7Dtv1J51lA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=IK9373Z8; 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.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=IK9373Z8; 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: C6D951D834 X-Spam-Score: 0.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: qnOHVDVyxODT --00000000000084b24d05befcfb56 Content-Type: text/plain; charset="UTF-8" This is related to the issues with <> in src blocks. [ and ] have open and close syntactical meanings like < and > do in org files. A similar solution as found in https://emacs.stackexchange.com/questions/50216/org-mode-code-block-parentheses-mismatch seems to work to fix it. 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, Apr 2, 2021 at 12:24 AM Tim Cross wrote: > I'm forwarding this to the emacs-orgmode list as this is something org > maintainers probably need to see. > > On Thu, 1 Apr 2021 at 15:43, Arthur Miller wrote: > >> >> Is it me or is it a bug? >> >> When in org mode in an elisp block, this seems to confuse syntax >> checker: >> >> #+begin_src emacs-lisp >> (progn >> (if (= (following-char) ?\]) >> (forward-char -1)) >> ) >> #+end_src >> >> Identation seems to think it is one level extra, and it also shows as >> error. Same of course when testing for ?\[. >> >> It does evaluate correctly. Ordinary elisp buffer does not have problem >> with this, only when in code blocks in org-mode or elisp mode.I can send >> in some screenshot with errors if needed. >> >> >> > > -- > regards, > > Tim > > -- > Tim Cross > > --00000000000084b24d05befcfb56 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is related to the issues with <> in src blocks.= [ and ] have open and close syntactical meanings like < and > do in = org files. A similar solution as found in https:/= /emacs.stackexchange.com/questions/50216/org-mode-code-block-parentheses-mi= smatch seems to work to fix it.

John

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


On Fri, Apr 2, = 2021 at 12:24 AM Tim Cross <the= ophilusx@gmail.com> wrote:
I'm forwarding this to the emacs-org= mode=C2=A0list as this is something org maintainers probably need to see.= =C2=A0

On Thu, 1 Apr 2021 at 15:43, Arthur Miller <arthur.miller@live.com> wrote:=

Is it me or is it a bug?

When in org mode in an elisp block, this seems to confuse syntax
checker:

#+begin_src emacs-lisp
(progn
=C2=A0 (if (=3D (following-char) ?\])
=C2=A0 =C2=A0 =C2=A0 (forward-char -1))
=C2=A0 )
#+end_src

Identation seems to think it is one level extra, and it also shows as
error. Same of course when testing for ?\[.

It does evaluate correctly. Ordinary elisp buffer does not have problem
with this, only when in code blocks in org-mode or elisp mode.I can send in some screenshot with errors if needed.




--
regards,

Tim

=
--
Tim Cross

--00000000000084b24d05befcfb56--