GNU bug report logs - #42590
27.0.91; Advice error for interactive commands

Previous Next

Package: emacs;

Reported by: Yuan Fu <casouri <at> gmail.com>

Date: Wed, 29 Jul 2020 01:59:01 UTC

Severity: normal

Found in version 27.0.91

Done: Yuan Fu <casouri <at> gmail.com>

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: Yuan Fu <casouri <at> gmail.com>
Cc: 42590 <at> debbugs.gnu.org
Subject: bug#42590: 27.0.91; Advice error for interactive commands
Date: Wed, 29 Jul 2020 19:41:35 +0200
Yuan Fu <casouri <at> gmail.com> writes:

> To reproduce the issue, evaluate
>
> (advice-add 'backward-delete-char-untabify :after 'ignore)
>
> and hit backspace (which should call backward-delete-char-untabify), and
> an error occurs: apply: Wrong number of arguments: (1 . 2), 0

Had to think about it.  But it's expected I think: `ignore' is
interactive, and as documented, its interactive spec overwrites the
interactive spec of the original function.  And it doesn't fit.

So everything behaves as documented, it's your specified after advice
that causes the problem.  Right?

Michael.




This bug report was last modified 4 years and 297 days ago.

Previous Next


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