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: Michael Albinus <michael.albinus <at> gmx.de>
To: "J.D. Smith" <jdtsmith <at> gmail.com>
Cc: 78995 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#78995: [PATCH] ;;;autoload-expand for special macros
Date: Wed, 30 Jul 2025 17:44:15 +0200
"J.D. Smith" <jdtsmith <at> gmail.com> writes:

Hi,
>> 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?

No, there's only one Tramp branch, which is deployed on master and on
GNU ELPA.

Tramp uses an own declare form `tramp-suppress-trace'. In order to make
it happen, there's the code

--8<---------------cut here---------------start------------->8---
(eval-and-compile
  (defalias 'tramp-byte-run--set-suppress-trace
    #'(lambda (f _args val)
	(list 'function-put (list 'quote f)
	      ''tramp-suppress-trace val)))

  (add-to-list
   'defun-declarations-alist
   (list 'tramp-suppress-trace #'tramp-byte-run--set-suppress-trace))))
--8<---------------cut here---------------end--------------->8---

Perhaps this trick could be used?

Best regards, Michael.




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.