unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 42590@debbugs.gnu.org
Subject: bug#42590: 27.0.91; Advice error for interactive commands
Date: Wed, 29 Jul 2020 15:21:52 -0400	[thread overview]
Message-ID: <FA8E43BB-C3A4-41F3-8B49-1D74A51E3BCE@gmail.com> (raw)
In-Reply-To: <87wo2mfcc0.fsf@web.de>



> On Jul 29, 2020, at 1:41 PM, Michael Heerdegen <michael_heerdegen@web.de> wrote:
> 
> Yuan Fu <casouri@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.

Thanks. I first advised with another interactive function and found this problem. Ignore is just an example. Once I remove the advice the problem went away. I’ll close this report now. 

Yuan




  reply	other threads:[~2020-07-29 19:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-29  1:58 bug#42590: 27.0.91; Advice error for interactive commands Yuan Fu
2020-07-29 17:41 ` Michael Heerdegen
2020-07-29 19:21   ` Yuan Fu [this message]
2020-07-29 19:22 ` bug#42590: Fwd: " Yuan Fu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FA8E43BB-C3A4-41F3-8B49-1D74A51E3BCE@gmail.com \
    --to=casouri@gmail.com \
    --cc=42590@debbugs.gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).