GNU bug report logs - #44102
28.0.50; [feature/native-comp] defalias to a macro is broken

Previous Next

Package: emacs;

Reported by: Kisaragi Hiu <mail <at> kisaragi-hiu.com>

Date: Tue, 20 Oct 2020 18:42:01 UTC

Severity: normal

Found in version 28.0.50

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andrea Corallo <akrl <at> sdf.org>
To: 44102 <at> debbugs.gnu.org
Cc: Kisaragi Hiu <mail <at> kisaragi-hiu.com>, 44102-done <at> debbugs.gnu.org
Subject: bug#44102: 28.0.50; [feature/native-comp] defalias to a macro is broken
Date: Tue, 20 Oct 2020 19:43:59 +0000
Hi Kisaragi,

This appear to be a bug in parifer-mode.

The following code

===
(if (fboundp 'save-mark-and-excursion)
    (defalias 'parinfer-save-excursion 'save-mark-and-excursion)
  (defalias 'parinfer-save-excursion 'save-excursion))
===

is evaluated at load time while the macro definition should be present
at compile time to be effective.  To obtain this the form in discussion
should be wrapped in an `eval-when-compile' to be effective.

You should be getting the same error byte compiling the file from a
fresh Emacs where this package was not loaded.

I'm closing this, feel free to link this discussion if you open a PR to
parifer-mode or reply to this if you need more info.

Thanks for reporting this!

  Andrea




This bug report was last modified 4 years and 217 days ago.

Previous Next


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