From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: Font lock in org+elisp confused with ?\[ Date: Fri, 2 Apr 2021 15:23:54 +1100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ed26f305bef5b718" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25697"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Org-mode , Emacs developers To: Arthur Miller Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Fri Apr 02 06:24:33 2021 Return-path: Envelope-to: geo-emacs-orgmode@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSBMG-0006YP-Np for geo-emacs-orgmode@m.gmane-mx.org; Fri, 02 Apr 2021 06:24:32 +0200 Original-Received: from localhost ([::1]:52282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSBMF-0000hA-MT for geo-emacs-orgmode@m.gmane-mx.org; Fri, 02 Apr 2021 00:24:31 -0400 Original-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 Original-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 Original-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) In-Reply-To: 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: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-orgmode" Xref: news.gmane.io gmane.emacs.orgmode:135781 gmane.emacs.devel:267290 Archived-At: --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--