* bug#14860: [Peter Vasil] emacs 24.3.50.1: Byte compile warning Warning: function used to take 0+ arguments, now takes 0
@ 2013-07-13 23:35 Stefan Monnier
2013-07-14 0:02 ` Stefan Monnier
2013-07-14 9:09 ` Peter Vasil
0 siblings, 2 replies; 7+ messages in thread
From: Stefan Monnier @ 2013-07-13 23:35 UTC (permalink / raw)
To: 14860; +Cc: Peter Vasil
[-- Attachment #1: Type: text/plain, Size: 42 bytes --]
[ Making it into a proper bug-report. ]
[-- Attachment #2: Type: message/rfc822, Size: 4927 bytes --]
From: Peter Vasil <mailing_lists@petervasil.net>
To: emacs-devel@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
Message-ID: <CAJe0aUT2y2t_=YzrKt_aas7baeEen97MKrbMP0OCQJD2vnG7Ew@mail.gmail.com>
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#14860: [Peter Vasil] emacs 24.3.50.1: Byte compile warning Warning: function used to take 0+ arguments, now takes 0
2013-07-13 23:35 Stefan Monnier
@ 2013-07-14 0:02 ` Stefan Monnier
2013-07-14 1:03 ` Michael Heerdegen
2013-07-14 9:09 ` Peter Vasil
1 sibling, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2013-07-14 0:02 UTC (permalink / raw)
To: 14860
> (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
I can't reproduce this here. What does C-h f goto-line-with-feedback RET
say, after starting an Emacs session?
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#14860: [Peter Vasil] emacs 24.3.50.1: Byte compile warning Warning: function used to take 0+ arguments, now takes 0
2013-07-14 0:02 ` Stefan Monnier
@ 2013-07-14 1:03 ` Michael Heerdegen
2013-07-14 6:34 ` Stefan Monnier
0 siblings, 1 reply; 7+ messages in thread
From: Michael Heerdegen @ 2013-07-14 1:03 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 14860
Stefan Monnier <monnier@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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#14860: [Peter Vasil] emacs 24.3.50.1: Byte compile warning Warning: function used to take 0+ arguments, now takes 0
2013-07-14 1:03 ` Michael Heerdegen
@ 2013-07-14 6:34 ` Stefan Monnier
0 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2013-07-14 6:34 UTC (permalink / raw)
To: Michael Heerdegen; +Cc: 14860
>> > 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
That's expected, yes. But in his case it's on a user-defined function,
so it seems unlikely he put an advice on it.
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#14860: [Peter Vasil] emacs 24.3.50.1: Byte compile warning Warning: function used to take 0+ arguments, now takes 0
2013-07-13 23:35 Stefan Monnier
2013-07-14 0:02 ` Stefan Monnier
@ 2013-07-14 9:09 ` Peter Vasil
1 sibling, 0 replies; 7+ messages in thread
From: Peter Vasil @ 2013-07-14 9:09 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 14860
Indeed, I have an advice on that function
(defadvice goto-line-with-feedback
(after
expand-after-goto-line-with-feedback
activate compile)
"hideshow-expand affected block when using
goto-line-with-feedback in a collapsed buffer"
(save-excursion
(hs-show-block)))
Peter
On Sun, Jul 14, 2013 at 1:35 AM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
> [ Making it into a proper bug-report. ]
>
>
>
> ---------- Forwarded message ----------
> From: Peter Vasil <mailing_lists@petervasil.net>
> To: emacs-devel@gnu.org
> Cc:
> Date: Sat, 13 Jul 2013 13:02:24 +0200
> Subject: emacs 24.3.50.1: Byte compile warning Warning: function used to take 0+ arguments, now takes 0
> 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
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#14860: [Peter Vasil] emacs 24.3.50.1: Byte compile warning Warning: function used to take 0+ arguments, now takes 0
[not found] <CAJe0aUTtUyT8fhnJyg=kWLcD1VaCAS95pHTLxXwhE1J+wZBtzw@mail.gmail.com>
@ 2013-07-14 17:41 ` Stefan Monnier
2013-07-14 18:28 ` Peter Vasil
0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2013-07-14 17:41 UTC (permalink / raw)
To: Peter Vasil; +Cc: 14860
> Indeed, I have an advice on that function
> (defadvice goto-line-with-feedback
> (after
> expand-after-goto-line-with-feedback
> activate compile)
> "hideshow-expand affected block when using
> goto-line-with-feedback in a collapsed buffer"
> (save-excursion
> (hs-show-block)))
Than it's a known issue. I do wonder, tho: why on earth do you have an
advice on your hand-written function?
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#14860: [Peter Vasil] emacs 24.3.50.1: Byte compile warning Warning: function used to take 0+ arguments, now takes 0
2013-07-14 17:41 ` bug#14860: [Peter Vasil] emacs 24.3.50.1: Byte compile warning Warning: function used to take 0+ arguments, now takes 0 Stefan Monnier
@ 2013-07-14 18:28 ` Peter Vasil
0 siblings, 0 replies; 7+ messages in thread
From: Peter Vasil @ 2013-07-14 18:28 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 14860
I had the advice only because I adviced the regular goto-line to call
hs-show-block and when I added the got-line-with-feedback I just
copied the first advice and did not realize that it makes no sense. I
have removed the advice now and I've put the hs-show-block into
got-line-with-feedback function.
Sorry for the noise.
Peter
On Sun, Jul 14, 2013 at 7:41 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> Indeed, I have an advice on that function
>> (defadvice goto-line-with-feedback
>> (after
>> expand-after-goto-line-with-feedback
>> activate compile)
>> "hideshow-expand affected block when using
>> goto-line-with-feedback in a collapsed buffer"
>> (save-excursion
>> (hs-show-block)))
>
> Than it's a known issue. I do wonder, tho: why on earth do you have an
> advice on your hand-written function?
>
>
> Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-07-14 18:28 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAJe0aUTtUyT8fhnJyg=kWLcD1VaCAS95pHTLxXwhE1J+wZBtzw@mail.gmail.com>
2013-07-14 17:41 ` bug#14860: [Peter Vasil] emacs 24.3.50.1: Byte compile warning Warning: function used to take 0+ arguments, now takes 0 Stefan Monnier
2013-07-14 18:28 ` Peter Vasil
2013-07-13 23:35 Stefan Monnier
2013-07-14 0:02 ` Stefan Monnier
2013-07-14 1:03 ` Michael Heerdegen
2013-07-14 6:34 ` Stefan Monnier
2013-07-14 9:09 ` Peter Vasil
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.