From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: 44807@debbugs.gnu.org
Subject: bug#44807: 28.0.50; pcase macroexpander for rx is not autoloaded
Date: Sun, 22 Nov 2020 21:37:57 +0000 [thread overview]
Message-ID: <875z5xm5sa.fsf@tcd.ie> (raw)
Severity: wishlist
0. emacs -Q
1. (pcase "a" ((rx "a")))
2. C-x C-s /tmp/a.el RET
3. M-x compile RET
4. C-a C-k emacs -Q -batch -f batch-byte-compile a.el RET
This fails with:
In toplevel form:
a.el:4:1: Error: Unknown rx pattern: (rx "a")
This can be solved by adding (require 'rx) to the file. Given that all
other rx.el entry points are autoloaded, however, I was wondering
whether the same could be done for its pcase macroexpander.
Would adding an autoload cookie before (pcase-defmacro rx ...) work?
Thanks,
--
Basil
In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars)
of 2020-11-22 built on thunk
Repository revision: 9490f12c4dc4deb16f4e900646319f6de033982c
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Debian GNU/Linux bullseye/sid
Configured using:
'configure 'CC=ccache gcc' 'CFLAGS=-O2 -march=native' --config-cache
--prefix=/home/blc/.local --with-x-toolkit=lucid
--with-file-notification=yes --with-x'
Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB
NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT
LIBOTF ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS
LIBSYSTEMD JSON PDUMPER LCMS2
Important settings:
value of $LANG: en_IE.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
next reply other threads:[~2020-11-22 21:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-22 21:37 Basil L. Contovounesios [this message]
2020-11-24 7:07 ` bug#44807: 28.0.50; pcase macroexpander for rx is not autoloaded Lars Ingebrigtsen
2020-11-24 9:42 ` Mattias Engdegård
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875z5xm5sa.fsf@tcd.ie \
--to=contovob@tcd.ie \
--cc=44807@debbugs.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.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).