unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19066: 25.0.50; nadvice and interactive-form
@ 2014-11-16 10:00 Leo Liu
  2021-05-28  2:11 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Liu @ 2014-11-16 10:00 UTC (permalink / raw)
  To: 19066


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





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-31 12:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-16 10:00 bug#19066: 25.0.50; nadvice and interactive-form Leo Liu
2021-05-28  2:11 ` 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

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).