From: Leo Liu <sdl.web@gmail.com>
To: 19066@debbugs.gnu.org
Subject: bug#19066: 25.0.50; nadvice and interactive-form
Date: Sun, 16 Nov 2014 18:00:21 +0800 [thread overview]
Message-ID: <87y4rbtqh6.fsf@gmail.com> (raw)
1. Start emacs and load a file with these lines:
--8<---------------cut here---------------start------------->8---
(advice-add 'just-one-space :before #'change-interactive-form)
(defun change-interactive-form (&optional x y)
(interactive (list 1 1))
(princ (list x y)))
--8<---------------cut here---------------end--------------->8---
M-x just-one-space prints (1 nil)
2. Start emacs and load a file with these lines:
--8<---------------cut here---------------start------------->8---
(defun change-interactive-form (&optional x y)
(interactive (list 1 1))
(princ (list x y)))
(advice-add 'just-one-space :before #'change-interactive-form)
--8<---------------cut here---------------end--------------->8---
M-x just-one-space errs: apply: Wrong number of arguments: (0 . 1), 2
Leo
next reply other threads:[~2014-11-16 10:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-16 10:00 Leo Liu [this message]
2021-05-28 2:11 ` bug#19066: 25.0.50; nadvice and interactive-form Lars Ingebrigtsen
2021-05-30 17:26 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-31 5:43 ` Lars Ingebrigtsen
2021-05-31 12:49 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=87y4rbtqh6.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=19066@debbugs.gnu.org \
/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).