# HG changeset patch # User Richard M. Stallman # Date 1020140416 0 # Node ID c726a3eeeb0fe46db267e7243d30811a21e2f01e # Parent ee50e9257543913eeabc049fb51e111b5ba5bcf4 (documentation): Add ad-define-subr-args call. diff -r ee50e9257543 -r c726a3eeeb0f lisp/emacs-lisp/advice.el --- 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