From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#42590: Fwd: bug#42590: 27.0.91; Advice error for interactive commands Date: Wed, 29 Jul 2020 15:22:36 -0400 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_66953131-D709-42F0-9EED-9C765C1DF463" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10113"; mail-complaints-to="usenet@ciao.gmane.io" To: 42590-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 29 21:23:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0rfU-0002XJ-Rt for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jul 2020 21:23:12 +0200 Original-Received: from localhost ([::1]:38368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0rfT-0000im-PS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jul 2020 15:23:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0rfK-0000fv-Lg for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2020 15:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50449) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k0rfK-00047T-BS for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2020 15:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k0rfK-0005K0-8f for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2020 15:23:02 -0400 In-Reply-To: Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jul 2020 19:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 42590 X-GNU-PR-Package: emacs Mail-Followup-To: 42590@debbugs.gnu.org, casouri@gmail.com, casouri@gmail.com Original-Received: via spool by 42590-done@debbugs.gnu.org id=D42590.159605056520412 (code D ref 42590); Wed, 29 Jul 2020 19:23:02 +0000 Original-Received: (at 42590-done) by debbugs.gnu.org; 29 Jul 2020 19:22:45 +0000 Original-Received: from localhost ([127.0.0.1]:33760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0rf2-0005J9-KU for submit@debbugs.gnu.org; Wed, 29 Jul 2020 15:22:44 -0400 Original-Received: from mail-qv1-f54.google.com ([209.85.219.54]:34541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0rf0-0005Iy-P0 for 42590-done@debbugs.gnu.org; Wed, 29 Jul 2020 15:22:43 -0400 Original-Received: by mail-qv1-f54.google.com with SMTP id t6so6481255qvw.1 for <42590-done@debbugs.gnu.org>; Wed, 29 Jul 2020 12:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:references:to:date; bh=pZDniXMJh620R+9fI4NlCAwSNJ/D1yQT2UkcH+9zk/U=; b=LTymX76JU4wHimrCKJph/dHWTg2tq35X+QfmFvP2/kM8LKv3W6OwLZi2IFaWL+JJ7o ukDdKQjfK8+CQoGxN84NzN/HdABTksT4SOyTj/H5NI4uFbXPnz1wjrzsvS0MwEEZ7oGm E8f/DT5w/3+hcMSqpcV7BUsEx0j1KHny/8pHS9q1jUyvtaPe83sYLF/njprr5bZ/9WHo biiZyHBhYwXyJMVqDFB1u/MhMHlZ1wWkEk4LrHQxRFivMNr+kd3y0Rr11Mq2U+zfk3GD Zhc/oX7FlHtvnnlxhXzC/HR6FRWfRl5Nsnev4Gzw8bZQO33M1ngUe5gdAdjsozvmjfZ/ i8/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:references :to:date; bh=pZDniXMJh620R+9fI4NlCAwSNJ/D1yQT2UkcH+9zk/U=; b=JSm7h/cvFy4driJYYF6EX2HCoOf9skCDvWvg9dXI+Xd/Rwgezf1jOIFplynRFFxNS7 SfW7bSiJEDwPI9FTHDHqOYDNvDNfJhgVwY3b4af30rWjXT4/k7O00HcONcmfTPuE1cc8 MNTJ6ulkHCkIscFl3aGk3p2MgQ1bhYyzsWuDtV0V+hYQvn0m3EBycYO6Ftzp4BNXfLGm +Tf4hT57LrqB6L42d8+b4v5AM6RIgzufaRJ2+OGz65Dg6kjK7t+bPLN7wPwd07OpHz4p 6HZXlzjAqZXbQ5QLx1wHwyc+HdSL+v3Sa83cO2U69fWfUv+NzAVAtYdKYThRckb7e4IC CO9g== X-Gm-Message-State: AOAM532xJwkrkr9WcTGjyUL0I5KqJ0V46X5hxE0s0NMTmddnct5HXCSb w/hhXHdyBJF+6TFMyZ955Rmsg2bQ/qrQmw== X-Google-Smtp-Source: ABdhPJwo9DeFiI5mOaKGbNeo0nswNbtVYgmvooc4wXJIztSyIoUtf0z5UoCiqSd43oPJ5n70mEwHiA== X-Received: by 2002:ad4:41c9:: with SMTP id a9mr7066192qvq.171.1596050557096; Wed, 29 Jul 2020 12:22:37 -0700 (PDT) Original-Received: from ?IPv6:2601:98a:4200:9210:65d9:b06:bf91:6aef? ([2601:98a:4200:9210:65d9:b06:bf91:6aef]) by smtp.gmail.com with ESMTPSA id u21sm2358967qkk.1.2020.07.29.12.22.36 for <42590-done@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2020 12:22:36 -0700 (PDT) X-Mailer: Apple Mail (2.3608.120.23.2.1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183678 Archived-At: --Apple-Mail=_66953131-D709-42F0-9EED-9C765C1DF463 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Begin forwarded message: >=20 > From: Yuan Fu > Subject: Re: bug#42590: 27.0.91; Advice error for interactive commands > Date: July 29, 2020 at 3:21:52 PM GMT-4 > To: Michael Heerdegen > Cc: 42590@debbugs.gnu.org >=20 >=20 >=20 >> On Jul 29, 2020, at 1:41 PM, Michael Heerdegen = wrote: >>=20 >> Yuan Fu writes: >>=20 >>> To reproduce the issue, evaluate >>>=20 >>> (advice-add 'backward-delete-char-untabify :after 'ignore) >>>=20 >>> and hit backspace (which should call backward-delete-char-untabify), = and >>> an error occurs: apply: Wrong number of arguments: (1 . 2), 0 >>=20 >> 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. >>=20 >> So everything behaves as documented, it's your specified after advice >> that causes the problem. Right? >>=20 >> Michael. >=20 > 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=E2=80=99ll close this report now.=20 >=20 > Yuan --Apple-Mail=_66953131-D709-42F0-9EED-9C765C1DF463 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Begin forwarded message:

From: = Yuan Fu <casouri@gmail.com>
Subject: = Re: bug#42590: = 27.0.91; Advice error for interactive commands
Date: = July 29, 2020 at 3:21:52 PM = GMT-4
To: = Michael Heerdegen <michael_heerdegen@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=E2=80=99ll close this report now.

Yuan

= --Apple-Mail=_66953131-D709-42F0-9EED-9C765C1DF463--