[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: after-find-file's obsolete invocation of sit-for confuses advice
From: |
Stefan Monnier |
Subject: |
Re: after-find-file's obsolete invocation of sit-for confuses advice |
Date: |
Tue, 03 Jun 2003 09:22:43 -0400 |
> Running CVS emacs checked out this morning, with follow.el loaded, the
> command C-x C-f ~/foobar/baz errored out in after-find-file, on an
> out-of-date three-argument call to sit-for.
>
> Why does this cause an error? I can't figure that out; sit-for still
> does accept three arguments. I suspect there's another bug, and it
> would be good to localize that one.
The problem goes as follows:
defadvice looks for the list of args, gets it from the docstring.
It says there are two arguments. It then generates a wrapper function
that takes 2 args and passes them to the subr.
I.e. from then on any call to sit-for with 3 args will fail because the
adviced function now only takes 2 args rather than 3.
Stefan