GNU bug report logs -
#16959
24.3.50; defadvice docstring out of date
Previous Next
Reported by: Florian Beck <fb <at> miszellen.de>
Date: Fri, 7 Mar 2014 15:19:01 UTC
Severity: minor
Found in version 24.3.50
Done: Stefan <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
Message #28 received at 16959 <at> debbugs.gnu.org (full text, mbox):
> I've installed some changes to try and address them.
Very nice.
Some comments:
Advising Emacs Lisp Functions:
- The third paragraph could link to "What Is a Function?"
- also link "in order to trace the calls to the process filter of a
process" to "Filter Functions"
- in the last paragraph ":above" should be ":around"; the formatting
"_advice_" is strange
- mention that in the first example the advising function takes the
same arguments as the original, and in the second the original function
as an additional argument (this is the most important info, IMO)
Core Advising Primitives:
- Should the WHERE specifications have their own node or section? In
any case, I would move the second example (his-tracing-function) to the
end of the list and explain it a little bit. Like
"In this case a call to `display-buffer' works like calling
(lambda (BUFFER-OR-NAME &optional ACTION FRAME)
(apply 'his-tracing-fun 'display-buffer BUFFER-OR-NAME ACTION FRAME))
That is, instead of `display-buffer', the new function `his tracing-fun'
is called with display-buffer as its first argument."
- depth: clarify what happens when you have several pieces of
":override" or ":around" advice that doesn't call the original function
at the depth 0.
Advising named functions:
- "Macros can also be advised": this doesn't work when the macro is
used in a compiled function.
--
Florian Beck
This bug report was last modified 11 years and 56 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.