GNU bug report logs - #78995
[PATCH] ;;;autoload-expand for special macros

Previous Next

Package: emacs;

Reported by: JD Smith <jdtsmith <at> gmail.com>

Date: Fri, 11 Jul 2025 19:29:02 UTC

Severity: normal

Tags: patch

Fixed in version 31

Done: "J.D. Smith" <jdtsmith <at> gmail.com>

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "J.D. Smith" <jdtsmith <at> gmail.com>
Cc: 78995 <at> debbugs.gnu.org, Michael Albinus <michael.albinus <at> gmx.de>
Subject: bug#78995: [PATCH] ;;;autoload-expand for special macros
Date: Wed, 30 Jul 2025 11:38:55 -0400
>>> Good idea.  Michael, if you can try this along with a patch like the one
>>> Stefan proposed for tramp (correcting the declare form name) that would
>>> be useful.  Assuming it all works as expected, you'll notice
>>> `tramp-loaddefs.el' no longer contains the macro and the calls to it,
>>> but rather only the expanded forms it generates.
>>
>> Before doing so, I've tried Stefan's patch with Emacs 28. There are
>> compilation warnings.
>>    ...
>> And also at runtime.
>
> That would seem to make it difficult to add new declare forms and
> simultaneously support older versions of Emacs.  How have such issues
> been dealt with in the past?  Do you have a version or branch of TRAMP
> that is only deployed on master?

I think it's not that bad: just adding the ERROR=t is sufficient.
The `autoload-macro` declaration can be kept for later, once Tramp drops
support for Emacs<31.

I suspect the same will apply for Transient: we'll want to make sure the
new functionality works well for it, but we'll have to keep the old
ad-hoc solution until it drops support for Emacs<31.


        Stefan





This bug report was last modified 27 days ago.

Previous Next


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