GNU bug report logs - #16689
24.3.50; Interactivity and nadvice

Previous Next

Package: emacs;

Reported by: Nathan Trapuzzano <nbtrap <at> nbtrap.com>

Date: Sat, 8 Feb 2014 12:49:01 UTC

Severity: minor

Found in version 24.3.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Nathan Trapuzzano <nbtrap <at> nbtrap.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 16689 <at> debbugs.gnu.org
Subject: bug#16689: 24.3.50; Interactivity and nadvice
Date: Fri, 14 Feb 2014 11:20:56 +0100
Nathan Trapuzzano <nbtrap <at> nbtrap.com> writes:

> I'm talking about the interface.  I believe the manual's old section on
> defadvice talked about how to change a command's interactive behavior.
> The nadvice section doesn't talk about any of that.

I do think so, too.  What the docstring says:

If one of FUNCTION or OLDFUN is interactive, then the resulting function
is also interactive.  There are 3 cases:
- FUNCTION is not interactive: the interactive spec of OLDFUN is used.
- The interactive spec of FUNCTION is itself a function: it should take one
  argument (the interactive spec of OLDFUN, which it can pass to
  `advice-eval-interactive-spec') and return the list of arguments to use.
- Else, use the interactive spec of FUNCTION and ignore the one of OLDFUN.

is already an exhaustive explanation, it could IMHO be used more or less
as is in the manual.

Michael.




This bug report was last modified 10 years and 363 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.