From unknown Fri Jun 20 07:11:47 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#42590 <42590@debbugs.gnu.org> To: bug#42590 <42590@debbugs.gnu.org> Subject: Status: 27.0.91; Advice error for interactive commands Reply-To: bug#42590 <42590@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:11:47 +0000 retitle 42590 27.0.91; Advice error for interactive commands reassign 42590 emacs submitter 42590 Yuan Fu severity 42590 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 28 21:58:33 2020 Received: (at submit) by debbugs.gnu.org; 29 Jul 2020 01:58:33 +0000 Received: from localhost ([127.0.0.1]:59539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0bMX-00025M-8J for submit@debbugs.gnu.org; Tue, 28 Jul 2020 21:58:33 -0400 Received: from lists.gnu.org ([209.51.188.17]:36644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0bMV-00025C-B0 for submit@debbugs.gnu.org; Tue, 28 Jul 2020 21:58:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0bMV-0001DA-1Y for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2020 21:58:31 -0400 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:38947) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k0bMT-0002EI-3F for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2020 21:58:30 -0400 Received: by mail-qv1-xf2f.google.com with SMTP id o2so10128223qvk.6 for ; Tue, 28 Jul 2020 18:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=NA5g6hRCjRV3AV4DZy85Y3QczosSl+yy9aK4U67PJ7w=; b=Lzo9j5EihGxohlISEZxSxC5qoNhUt2/wozycRTVVOti5UeCYbArF85dNMOeHMUwq8S S5Dx1zgENDNsy8b1ae7hmI0qopySpMyrKLR5nRR8/ZMqgUBCzcLciRTcvxpjY1atnCKR WnisC4+s+jmKaV0TXRIf7Z3M2kmPEmPlER7ReL1UV6yFSaV4rApIMbfgbtJK7tN2KRBl KPsZRmWy/BR1iL4bsOoQa95R6TNO5G24vtJR/U0ZDo+CBfXffh0yMLBzFn3ix+e3BfvK 3V8lURPv6yvulqgeey81PW1vHTjpaGE4LS9+D+8nzkKmy7m7MwA1OwOpY1E1L/heJ4KE Q9Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=NA5g6hRCjRV3AV4DZy85Y3QczosSl+yy9aK4U67PJ7w=; b=ofch6/pBSpzgw9BSkl/sZVicoFETOZM01wTYpWzLfR1NFlfjmKDan/ZtwKS4+kCPIo LBmNR8KeUDVyJMhHBrEvrbPs6q67q7jv3GWGC4OetelOmYDr7aL4z9dNTxKD5JV82mzF o5tJdGnH+2Ur0vmdwG3TIQwVlcAFEuh48K/917MyKr7xmeYknLItgW68jX5ZgVbHz3z9 3wrDflLtdxfvoztTlT9clcRrcHluFBFN6aHwFia9F/UcLki+RnbINyuJYHaCmU/PsqvB s+R7kjPIHuZi0cZjDtw811X83Ml3nRPDQIeGzkWx4iVgEFBokkmHD3qU18neL3Up8pfK 42IQ== X-Gm-Message-State: AOAM530SRWo4UrcvSnRyfbtAl26D5lLwWMaouKMhC+yJL/CMs87jINhf tukMKxDxe7sJFOx1YXZk2xdY3MnhdY1dgw== X-Google-Smtp-Source: ABdhPJzj9qGHFSpRWrX5gWYlVsIJPNpbGHgthtjmry7HnZUp8esoU1ANgKmrIY7ihQ5aQKasS4j5wQ== X-Received: by 2002:a0c:800e:: with SMTP id 14mr30391060qva.92.1595987907242; Tue, 28 Jul 2020 18:58:27 -0700 (PDT) Received: from ?IPv6:2601:98a:4200:9210:fd2f:3b64:2ca9:39da? ([2601:98a:4200:9210:fd2f:3b64:2ca9:39da]) by smtp.gmail.com with ESMTPSA id r188sm420642qkd.70.2020.07.28.18.58.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2020 18:58:26 -0700 (PDT) From: Yuan Fu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: 27.0.91; Advice error for interactive commands Message-Id: Date: Tue, 28 Jul 2020 21:58:25 -0400 To: Bug Report Emacs X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::f2f; envelope-from=casouri@gmail.com; helo=mail-qv1-xf2f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 Backtrace: Debugger entered--Lisp error: (wrong-number-of-arguments (1 . 2) 0) #f(compiled-function (arg &optional killp) "Delete characters = backward, changing tabs into spaces.\nThe exact behavior depends on = `backward-delete-char-untabify-method'.\nDelete ARG chars, and kill = (save in kill ring) if KILLP is non-nil.\nInteractively, ARG is the = prefix arg (default 1)\nand KILLP is t if a prefix arg was specified." = (interactive "*p\nP") #)() apply(#f(compiled-function (arg &optional killp) "Delete characters = backward, changing tabs into spaces.\nThe exact behavior depends on = `backward-delete-char-untabify-method'.\nDelete ARG chars, and kill = (save in kill ring) if KILLP is non-nil.\nInteractively, ARG is the = prefix arg (default 1)\nand KILLP is t if a prefix arg was specified." = (interactive "*p\nP") #) nil) backward-delete-char-untabify() funcall-interactively(backward-delete-char-untabify) call-interactively(backward-delete-char-untabify nil nil) command-execute(backward-delete-char-untabify) In GNU Emacs 27.0.91 (build 1, x86_64-apple-darwin19.5.0, NS = appkit-1894.50 Version 10.15.5 (Build 19F101)) of 2020-07-28 built on Brown Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.5 Recent messages: Loading uniquify...done Loading electric...done Loading emacs-lisp/eldoc...done Loading cus-start...done Loading tooltip...done Loading = /Applications/Emacs.app/Contents/Resources/lisp/leim/leim-list.el = (source)...done Finding pointers to doc strings...done For information about GNU Emacs and the GNU system, type C-h C-a. Loading loadup.el (source)...done Mark set [2 times] apply: Wrong number of arguments: (1 . 2), 0 Configured using: 'configure --with-modules --with-pdumper=3Dyes = --oldincludedir=3D/Applications/Xcode.app/Contents/Developer/Platforms/Mac= OSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libxml2/ --with-ns = PKG_CONFIG_PATH=3D/usr/local/Cellar/zlib/1.2.8/lib/pkgconfig:/usr/local/li= b/pkgconfig:/opt/X11/lib/pkgconfig' Configured features: RSVG DBUS GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS XIM NS MODULES THREADS JSON PDUMPER LCMS2 Important settings: value of $LC_CTYPE: UTF-8 value of $LANG: en_CN.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /Applications/Emacs.app/Contents/Resources/lisp/mail/metamail hides = /Applications/Emacs.app/Contents/Resources/lisp/obsolete/metamail /Applications/Emacs.app/Contents/Resources/lisp/sb-image hides = /Applications/Emacs.app/Contents/Resources/lisp/obsolete/sb-image Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip cus-start eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 269358 17394) (symbols 48 20582 1) (strings 32 55830 2233) (string-bytes 1 2366984) (vectors 16 51368) (vector-slots 8 1408784 68426) (floats 8 184 73) (intervals 56 234 0) (buffers 1000 11)) From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 29 13:41:47 2020 Received: (at 42590) by debbugs.gnu.org; 29 Jul 2020 17:41:48 +0000 Received: from localhost ([127.0.0.1]:33650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0q5L-0002t8-Mw for submit@debbugs.gnu.org; Wed, 29 Jul 2020 13:41:47 -0400 Received: from mout.web.de ([212.227.15.3]:43911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0q5H-0002ss-RO for 42590@debbugs.gnu.org; Wed, 29 Jul 2020 13:41:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1596044497; bh=9q9nsMrQRSHa28dhMInvqv85gP3+IDHeieuec3fd8vo=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=OxK1mJtbbKO2jpqcHgvGFuGgJ2hTjN5+TQZoAu8KPWibVGDaniAYvgdCpa7AsFixS 6h3n8mR9rcd36vLET++4aYZjpp1R/EdnzPTqFQj4gofPt5Ud1t6MQ0t7p5zww4uVjX ZR1BAKfxpoQpYXIAOgXVFbZSIka1m/9yDvyaOE10= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([92.76.215.78]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MsaWF-1ku3Kt3HZb-00u18y; Wed, 29 Jul 2020 19:41:36 +0200 From: Michael Heerdegen To: Yuan Fu Subject: Re: bug#42590: 27.0.91; Advice error for interactive commands References: Date: Wed, 29 Jul 2020 19:41:35 +0200 In-Reply-To: (Yuan Fu's message of "Tue, 28 Jul 2020 21:58:25 -0400") Message-ID: <87wo2mfcc0.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:tRwfU9xdaZjBNN9nD7ugrV+ZREenW/aTIaxhJdTr6EtkBfvXx4m p/MiacjdeQC5GeQv+1Lcedl0Fim4rK5FP+n4AkNfL53KkVqS8r9DiAJBSmKZhFaGXsIhwd8 C42icVjRtHdUjq3kJAsMBgADE+4STuXTDQDR815c19Zt8ECjZsK3vy0ibEYfkyJg4pqNwVY gXCQLTVm5DdxG1ammA6+w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:pQYRDSr30Ps=:jET9xijkiD8pBrsPUbXopG BElRY7c9u1QaOSUUCPAVrOF3T3alealuiaab/cnnHXVkSf79Y0aIP5lsKAE/aLUnwBrtKFTvy EnCWGbSlq6ThGCvXj65LmfDwDVWF/gxVwyVlvLd2KmVywqywP+EZCTyTyHNYvrULuye24EJDo 7GuCZe01NVuc/8K5TomxgM4AC4ZVNxHzgjLv9+kZKkB6GMFg3/JTxNsM6hKRhft5+oAWE5JnX NIp3o5qXtcAD+dNWzplJ2s7KBfVBSF3A9mxqO7ueh0ZZKMEHNzqD+t59tAT3Y8aevXfHEcRTz fPeeblwuQA/ez6GKSyb5ggzBDj8f6Uwjnq0eP95yGfoPkVntZW7HUR0sOr8oR7L438qYyUfr5 S+DqLhf1ZEIRdLc7tZO6zAG76ZhQRHPFlzzgJad6LIPCPLJKknE6LOjpOVzedeyGzISpmnPft Ckx1ETMPCKEVRz4pkO/F+Hv7VT9ifD1cU70NcpN2VhHlEK6UsF67OmsZMBdla7Igz9ylt+Hv3 as7F+w+ffuUGciUwgzFAluehqV5nt5Qn68G5KmMgLWswq7S2hBrtUPVuAbQO4SyM4g8duDDt5 04OXOmzu5mmi3j8ExorC4AbNRR/z0UolfYh/mwGFPa/YLfmMl+CXM+1iIxgNamWe4QRmvECSI Iyru80Ru4XP/QfsrzadJgKHNHPPZYS+/7mh21bVum02iohidMCWICswwYv4SaryASUtHhGWtR vNwK7yKVoqx2kyAoLXo/s87HzlnGLE3fHNhE1bgpgeorVOMZ19VzWn1Lr15Diiq7JiTp+IbNG 9oYqk2PmXwJUeJX6+oeLj1arMZb6qVcb4fgLaVxDlPIbVarWalnul2ImhFNtFfncH1zWLLJK/ XnyCWPkxXXNtVxZ8mf2737y4zR3yucCNMgTQ7C+wq47QZJrM53ySPe1F6vWchjbRKDxl5wLUN 2PAAHxEshRJhx6TOqhcrSEgI1p6LdMxIQLvs2FWa/NALltx3Nyx6/xU4/nGntvRbqXS3+Vexd 4gCer3WJH1iOHY5sMN40ULH9HXliJwsAykL8lLQV32QESnlDFkT5QbqyiHvw4jmZbAGhzDDdY NFWyC/dPs2HnYxIaRhrSNq/JkqfUx1qUBZyrk63DCwluBe8vhjYdrHLK6Y22ZVwMVbAw2iDLc Tu/Dnkisi2NVK1JEnGXxTJ4aGaXM4zN83VDxPrjqSF7oMUUA6sYJBCXHghV50lSPKQWc7dkYs dfslWntXnMzJFNdt7mbR5QTqndzfs/tXh+XzShg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 42590 Cc: 42590@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Yuan Fu 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 29 15:22:01 2020 Received: (at 42590) by debbugs.gnu.org; 29 Jul 2020 19:22:01 +0000 Received: from localhost ([127.0.0.1]:33755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0reL-0005Hk-Cq for submit@debbugs.gnu.org; Wed, 29 Jul 2020 15:22:01 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:39704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0reJ-0005HW-J4 for 42590@debbugs.gnu.org; Wed, 29 Jul 2020 15:22:00 -0400 Received: by mail-qt1-f180.google.com with SMTP id w9so18516860qts.6 for <42590@debbugs.gnu.org>; Wed, 29 Jul 2020 12:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=g0UyqBPoBSijkfbRk58hAARWykQqRcaCNAAIcSaG7y8=; b=BGs37txDBzpmoipqrWW0291JckN6EOlgNEYl6LeSUzPAA4P28qijRe2PWcyT2sll9p lRbPgjLj8dUH8wl4eSexlj3I7FRKiDoTKIncVMbT4PxH1X9u6el4Nof6MzUAgfHySQcS m7vUe1rRcRvFd0ki04QgOcb5DmAYdVb/f6mU6Kf62Z3HIyX1UsI9LI2uwZROGLDKK002 0nM6dipP+uH5YiY8ng52KrNbphatqDGWIxQb0KHcIMWyKdw0WxFxYnqg1dUjT6D/zYf0 kPoSd4BDy+WM6lprjfg+i/5MZskkPYgKxdNlNa+PF9wI4tN8AxIjY3UB/pBmgC3h1Jsh WyQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=g0UyqBPoBSijkfbRk58hAARWykQqRcaCNAAIcSaG7y8=; b=jHUV1tXSyaKE3INZRy3KZLpuUt5hDk24OwwRqgFO308fGa25BNVpne5c86c83btR1z pEyjtbESJlKBbsi/IIzCe284EiWVpfoPrvVooHcbWLLp17UEX6FyI2nCVFcXRqXkTltt C3oSCbKF1GD8XfgVKu4GOZO7cjF1hRe3uFPP+KQP3BusOSBDftYVkRg4Wen1aYsPdy3p y+kd4/GULoyjwkJta4bfO0irijkgwqpuccCVazZVANKdI6N5upPwZKSyRKDwJejoieb1 CTG61tlBjWfiZeAnfPAqERFRrxFUA+E9HFfSCF2h/MhN9HU/aZQWGJur9/YyqmgrYo45 Gphw== X-Gm-Message-State: AOAM5307z5h15it7x73XlDPcmV9BUhPO0ndMxTVSNF4G91TaXXqFtDVu satjFmDicVqR3iladvoiZMM= X-Google-Smtp-Source: ABdhPJyZBCKE1bS/Vg3R0rfL2TqK7Vu6HX/HPYWKjr7Ng/0a6OfGG98VKUaqyXJ324Zui9sv1KAUxg== X-Received: by 2002:ac8:6b04:: with SMTP id w4mr35236136qts.364.1596050513978; Wed, 29 Jul 2020 12:21:53 -0700 (PDT) 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.21.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2020 12:21:53 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: bug#42590: 27.0.91; Advice error for interactive commands From: Yuan Fu In-Reply-To: <87wo2mfcc0.fsf@web.de> Date: Wed, 29 Jul 2020 15:21:52 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <87wo2mfcc0.fsf@web.de> To: Michael Heerdegen X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42590 Cc: 42590@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 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. 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 Yuan= From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 29 15:22:44 2020 Received: (at 42590-done) by debbugs.gnu.org; 29 Jul 2020 19:22:45 +0000 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 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 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) 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) From: Yuan Fu Content-Type: multipart/alternative; boundary="Apple-Mail=_66953131-D709-42F0-9EED-9C765C1DF463" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Fwd: bug#42590: 27.0.91; Advice error for interactive commands Message-Id: References: To: 42590-done@debbugs.gnu.org Date: Wed, 29 Jul 2020 15:22:36 -0400 X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42590-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --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-- From unknown Fri Jun 20 07:11:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 Aug 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator