GNU bug report logs - #78792
[PATCH] Fix compilation of defalias with a constant macro cons pair

Previous Next

Package: emacs;

Reported by: zach shaftel <zach <at> shaf.tel>

Date: Sun, 15 Jun 2025 01:41:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: zach shaftel <zach <at> shaf.tel>
To: 78792 <at> debbugs.gnu.org
Cc: Shigeru Fukaya <shigeru.fukaya <at> gmail.com>
Subject: bug#78792: [PATCH] Fix compilation of defalias with a constant macro cons pair
Date: Sat, 14 Jun 2025 21:40:08 -0400
[Message part 1 (text/plain, inline)]
Tags: patch

byte-compile-file-form-defalias destructures (cons 'macro 'fn) and
'(macro . fn) the same way, so in the latter case fn would be unquoted,
and then eval would later signal (void-variable fn). this patch just
re-quotes fn, and adds a test for this scenario.


In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.49, cairo version 1.18.4) of 2025-06-11 built on bigbox
Repository revision: f90cee6f761b0c2bffcfa64556284884c0f7348f
Repository branch: feature/igc
System Description: Arch Linux

Configured using:
 'configure --with-modules --with-native-compilation --with-tree-sitter
 --without-gsettings --without-gconf --without-gpm --with-pgtk
 --without-compress-install --with-mps 'CFLAGS=-mtune=native
 -march=native -O3 -fuse-ld=mold''

[0001-Fix-compilation-of-defalias-with-a-constant-macro-co.patch (text/patch, attachment)]

This bug report was last modified 1 day ago.

Previous Next


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