GNU bug report logs - #44807
28.0.50; pcase macroexpander for rx is not autoloaded

Previous Next

Package: emacs;

Reported by: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Date: Sun, 22 Nov 2020 21:39:02 UTC

Severity: wishlist

Found in version 28.0.50

Done: Mattias Engdegård <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44807 in the body.
You can then email your comments to 44807 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#44807; Package emacs. (Sun, 22 Nov 2020 21:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Basil L. Contovounesios" <contovob <at> tcd.ie>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 22 Nov 2020 21:39:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; pcase macroexpander for rx is not autoloaded
Date: Sun, 22 Nov 2020 21:37:57 +0000
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44807; Package emacs. (Tue, 24 Nov 2020 07:09:02 GMT) Full text and rfc822 format available.

Message #8 received at 44807 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 44807 <at> debbugs.gnu.org
Subject: Re: bug#44807: 28.0.50; pcase macroexpander for rx is not autoloaded
Date: Tue, 24 Nov 2020 08:07:03 +0100
"Basil L. Contovounesios" <contovob <at> tcd.ie> writes:

> Would adding an autoload cookie before (pcase-defmacro rx ...) work?

It's possible...  have you tried?  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Reply sent to Mattias Engdegård <mattiase <at> acm.org>:
You have taken responsibility. (Tue, 24 Nov 2020 09:44:02 GMT) Full text and rfc822 format available.

Notification sent to "Basil L. Contovounesios" <contovob <at> tcd.ie>:
bug acknowledged by developer. (Tue, 24 Nov 2020 09:44:02 GMT) Full text and rfc822 format available.

Message #13 received at 44807-done <at> debbugs.gnu.org (full text, mbox):

From: Mattias Engdegård <mattiase <at> acm.org>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 44807-done <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#44807: 28.0.50; pcase macroexpander for rx is not autoloaded 
Date: Tue, 24 Nov 2020 10:42:52 +0100
Thank you for suggesting this -- autoloading a pcase macro seems to work and it is now done for the rx expander.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 22 Dec 2020 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 176 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.