From: Dominik Schrempf <dominik.schrempf@gmail.com>
To: "Emacs Org Mode Mailing List" <emacs-orgmode@gnu.org>
Subject: Org lint and named source blocks
Date: Tue, 21 Sep 2021 09:39:17 +0200 [thread overview]
Message-ID: <87h7ee5q8u.fsf@gmail.com> (raw)
Thank you for the Haskell fix! I found another issue (not a bug but could be
handled better):
Running =org-lint= on an Org file containing
#+NAME:Hello
#+BEGIN_SRC emacs-lisp :exports code
#+END_SRC
I get the following error:
#+begin_quote
Debugger entered--Lisp error: (search-failed "^[ \11]*#\\+[A-Za-z]+: +Hello *$")
#+end_quote
The code is faulty because there should be a space between #+NAME: and Hello,
like so:
#+NAME: Hello
#+BEGIN_SRC emacs-lisp :exports code
#+END_SRC
However, this should probably be reported by =org-lint= as an Org syntax error,
and not lead to an error when executing =org-lint=.
What do you think?
Thank you,
Dominik
next reply other threads:[~2021-09-21 7:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-21 7:39 Dominik Schrempf [this message]
2021-09-21 13:18 ` Org lint and named source blocks Ihor Radchenko
2021-09-21 20:32 ` Tom Gillespie
2021-10-04 6:19 ` Ihor Radchenko
2021-10-04 8:02 ` Tom Gillespie
2021-10-04 8:21 ` Timothy
2021-10-04 9:14 ` Tom Gillespie
2021-10-04 6:16 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h7ee5q8u.fsf@gmail.com \
--to=dominik.schrempf@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).