mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-13 03:06:23 -08:00
(documentation): Add ad-define-subr-args call.
This commit is contained in:
parent
f1b693270a
commit
bd421bc2dd
2 changed files with 8 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2002-04-30 Richard M. Stallman <rms@gnu.org>
|
||||
|
||||
* emacs-lisp/advice.el (documentation): Add ad-define-subr-args call.
|
||||
|
||||
2002-04-29 Richard M. Stallman <rms@gnu.org>
|
||||
|
||||
* net/zone-mode.el (zone-mode): Add write-file-hooks hook locally.
|
||||
|
|
|
|||
|
|
@ -3925,6 +3925,10 @@ undone on exit of this macro."
|
|||
;; Use the advice mechanism to advise `documentation' to make it
|
||||
;; generate proper documentation strings for advised definitions:
|
||||
|
||||
;; This makes sure we get the right arglist for `documentation'
|
||||
;; during bootstrapping.
|
||||
(ad-define-subr-args 'documentation '(function &optional raw))
|
||||
|
||||
(defadvice documentation (after ad-advised-docstring first disable preact)
|
||||
"Builds an advised docstring if FUNCTION is advised."
|
||||
;; Because we get the function name from the advised docstring
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue