From unknown Fri Jun 20 18:18:41 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#41381 <41381@debbugs.gnu.org> To: bug#41381 <41381@debbugs.gnu.org> Subject: Status: 28.0.50; Can't compile file containing a local pcase macro Reply-To: bug#41381 <41381@debbugs.gnu.org> Date: Sat, 21 Jun 2025 01:18:41 +0000 retitle 41381 28.0.50; Can't compile file containing a local pcase macro reassign 41381 emacs submitter 41381 Philipp Stephani severity 41381 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 18 17:23:32 2020 Received: (at submit) by debbugs.gnu.org; 18 May 2020 21:23:32 +0000 Received: from localhost ([127.0.0.1]:48442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1janES-0001IV-Ad for submit@debbugs.gnu.org; Mon, 18 May 2020 17:23:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:40484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1janEQ-0001IH-GZ for submit@debbugs.gnu.org; Mon, 18 May 2020 17:23:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1janEQ-0001o2-8p for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 17:23:30 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:35436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1janEP-0005lz-2T for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 17:23:29 -0400 Received: by mail-wr1-x42d.google.com with SMTP id j5so13552219wrq.2 for ; Mon, 18 May 2020 14:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=xgYNCbdbNtBvig1xVXINvCsGeYYF3QVZwKCT7KuChY4=; b=Q1zNkqG+kzeZ7SLOdCJbRnuyIPZxFNrMEEU05u/qAGKOjEC064B/rPi33lUBofsfii ise8W2oTAaQCDXbblA7bw3tLzt9VBopdZiIEU/2Z7OmvtE9xTsja4RTFDJjS1rrSMQHy 4swRJLD6ew8Dkn3RjrNgvWxcxZj72mGV3xXQy8tjc5KtlGfwj+HlxjwaViC9eVbHcqvA 4Si4HkcT02wBA/0L/qHyb04433ph/SZ3BYVOKM+DXW+433v414/PepF5qcp4G4clVaPi XHqstTdfwAZ+eQXO461+f0sUsqYaYkqA4GE9PBEO1x/QkF0C16bE467WXnkVCphEvrsk 00/A== 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 :content-transfer-encoding; bh=xgYNCbdbNtBvig1xVXINvCsGeYYF3QVZwKCT7KuChY4=; b=MT9h9FTWDSLglRc/BprQUHR6Xae5qnhjgSQuD3YJUlrEVoqqC+WMvSawZ47wBtj/4y EInEpt8wMWnbx2RPat3xlPmwxR7ctNevW8QJEJLKZHtgIJHW/mPJVIDLNYI3g0usHvzY W6J9bYLxduSYhWmrOJsxupak06oY/qbxnJyAj+X8f3Ftdo8Ybf2+OFYVdQe0i23MboeB G8WVv19YNT/fjAJ9i0glSnqP32cEeKbUz2P2fN7oJTuDDTvOACIvvO/OJJBC/i1k/2r2 btDoQ25G5Ijm7UZdQXVLsvycabuHeIjNdWfC9pOkeDQxN8FUNheuBzLHJ+R58kb8hzaR f+Wg== X-Gm-Message-State: AOAM5300GGkLulEagcThA3l9B+7E1RYB8hr2CUrZqH1/r6f4mUGT32Hg czGBBGKx10nBvT55wsoTI6rCnqHnAus= X-Google-Smtp-Source: ABdhPJwP1F+tDWPNJHtV+W887Q6jUHdEA7/YVlwc7ORdUorDgt3ROqcHt09INYaPrLpK9iB/DBUzCQ== X-Received: by 2002:adf:a54e:: with SMTP id j14mr13167393wrb.99.1589837006418; Mon, 18 May 2020 14:23:26 -0700 (PDT) Received: from phst1 ([2a02:2455:2a2:100:c351:ffcc:5d8e:4288]) by smtp.gmail.com with ESMTPSA id m3sm18067706wrn.96.2020.05.18.14.23.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 14:23:25 -0700 (PDT) From: Philipp Stephani To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Can't compile file containing a local pcase macro Date: Mon, 18 May 2020 23:23:24 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=p.stephani2@gmail.com; helo=mail-wr1-x42d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) $ cat test.el ;;; -*- lexical-binding: t; -*- (pcase-defmacro test () '_) (defun test () (pcase nil ((test)))) $ emacs -Q -batch -l bytecomp -f batch-byte-compile test.el In toplevel form: test.el:3:1: Error: Symbol=E2=80=99s function definition is void: test--pca= se-macroexpander It works if the pcase macro is surrounded with `eval-when-compile', but that shouldn't be necessary I think. In GNU Emacs 28.0.50 (build 12, x86_64-pc-linux-gnu, GTK+ Version 3.24.13, = cairo version 1.16.0) of 2020-05-18 Repository revision: ca7224d5dbfd6f07d537f6159aae8df667a65497 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12007000 System Description: Debian GNU/Linux rodete Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --enable-gtk-deprecation-warnings --with-modules --without-pop --with-mailutils --enable-gcc-warnings=3Dwarn-only CFLAGS=3D-O3 LDFLAGS=3D-O3' Configured features: XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS PDUMPER GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils phst skeleton derived edmacro kmacro pcase ffap thingatpt url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars mailcap subr-x rx gnutls puny seq byte-opt gv bytecomp byte-compile cconv dbus xml compile comint ansi-color ring cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 69142 7839) (symbols 48 8951 1) (strings 32 23800 1837) (string-bytes 1 769195) (vectors 16 13264) (vector-slots 8 181686 6586) (floats 8 25 34) (intervals 56 208 0) (buffers 992 11)) --=20 Google Germany GmbH Erika-Mann-Stra=C3=9Fe 33 80636 M=C3=BCnchen Gesch=C3=A4ftsf=C3=BChrer: Paul Manicle, Halimah DeLaine Prado Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Diese E-Mail ist vertraulich. Falls Sie diese f=C3=A4lschlicherweise erhal= ten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, l=C3=B6sche= n Sie alle Kopien und Anh=C3=A4nge davon und lassen Sie mich bitte wissen, dass d= ie E-Mail an die falsche Person gesendet wurde. This e-mail is confidential. If you received this communication by mistake, please don=E2=80=99t forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 03 17:59:53 2020 Received: (at 41381) by debbugs.gnu.org; 3 Jun 2020 21:59:53 +0000 Received: from localhost ([127.0.0.1]:44683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgbQO-0003c1-ML for submit@debbugs.gnu.org; Wed, 03 Jun 2020 17:59:52 -0400 Received: from mail-io1-f47.google.com ([209.85.166.47]:34958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgbQM-0003bn-WE for 41381@debbugs.gnu.org; Wed, 03 Jun 2020 17:59:51 -0400 Received: by mail-io1-f47.google.com with SMTP id s18so4111953ioe.2 for <41381@debbugs.gnu.org>; Wed, 03 Jun 2020 14:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=JB+nB7tWWAar6Nf49McN1K7n+BLrWz2mZYviLx2eNd8=; b=ghViBhmfwozRlMqSnkac0CNeAGHPdGjFQokXBN/Nq+xIHs9hH69+xm7vO20xu5A/8J yK0ildK8raLzMYO7j4YYOZjl+hP6lzDR7E/cxZ2pOLYQBGtlxCD3/QMqtDpLln9XCEm2 I8luThWOHibyk/cOR3JN4oSFf7SqWx6LGURoaOG+lV+SB4UCpn96J7Or61pJwnuwxDPa QcU0isyvv2aKOm7gjNojMqWGbsGQF/pbfcyqFq25er1qHWfy1C2qcm6+PppPRndynfob pPEX4TF/S6l8pQStPLqQlUJ0QkaTK70YZBTV0KVpc+0X5gt43eLJeX9s186dOx0zRW1s MaVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=JB+nB7tWWAar6Nf49McN1K7n+BLrWz2mZYviLx2eNd8=; b=K9G0b3XNXm2uqUY25rso7+42z0aMVI0FFY9RATcU+RwbxyOFKNqsyH+IvB8aKrYw6t QwbcX26+MuPQ+JI51dve5ef7qdTGJTTMlat3fhzHhuXxRlw1dBdYFTTLpoanmM+wwmiX DU5qBJPQ6U+lZQLWVtEPYbxKU04zVL270QyU7w6yYmSxA4NpPhq4K50SHb4QOfMaYik1 mvmEvI6I0xIQSdKsyr/sYaYq7bAB28u6EVebbv88RnvQviUocXQrGIgKG+5SoukZL3yp I4NsHOkTFEtL38xnfp7BuY34so1Hx3xSlfRTaoWqgZkqHAcSDthWfHJXFrVPYS27rr/Y 3EnA== X-Gm-Message-State: AOAM532z4GWsnu0Ch99PAxcdgPxKmzRseEX4++Pfw/AbD5A3LSicBVyR womX7VPS3n3E70PPuWcjoYfb4FDdwSo= X-Google-Smtp-Source: ABdhPJxKSM81aQYDWNj3G2Uo4RZvgpwsRzRmekq4Z2seqVYBoqRLUAdvvQ582k5AA7kSsF1DifeluA== X-Received: by 2002:a02:9a03:: with SMTP id b3mr1778028jal.76.1591221585163; Wed, 03 Jun 2020 14:59:45 -0700 (PDT) Received: from chametz ([149.202.238.204]) by smtp.gmail.com with ESMTPSA id n1sm385563ilm.55.2020.06.03.14.59.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 14:59:44 -0700 (PDT) From: Pip Cet To: Philipp Stephani Subject: Re: bug#41381: 28.0.50; Can't compile file containing a local pcase macro References: Date: Wed, 03 Jun 2020 21:59:36 +0000 In-Reply-To: (Philipp Stephani's message of "Mon, 18 May 2020 23:23:24 +0200") Message-ID: <87pnaf6caf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Philipp Stephani writes: > $ cat test.el > ; ; ; -*- lexical-binding: t; -*- > (pcase-defmacro test () '_) > (defun test () (pcase nil ((test)))) > > $ emacs -Q -batch -l bytecomp -f batch-byte-compil [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (pipcet[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.166.47 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.166.47 listed in wl.mailspike.net] X-Debbugs-Envelope-To: 41381 Cc: 41381@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) Philipp Stephani writes: > $ cat test.el > ;;; -*- lexical-binding: t; -*- > (pcase-defmacro test () '_) > (defun test () (pcase nil ((test)))) > > $ emacs -Q -batch -l bytecomp -f batch-byte-compile test.el > > In toplevel form: > test.el:3:1: Error: Symbol=E2=80=99s function definition is void: test--p= case-macroexpander > > It works if the pcase macro is surrounded with `eval-when-compile', but > that shouldn't be necessary I think. Wouldn't it be better to surround the pcase-defmacro call with (eval-and-compile ...)? I think it would be great if there were some clever way to make eager macro expansion less eager, so things like evaluating the following two expressions one after another (defmacro foo () 3) (progn (defmacro foo () 4) (foo)) would produce the right result (4 rather than 3). That would solve this problem as well, but it's probably impossible to do with reasonable performance. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 06 15:11:45 2020 Received: (at 41381) by debbugs.gnu.org; 6 Jun 2020 19:11:45 +0000 Received: from localhost ([127.0.0.1]:52498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jheEL-0001yn-4m for submit@debbugs.gnu.org; Sat, 06 Jun 2020 15:11:45 -0400 Received: from mail-ot1-f52.google.com ([209.85.210.52]:43574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jheEI-0001yW-OI for 41381@debbugs.gnu.org; Sat, 06 Jun 2020 15:11:43 -0400 Received: by mail-ot1-f52.google.com with SMTP id u23so10395886otq.10 for <41381@debbugs.gnu.org>; Sat, 06 Jun 2020 12:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=676fNI3ULjwuw3iyFiWMd92wBIaF3G5rJS7JEPJ9un8=; b=orJguEPygolbq/Prwl1Edzs1QTMggW/W0nu0FQs7nUzgXuWMuLJHVEAsbWV9ylmXOX 1sPcWK8I3UdIffDLBsRePHFK1N7EqlR6mZcOWIhyK9irsPTrz8m0rr1/8Q5d/SuN5tGl x6TOQm2AzOukEqGAGziy/4znmD99RQt5bUDuexYpErSaKUIdL8FN6y1dKYNC/6Mk3fnr 8DTA42LQ1of3vaWtzadqbKbnhGkQ46sqtCfxL2fcHhLjnYCbmfMeVS39Qs0IJAct01A0 CsBr93wAe2KukoKxaPTI2Fd8XFGI7HRjabK6o7AFfa0hMp/jP3lz3tFKejb6WKvDLMTq RHyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=676fNI3ULjwuw3iyFiWMd92wBIaF3G5rJS7JEPJ9un8=; b=QKgi/ZSBYLsIsD44vbT7a7rqqE10mP1+eiITusABUNJr/vuZU4unmU0UE8FzsTAgCC 64ffk3v1HoPV74qVRgQlnIAr25ezBRVrFth6cIlyRCeEvqUcQcjD2sqqHnIrVDZzVU/Z W5kcE0mVt1/zVfu6nu/Ix0ijLwOK0sZs+EDTw9eDPkEmR5Wno/Y0ZcMfzQnWC3sr6Hux wkJ4gO56lvNiBATvfpvQU4uNGjrbwkP2e1lOXfH7By+pUU64AJp2760flh2XpEPy9xBu pt35X7oGteedq0MavOuKPZi9fftFyXCseP+LknV75GmPBbMP8veaUoleRbs1PVTtt6V/ M7kw== X-Gm-Message-State: AOAM532p5SJlUPOLDFYquH/BnRjuOQWjafFSvWdIuLnw/LGtzVgTfWkB Tnm4ialZXyzGIGz+lgDMI2QEpqGlxDw2d2Q61+M= X-Google-Smtp-Source: ABdhPJzQW2Tn5gDwnKOM+AUus/1onPUt9SAaQru4823S6aPqEN0CihWSPgMEs1hYhKmdl4cX1TLVX5/s59TvRzSP28c= X-Received: by 2002:a05:6830:242e:: with SMTP id k14mr11982583ots.36.1591470696949; Sat, 06 Jun 2020 12:11:36 -0700 (PDT) MIME-Version: 1.0 References: <87pnaf6caf.fsf@gmail.com> In-Reply-To: <87pnaf6caf.fsf@gmail.com> From: Philipp Stephani Date: Sat, 6 Jun 2020 21:11:26 +0200 Message-ID: Subject: Re: bug#41381: 28.0.50; Can't compile file containing a local pcase macro To: Pip Cet Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 41381 Cc: 41381@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Am Mi., 3. Juni 2020 um 23:59 Uhr schrieb Pip Cet : > > Philipp Stephani writes: > > $ cat test.el > > ;;; -*- lexical-binding: t; -*- > > (pcase-defmacro test () '_) > > (defun test () (pcase nil ((test)))) > > > > $ emacs -Q -batch -l bytecomp -f batch-byte-compile test.el > > > > In toplevel form: > > test.el:3:1: Error: Symbol=E2=80=99s function definition is void: test-= -pcase-macroexpander > > > > It works if the pcase macro is surrounded with `eval-when-compile', but > > that shouldn't be necessary I think. > > Wouldn't it be better to surround the pcase-defmacro call with > (eval-and-compile ...)? How about neither? This should work without any "eval-when-..." form. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 07 05:57:57 2020 Received: (at 41381) by debbugs.gnu.org; 7 Jun 2020 09:57:57 +0000 Received: from localhost ([127.0.0.1]:53315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhs3w-0004xi-St for submit@debbugs.gnu.org; Sun, 07 Jun 2020 05:57:57 -0400 Received: from mout.web.de ([212.227.15.3]:55037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhs3v-0004xV-7x for 41381@debbugs.gnu.org; Sun, 07 Jun 2020 05:57:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1591523868; bh=RdZaikvWW07uHH1haOaWlZNYiZ2gvptMt4W3wsAJW84=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=rmh7zkR22AiQSZEMfqADHH0OK6PY+xxIR7DgbBVBcUcDOu4syOqJZgb3yOsbgUR5R DWUzQezHYOBa0sFu+uCNkXvngHnoYcOKqCLaMneMO24EHpcd492GyLoK5yYmDa+w3J wuG/EqP1h8CxU3W/S0xNUTlnZjw87CAFEY4I+aPg= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.217.119.187]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lecda-1jA80Y0vK2-00qSA6; Sun, 07 Jun 2020 11:57:48 +0200 From: Michael Heerdegen To: Philipp Stephani Subject: Re: bug#41381: 28.0.50; Can't compile file containing a local pcase macro References: <87pnaf6caf.fsf@gmail.com> Date: Sun, 07 Jun 2020 11:57:47 +0200 In-Reply-To: (Philipp Stephani's message of "Sat, 6 Jun 2020 21:11:26 +0200") Message-ID: <875zc3ci5g.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:lBwSdBX7+uZn8/PEECyvNuZd80KkEVdlSfQeB3oSGIOCsBh2hZ8 Y06iPpdu57zGWWHUJkP7Fa6l7pcUX1cvs+g3GzkzLGMRbf8sU2MDBoT4oU0HXbaHkqFC8wH vb/rg/HZ5tmEKXbq3ecUFg41UayqwFlMSV5O4mbwvDAGjE4tLLNTcVfA5XOV/U9gDL4iXVF lwaKxjW1iMUMxgmY1iVPA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:b00/OIPjR1I=:y5ak8qkDdCdcruMkJb+a00 coc/YKkjEDpA3VwiKHDtOwi4HILLxMOs3ulR81B+exGBCRl/qnW8pEMu3FvlAhF3+ALqil9FU qqmdS2talLNxWSMdeI2t4A9Z24QHr0sybZQpdOeWNbPyVmfA80HH3y0z/uRf40qpyxFDl/7Le EdG6FJldHeIZpGQMDuGtRQUBSC1qJNXwv6niyuPMwJ1uk/AcO2QPf7kHlF+oql5Dd+mhfnfJv zo2XpZYIPDVeGZ6bV2XmqEfuW1hu1hwkmGbFPryfZwm/tu6TaRTQcXUUZLFdXGFQhqB0gY51y 0yqZCnjY4YSXFnmlKstD6vn6CLwog1Bt0I8NVeEb/9Uj+AzGhAns7nIyQ0L4+XvFrTlE9oL15 pCP+FvhYAQj+6S+azYZVzQZrVMxVn576IXWKM9P6Se6BLkiykWtFUHWWd1f27ZOjtNNdU/gcB nn9sdeZU00SU4TADnYsxG4ooZ0VmHp5iCB3tMyjLGoIkNjhJoFWuUl3KvXF2+vxIvHHCmJER5 K/TRMUs8t/7l+eaUfNd3a3PdJkByhXmfYqz+JWxrk1v4Tj6x6gtf5Emqnh+1ftrmiHW29zwPb PkQfMTdPrDuGql0YlxGBJFfW7Abcz808d9l4qDQMkZ3/MzROdVDIyAHE8dqKXpUQ/ruT5Uom7 tB8GrheAwbHp9js35KLfzPmR4OeBN+saw5EGWDQOg0fhHRMKuvMzJxxDwxXxHPGR8nKcGcuIB t4C0wjhvc2kxjuV7o859aZ0q7eVZtLmw170HllNxsCnPcY7fbjp6H2wxlt8/9SqOuLiMHUMwM pYiVUYIAkEF0coN7yN57Bi3CWpaVKvw4LlMChqxLUKKk0m56M36XihVY5tJ24V3K3ybk/1CWF J+uo8KlqnLH2uP1ucV6f7Ktu3hnxhWF5sfhxOuF6OzefZj9IGX2YmltqK8LrFuLyxp53zcwyO rcJ0BgZhOM6S+RHzxpDpyOaMPIPCQQP2+09NgwrqY19mCPtdQwLXhOyd5OYZl4GqJcFQBastK NXbsj15T0PkoMAkklktK16yKaCd+SZaW+a2nHiVREAcGcC0yuFFTuyB47z5PufxanStwGlhkt jUu3BEsNjMUcsfsPCCdbOtB3oaUpslO4ChBdgMPeeELrWjpnXKWc9roqYJxx0TuljIUOhKo5P PCO5baOWo0gjxKk8kNtmrc1kCc08UtJqtHK5c1ciu4ToRYSFM0tUPy5cuavMirAnw3kT80mL/ iIoqLt91o6xRe0LPMxrg2dKSBhxPRY2D1pk/7qQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41381 Cc: 41381@debbugs.gnu.org, Pip Cet X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Philipp Stephani writes: > How about neither? This should work without any "eval-when-..." form. That's what I would expect, too. Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 12:34:35 2021 Received: (at 41381) by debbugs.gnu.org; 31 Jul 2021 16:34:35 +0000 Received: from localhost ([127.0.0.1]:34712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9rwZ-0002us-9b for submit@debbugs.gnu.org; Sat, 31 Jul 2021 12:34:35 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9rwY-0002ue-6B for 41381@debbugs.gnu.org; Sat, 31 Jul 2021 12:34:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=8hHzaKe9TU6qKN05UH+7DqaQfTjRAfjZ4QYSzlVu+Pc=; b=TJJaGfTC9GvFIA+dq9gnxC86Dx CNbzku/8L8N68JXUs/RcFdtsuqYAozopbDzRrzKdWN2xqVV/IGyT4ttMEYKJuTexzpFzl0xrWQeTW titRjVMMeMcDBKtTxqueZMjD7Q4cg25KsKr5ghgnCNo2WZcUi7VgwXs1ZPyshmDvYzdw=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9rwP-0005TB-E6; Sat, 31 Jul 2021 18:34:28 +0200 From: Lars Ingebrigtsen To: Philipp Stephani Subject: Re: bug#41381: 28.0.50; Can't compile file containing a local pcase macro References: Date: Sat, 31 Jul 2021 18:34:24 +0200 In-Reply-To: (Philipp Stephani's message of "Mon, 18 May 2020 23:23:24 +0200") Message-ID: <87a6m2cui7.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Philipp Stephani writes: > $ cat test.el > ;;; -*- lexical-binding: t; -*- > (pcase-defmacro test () '_) > (defun test () (pcase nil ((test)))) > > $ emacs -Q -batch -l bytecomp -f batch-byte-compile test.el > > In toplevel f [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41381 Cc: 41381@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Philipp Stephani writes: > $ cat test.el > ;;; -*- lexical-binding: t; -*- > (pcase-defmacro test () '_) > (defun test () (pcase nil ((test)))) > > $ emacs -Q -batch -l bytecomp -f batch-byte-compile test.el > > In toplevel form: > test.el:3:1: Error: Symbol=E2=80=99s function definition is void: test--p= case-macroexpander I'm able to reproduce this in Emacs 27.1, but not on the current trunk, so I'm going to go ahead and guess that this has been fixed now, and I'm closing this bug report. If there's still an issue here, please respond to the debbugs address and we'll reopen. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 12:34:41 2021 Received: (at control) by debbugs.gnu.org; 31 Jul 2021 16:34:42 +0000 Received: from localhost ([127.0.0.1]:34715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9rwf-0002vA-IX for submit@debbugs.gnu.org; Sat, 31 Jul 2021 12:34:41 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9rwd-0002ul-Ri for control@debbugs.gnu.org; Sat, 31 Jul 2021 12:34:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=f9qAiwlP1jqGDFJTsw9GAHBWQ+FTru4oF7wj+4yXEUY=; b=kx0P6Rc5FQHMKbLvLeeug3I89g nhgKFZJH15eI90gtaULHN9YbKwpit3SSn1YVHiRAl1pbveFToPXWBY23QOygQg2A/0WQqL+iOFX4W q7ihMnhFEHgkYXw4Oq6DfEg5OB7N09Dkn6YEA6jFqKZAr1qPV97e6SGprod3tnzUidnM=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9rwV-0005TJ-K3 for control@debbugs.gnu.org; Sat, 31 Jul 2021 18:34:34 +0200 Date: Sat, 31 Jul 2021 18:34:30 +0200 Message-Id: <878s1mcui1.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #41381 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 41381 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 41381 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 12:39:10 2021 Received: (at 41381) by debbugs.gnu.org; 31 Jul 2021 16:39:10 +0000 Received: from localhost ([127.0.0.1]:34722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9s10-00032u-7k for submit@debbugs.gnu.org; Sat, 31 Jul 2021 12:39:10 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:37682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9s0x-00032i-Pq for 41381@debbugs.gnu.org; Sat, 31 Jul 2021 12:39:08 -0400 Received: by mail-wr1-f48.google.com with SMTP id d8so15584804wrm.4 for <41381@debbugs.gnu.org>; Sat, 31 Jul 2021 09:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wXyaOS0Si9EwZdss4NCUk2pXaHqU9HsDrQ4Glz4gEV8=; b=ppllDy/O8p+i7pam6rS5Cb/YZspYlMJYBgtTPVJF+XsN0ZshJGRm/sHa42lBwI5mBj 3EUVq1mGwD5ovzTJr1WcBLFR81C9jse8kZajMhhjlA9Oq8iPjhpBzSoCO+OP/q2hgiUf 9yHozle5HZ3EQTy5QknFYcc4Kk0mh36AGxGkO1SwjMmPIKLpa3ex5aA+XefcebcfchKz x9VvHUFm9zwY8icOa9Q2gmLfB8gr06FXWfkJYuVTGmZj/xuiz59hrGIPKgZF+nDp+J+v NG3Z1z6+6x0Vl8AopXp2VTRkTG0bpb1qjt4OjpJYFb/Yxrx8FQhbtOZBYtwOEx9q48n9 yZ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wXyaOS0Si9EwZdss4NCUk2pXaHqU9HsDrQ4Glz4gEV8=; b=VrhqzaNIWbof8LQY8X7a0UONsGPXhHYrDgN5OdBO1nhtLmGyMcATQK58t3SSX4tS3U +pRmuLSoXdm4VUIc3amMxeTO46CX0beHSRg+04DrnDtsjnVLF1Es/+y8lC7A96Dr53wS dlrQqLtUoJmwZmGUzx50kOEcJU7bC4kr/078Ut8ZIj4e7tT71F6Dl0m43nEwX8/ibrQa TZQBj/wCO+qGNdiwJqPQ1LHWllz6Ggnxd5Y4TLh1J0UEKln37dXqq8IwCTa2IUlHL5hr v4UkAwXNCwJRJ5GjHbLTgAKjwaKiCeJT251e84svFX0E6/JGV/GfvXPbPKBrNbOuGy0X qO8g== X-Gm-Message-State: AOAM530oZumLA0FeMNr/Hm2UvPbMsTAF0nlAJ+7gFFziJ34JblTWwaY0 Koyk3bQ3eKMLZ2tRMGJ/qA4= X-Google-Smtp-Source: ABdhPJy0SW1RfYuKWBAzMPx7xqcFJgmks7cHEvfeX72SRjHkT3+VMliXN/yoysqVNcF21/jjyQbTGQ== X-Received: by 2002:a5d:67c4:: with SMTP id n4mr8675433wrw.176.1627749541787; Sat, 31 Jul 2021 09:39:01 -0700 (PDT) Received: from smtpclient.apple ([46.128.198.100]) by smtp.gmail.com with ESMTPSA id b15sm6423177wrr.27.2021.07.31.09.39.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Jul 2021 09:39:01 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: bug#41381: 28.0.50; Can't compile file containing a local pcase macro From: Philipp In-Reply-To: <87a6m2cui7.fsf@gnus.org> Date: Sat, 31 Jul 2021 18:39:00 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <87a6m2cui7.fsf@gnus.org> To: Lars Ingebrigtsen X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 41381 Cc: 41381@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) > Am 31.07.2021 um 18:34 schrieb Lars Ingebrigtsen : >=20 > Philipp Stephani writes: >=20 >> $ cat test.el >> ;;; -*- lexical-binding: t; -*- >> (pcase-defmacro test () '_) >> (defun test () (pcase nil ((test)))) >>=20 >> $ emacs -Q -batch -l bytecomp -f batch-byte-compile test.el >>=20 >> In toplevel form: >> test.el:3:1: Error: Symbol=E2=80=99s function definition is void: = test--pcase-macroexpander >=20 > I'm able to reproduce this in Emacs 27.1, but not on the current = trunk, > so I'm going to go ahead and guess that this has been fixed now, and = I'm > closing this bug report. If there's still an issue here, please = respond > to the debbugs address and we'll reopen. My guess is that this was fixed by commit = 88ca2280ba430ad2fa681c72cc6ba8216709e63f.= From unknown Fri Jun 20 18:18:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 29 Aug 2021 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator