From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id rVv6AYecZmCDswAAgWs5BA (envelope-from ) for ; Fri, 02 Apr 2021 06:24:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EK5VN4acZmC5IgAAB5/wlQ (envelope-from ) for ; Fri, 02 Apr 2021 04:24:38 +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 8B36527D7E for ; Fri, 2 Apr 2021 06:24:38 +0200 (CEST) Received: from localhost ([::1]:52282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSBML-0000hA-P4 for larch@yhetil.org; Fri, 02 Apr 2021 00:24:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSBLu-0000fz-OU; Fri, 02 Apr 2021 00:24:10 -0400 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]:41949) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSBLq-00088m-Up; Fri, 02 Apr 2021 00:24:10 -0400 Received: by mail-ot1-x32a.google.com with SMTP id l12-20020a9d6a8c0000b0290238e0f9f0d8so4027185otq.8; Thu, 01 Apr 2021 21:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=76QEo/DKzb0ER60B1UJjV3SNtpbpOzPr6tXiq80yGJs=; b=c2ny0YydV2NPUtQBedjTDhMSE1fdFfVj0i56buq0wZz2LfmRSrWYAlIvsNccTkpA/8 /YQvjlgjaN5HHMwFyPsmyN7AFOd9GjGFJJgyzpshF3pmpkOSHJfk2zM18z1VBkTAZrjr W6X/F/4qxyhh42zcg/9Re0zcs/DXRHun0OMOF3zmAwpmVdffTIkQeuevtxZr8qQXeDc1 IzltHza0rhLPTfjk11w13X696lHIoXWzyiOVr+auKFDkcxWRdYIqJwygDvFsX9l2QFTF DQGW1ugrSBnZTUgo+PbXobpewFf8PkLTwjVafSEqcYQpEyfaKgn8WBYGKQdVIRao45US ckUA== 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=76QEo/DKzb0ER60B1UJjV3SNtpbpOzPr6tXiq80yGJs=; b=AjazUiAkAxJHCxvydsmsvtAlqRKesg5eKZ2tO2jql8YzMJTMqXme0kaLJcJXxtRDs5 OdTd1fVhHB3crMum+3ZWdgNeHvUvn3GGxmJ1tgUdh0ioiYClztV3IkFg5l+3AhlHswsB 8kIWrWyyCBtQTJTc0nC3oDRcZHPVQC4HAfCy+RGHiGpTCamn95KMS+kvY2yBWC1dSpqZ EcHKv7Su/3WLDpOCS98l/N5htdX6L5rMhvEoOYPBKQ5vIO+1vB5SACX22VRlkhImwjZD t+KxJkeetDqt57ZA7vqlsXihZxXayT0RTuCV38xyDG4w1f3hKyqpui6a4TODY01xUiQW B5ZQ== X-Gm-Message-State: AOAM531LcdMGVunjULNs/I1XpvkAQ0jE4qPz4jLal97E3N76xy2qc76o nwFYG0cjDqeSf9HiWlkH52i9QC2r2Mh1M21LVNhjCy5B X-Google-Smtp-Source: ABdhPJwSA5870l9LpHCjEWHmmgD3k9BOvF8jPxnn0LJC/gQQOG/qNR6pFrHwVB2Uz1CTzjmIFNKx/0WpgZ7cloZ0Ufw= X-Received: by 2002:a05:6830:2312:: with SMTP id u18mr9860230ote.325.1617337445589; Thu, 01 Apr 2021 21:24:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tim Cross Date: Fri, 2 Apr 2021 15:23:54 +1100 Message-ID: Subject: Re: Font lock in org+elisp confused with ?\[ To: Arthur Miller Content-Type: multipart/alternative; boundary="000000000000ed26f305bef5b718" Received-SPF: pass client-ip=2607:f8b0:4864:20::32a; envelope-from=theophilusx@gmail.com; helo=mail-ot1-x32a.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, HTML_MESSAGE=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 , 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=1617337478; 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=76QEo/DKzb0ER60B1UJjV3SNtpbpOzPr6tXiq80yGJs=; b=SWWlGLmx/OynlRIcXTgBPIhsoCyD3gtLIiRMtCPOR3OjguIGV3/wzTm2JgAC5zHyuh5MJv CejDUaJKWAfubgkiZEX3IV/5bU6MQRV8dWRBxoEXtHI7Ekm3MC+dronOP7193hQHlg3xyA BzykH0ReEsrExLc0/mKzqGMjh11hQWeWlSVRNQSgZ3MGYheqH96EbxpceyyJxAN+xEhp5Z 5TAzCUbPnSeg1MwIiZCanOP+EN1g9540kPN2+RdhB4+sEk3oWnHWIiLEFf4LJbcEv/eces wAX8D0GIfFfT2SQ7AAEz193APLvjrKH+1nEmCI1E/HPjJKk2ghhPAkhtJ2DJgQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617337478; a=rsa-sha256; cv=none; b=LAx+bhhKQ6swI5yPSm3t3Dqoi0epG29DFQpkkDWO3YwZehUkkiG2YvuGLFWmO36n6jPIqx 8YxV+dy1Pz2gqP3xjhvK9EiVJgz3dOHW5p8EW2JHT3U0VzdA1OEKiKLQKrjv8Gucv01oLM /wo/GSbB+jjV8KiGyHG+vNbwmnGa7Pf9f9TTFUDfSferCBbJig/5LIUsQDwLUNX7yLICra 1XTHhs3X6zHbOXpAGiqdzDo8zm3WGeV3SmH3TSiGSY0TbtzuCpc86qde1V873p/IeJvaXK EaSqbAHDBkjRWQtGdr0ohKqTCapXsYcagCa28pq00G/KIUnskjAWFomyIDtx2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=c2ny0Yyd; 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.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=c2ny0Yyd; 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: 8B36527D7E X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: g/oJc+iWxdnW --000000000000ed26f305bef5b718 Content-Type: text/plain; charset="UTF-8" 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 --000000000000ed26f305bef5b718 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm forwarding this to the emacs-orgmode=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

--000000000000ed26f305bef5b718--