emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Justin <justinvallon@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] org-element loading fails with "regexp" argument not "stringp"
Date: Tue, 4 Jul 2023 19:51:44 -0400	[thread overview]
Message-ID: <2ff109c7-b3ec-27ac-e75d-ae5ddac14746@vallon.homeip.net> (raw)

Using emacs 26.1 (in case it matters).  Loading is failing at:

(defconst org-element--current-element-re
   (rx
    (or
     (group-n 1 (regexp org-element--latex-begin-environment-nogroup))

rx is a macro, and so org-element* is not being evaluated.  It's 
complaining that the argument to regexp is not a stringp.

Does the rx argument need a backquote?  org-element-clock-line-re uses 
rx-to-string with a backquote?

(rx `(or (group-n 1 (regexp ,org-element--...

-Justin



             reply	other threads:[~2023-07-04 23:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-04 23:51 Justin [this message]
2023-07-05 10:35 ` [BUG] org-element loading fails with "regexp" argument not "stringp" Ihor Radchenko
2023-07-05 16:00   ` [PATCH] Fix Emacs-26 compatibility (was: Re: [BUG] org-element loading fails with "regexp" argument not "stringp") Max Nikulin
2023-07-06  9:54     ` Ihor Radchenko
2023-07-08  4:56       ` [PATCH v2] " Max Nikulin
2023-07-08  9:18         ` 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=2ff109c7-b3ec-27ac-e75d-ae5ddac14746@vallon.homeip.net \
    --to=justinvallon@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).