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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Subject: bug#14860: closed (Byte-compilation warnings for advised functions)
Date: Fri, 14 Jul 2017 15:30:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#14860: Advice causes byte compile warning: function used to take 0+ arguments, now takes 0

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 14860 <at> debbugs.gnu.org.

-- 
14860: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14860
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: 14860-done <at> debbugs.gnu.org
Cc: Eli Zaretskii <eliz <at> gnu.org>, npostavs <at> users.sourceforge.net
Subject: Byte-compilation warnings for advised functions
Date: Fri, 14 Jul 2017 11:29:48 -0400
I believe I now fixed the warnings for good in bytecomp.el.


        Stefan

[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: bug-gnu-emacs <at> gnu.org
Subject: [Peter Vasil] emacs 24.3.50.1: Byte compile warning Warning: function
 used to take 0+ arguments, now takes 0
Date: Sat, 13 Jul 2013 19:35:32 -0400
[Message part 4 (text/plain, inline)]
[ Making it into a proper bug-report.  ]

[Message part 5 (message/rfc822, inline)]
From: Peter Vasil <mailing_lists <at> petervasil.net>
To: emacs-devel <at> gnu.org
Subject: emacs 24.3.50.1: Byte compile warning Warning: function used to take
	0+ arguments, now takes 0
Date: Sat, 13 Jul 2013 13:02:24 +0200
Hi list,

I have the following function in my init.el file

(defun goto-line-with-feedback ()
  "Show line numbers temporarily, while prompting for the line number input"
  (interactive)
  (let ((line-numbers-off-p (if (boundp 'linum-mode)
                                (not linum-mode)
                              t)))
    (unwind-protect
        (progn
          (when line-numbers-off-p
            (linum-mode 1))
          (call-interactively 'goto-line))
      (when line-numbers-off-p
        (linum-mode -1)))))

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

With emacs 24.3 I don't get this warning only with emacs trunk.
I am on revision 113411

Thanks,
Peter

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.