emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#14860: closed (Advice causes byte compile warning:


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14860: closed (Advice causes byte compile warning: function used to take 0+ arguments, now takes 0)
Date: Fri, 14 Jul 2017 15:30:02 +0000

Your message dated Fri, 14 Jul 2017 11:29:48 -0400
with message-id <address@hidden>
and subject line Byte-compilation warnings for advised functions
has caused the debbugs.gnu.org bug report #14860,
regarding Advice causes byte compile warning: function used to take 0+ 
arguments, now takes 0
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
14860: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14860
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
[ Making it into a proper bug-report.  ]

--- Begin Message --- 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

--- End Message ---

--- End Message ---
--- Begin Message --- Subject: Byte-compilation warnings for advised functions Date: Fri, 14 Jul 2017 11:29:48 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
I believe I now fixed the warnings for good in bytecomp.el.


        Stefan


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]