From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#44807: 28.0.50; pcase macroexpander for rx is not autoloaded Date: Sun, 22 Nov 2020 21:37:57 +0000 Message-ID: <875z5xm5sa.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15757"; mail-complaints-to="usenet@ciao.gmane.io" To: 44807@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 22 22:39:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kgx4h-0003zY-1V for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 22:39:11 +0100 Original-Received: from localhost ([::1]:58872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgx4f-0002qq-U4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 16:39:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgx4Y-0002qj-Sj for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 16:39:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgx4Y-0005By-Ka for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 16:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kgx4Y-00005Y-It for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 16:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Nov 2020 21:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44807 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160608108732735 (code B ref -1); Sun, 22 Nov 2020 21:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Nov 2020 21:38:07 +0000 Original-Received: from localhost ([127.0.0.1]:48455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgx3f-0008Vu-2Y for submit@debbugs.gnu.org; Sun, 22 Nov 2020 16:38:07 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgx3d-0008Vn-62 for submit@debbugs.gnu.org; Sun, 22 Nov 2020 16:38:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgx3c-0002nO-Qw for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 16:38:04 -0500 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:51336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgx3a-0004qe-Ui for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 16:38:04 -0500 Original-Received: by mail-wm1-x32d.google.com with SMTP id a186so13379152wme.1 for ; Sun, 22 Nov 2020 13:38:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=uF8oChrcD9oKWTYVZrbpmJ+nsX/AX34xnXrmu0JQY6g=; b=j+lI1bCCcSceN+eqEMxmKbQ8UBiC3Mgt5bj4Ap97Kg3nxBolBM8WR0f1gCeUOxr94G 7maubdytRbSY1QpxdXs1B4ak6w3+et/gTW4y19zK9TQeRLGhyVEUMgy3/BHmLfEOic+A 9HjqwwZN+E2VQgnpp48tS/Z3M90RepJuiTt+SKd4AlrdCkkh1564Zika81ZM1b0iAjCg 21ni6oDj4gkQre6K5qczfTPV7lu2bcYJyQjo5nQXPTNRektTBCg+x4cOcpAciSAYqaR/ +lhHxGVATNs9+DI5b/Qu5kTeg5GH+s3g1715aBO2YyTOpX0OgUdycvpezcz32pmRIqKB lXSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=uF8oChrcD9oKWTYVZrbpmJ+nsX/AX34xnXrmu0JQY6g=; b=ktzjSdT4SkUwM7N8/Y/u1Ej+O5AmW2nripNTB6UWdFOxuw6KT3Zl5i8P75FPUjmWbu NYh87eZqJcrZq7eH/sFaIGCZWrmsWQjlxXMK9Og4xmsWtZ+wyEoPCKzwhLAwIlCOB04b z6EfwhBpeNC2cCcpRXBzba8u6q45hlp6ys176HHOv5+jbmVR5kzTQGlq4NNKm/eCkFj/ MCm6+SHDyacaDeyN7eyFfszmJlwp8UCXQrjL458YOpfxrP1W5PGEs69nr7MHAAlPWtoE jbR7r5JUL4NEfZWQhUT/bFfCXS6RK85UmjOP2US3tNVC/r5qPfaxgwyVdcxj1d/rklWb iWbg== X-Gm-Message-State: AOAM530Sva4IydFNBOCHU/BK5ur9RHzP+D/N/yYY1xbX2WwE2zgZf0vs WeaUFo7rofZyfq81o0LhKapmkDySAtFsOF0U X-Google-Smtp-Source: ABdhPJzJ6CkjK3AHyAiWx6ef3xotyVD5/p1GEDr/vCkEVaEYuTrPpepJZYDbHVJrcXRXEN52nwOvNA== X-Received: by 2002:a1c:7402:: with SMTP id p2mr21540043wmc.104.1606081079228; Sun, 22 Nov 2020 13:37:59 -0800 (PST) Original-Received: from localhost ([51.37.63.46]) by smtp.gmail.com with ESMTPSA id o4sm12649985wmh.33.2020.11.22.13.37.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Nov 2020 13:37:58 -0800 (PST) Received-SPF: none client-ip=2a00:1450:4864:20::32d; envelope-from=contovob@tcd.ie; helo=mail-wm1-x32d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193881 Archived-At: 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