diff options
| author | Glenn Morris | 2014-09-07 23:00:58 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-09-07 23:00:58 -0700 |
| commit | c04714f7c87956eb49e803d69290793f15fdaa90 (patch) | |
| tree | bf673719000a4e8d20178433870c1759d1759020 /doc | |
| parent | 4612d1eab721a1010312382d1048c8b3a67b18fa (diff) | |
| parent | 6e82d877a4a59feb4390baeb2ccc57e7cd03593d (diff) | |
| download | emacs-c04714f7c87956eb49e803d69290793f15fdaa90.tar.gz emacs-c04714f7c87956eb49e803d69290793f15fdaa90.zip | |
Merge from emacs-24; up to 2014-07-08T06:24:07Z!eggert@cs.ucla.edu
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/functions.texi | 24 |
2 files changed, 20 insertions, 9 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 185e5045be7..ddd0dee213a 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-09-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * functions.texi (Core Advising Primitives): Add a note about the | ||
| 4 | confusing treatment of `interactive' for :filter-args (bug#18399). | ||
| 5 | |||
| 1 | 2014-09-07 Michael Albinus <michael.albinus@gmx.de> | 6 | 2014-09-07 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * strings.texi (Text Comparison): Describe `string-collate-equalp' | 8 | * strings.texi (Text Comparison): Describe `string-collate-equalp' |
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index 91fdcc63cbe..3049660159a 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -1220,15 +1220,6 @@ ways to do it. The added function is also called an @emph{advice}. | |||
| 1220 | This macro is the handy way to add the advice @var{function} to the function | 1220 | This macro is the handy way to add the advice @var{function} to the function |
| 1221 | stored in @var{place} (@pxref{Generalized Variables}). | 1221 | stored in @var{place} (@pxref{Generalized Variables}). |
| 1222 | 1222 | ||
| 1223 | If @var{function} is not interactive, then the combined function will inherit | ||
| 1224 | the interactive spec, if any, of the original function. Else, the combined | ||
| 1225 | function will be interactive and will use the interactive spec of | ||
| 1226 | @var{function}. One exception: if the interactive spec of @var{function} | ||
| 1227 | is a function (rather than an expression or a string), then the interactive | ||
| 1228 | spec of the combined function will be a call to that function with as sole | ||
| 1229 | argument the interactive spec of the original function. To interpret the spec | ||
| 1230 | received as argument, use @code{advice-eval-interactive-spec}. | ||
| 1231 | |||
| 1232 | @var{where} determines how @var{function} is composed with the | 1223 | @var{where} determines how @var{function} is composed with the |
| 1233 | existing function, e.g. whether @var{function} should be called before, or | 1224 | existing function, e.g. whether @var{function} should be called before, or |
| 1234 | after the original function. @xref{Advice combinators}, for the list of | 1225 | after the original function. @xref{Advice combinators}, for the list of |
| @@ -1271,6 +1262,21 @@ original function and other advices will apply to it, whereas an outermost | |||
| 1271 | @code{:override} advice will override not only the original function but all | 1262 | @code{:override} advice will override not only the original function but all |
| 1272 | other advices applied to it as well. | 1263 | other advices applied to it as well. |
| 1273 | @end table | 1264 | @end table |
| 1265 | |||
| 1266 | If @var{function} is not interactive, then the combined function will inherit | ||
| 1267 | the interactive spec, if any, of the original function. Else, the combined | ||
| 1268 | function will be interactive and will use the interactive spec of | ||
| 1269 | @var{function}. One exception: if the interactive spec of @var{function} | ||
| 1270 | is a function (rather than an expression or a string), then the interactive | ||
| 1271 | spec of the combined function will be a call to that function with as sole | ||
| 1272 | argument the interactive spec of the original function. To interpret the spec | ||
| 1273 | received as argument, use @code{advice-eval-interactive-spec}. | ||
| 1274 | |||
| 1275 | Note: The interactive spec of @var{function} will apply to the combined | ||
| 1276 | function and should hence obey the calling convention of the combined function | ||
| 1277 | rather than that of @var{function}. In many cases, it makes no difference | ||
| 1278 | since they are identical, but it does matter for @code{:around}, | ||
| 1279 | @code{:filter-args}, and @code{filter-return}, where @var{function}. | ||
| 1274 | @end defmac | 1280 | @end defmac |
| 1275 | 1281 | ||
| 1276 | @defmac remove-function place function | 1282 | @defmac remove-function place function |