changeset 45019:c726a3eeeb0f

(documentation): Add ad-define-subr-args call.
author Richard M. Stallman <rms@gnu.org>
date Tue, 30 Apr 2002 04:20:16 +0000
parents ee50e9257543
children 73b950c09e00
files lisp/emacs-lisp/advice.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/advice.el	Tue Apr 30 03:28:48 2002 +0000
+++ b/lisp/emacs-lisp/advice.el	Tue Apr 30 04:20:16 2002 +0000
@@ -3925,6 +3925,10 @@
 ;; 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