GNU bug report logs - #14860
Advice causes byte compile warning: function used to take 0+ arguments, now takes 0

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Date: Sat, 13 Jul 2013 23:37:01 UTC

Severity: minor

Tags: confirmed, fixed, patch

Merged with 27630, 28803

Found in version 26.0.50

Fixed in version 26.1

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 14860 <at> debbugs.gnu.org
Subject: bug#14860: [Peter Vasil] emacs 24.3.50.1: Byte compile warning Warning: function used to take 0+ arguments, now takes 0
Date: Sun, 14 Jul 2013 03:03:53 +0200
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:

> > When I byte-compile init.el I get the following warning:
> > function goto-line-with-feedback used to take 0+ arguments, now takes 0

FWIW, I get exactly the same message when using nadvices.  Example: put
this into a file:

--8<---------------cut here---------------start------------->8---
(defun test () (message "test"))

(advice-add 'test :before
            (lambda () (message "before advice")))
--8<---------------cut here---------------end--------------->8---

load it, and byte-compile it:

==>

| In test:
| test.el:1:8:Warning: function test used to take 0+ arguments, now takes 0


Regards,

Michael.




This bug report was last modified 7 years and 213 days ago.

Previous Next


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