GNU bug report logs - #69533
30.0.50; Wrong byte compilation of a certain apply syntax

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Mon, 4 Mar 2024 01:52:02 UTC

Severity: normal

Found in version 30.0.50

Done: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 69533 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <basil <at> contovou.net>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 69533 <at> debbugs.gnu.org,
 Mattias EngdegÄrd <mattiase <at> acm.org>
Subject: Re: bug#69533: 30.0.50; Wrong byte compilation of a certain apply
 syntax
Date: Mon, 04 Mar 2024 09:48:31 +0100
Michael Heerdegen [2024-03-04 09:17 +0100] wrote:

> "Basil L. Contovounesios" <basil <at> contovou.net> writes:
>
>> FWIW, my guilty pleasure is using this calling convention with
>> a non-literal form, e.g.:
>>
>>   (define-advice foo (:around (&rest args) my-foo)
>>     (with-something (apply args)))
>
> Hmm, I realize now that I have used this convention all the time, too,
> without thinking about it (it just worked...), in the same
> situation.  Instead of - what? - (apply #'funcall args)?

No, instead of (apply (car args) (cdr args)), or

  (define-advice foo (:around (fn &rest args) my-foo)
    (with-something (apply fn args)))

-- 
Basil




This bug report was last modified 1 year and 162 days ago.

Previous Next


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