aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/emacs-lisp/advice.el4
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d1ddd68685b..132bb45cb81 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12002-04-30 Richard M. Stallman <rms@gnu.org>
2
3 * emacs-lisp/advice.el (documentation): Add ad-define-subr-args call.
4
12002-04-29 Richard M. Stallman <rms@gnu.org> 52002-04-29 Richard M. Stallman <rms@gnu.org>
2 6
3 * net/zone-mode.el (zone-mode): Add write-file-hooks hook locally. 7 * net/zone-mode.el (zone-mode): Add write-file-hooks hook locally.
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index b03dd3603bd..34e2a92ed37 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -3925,6 +3925,10 @@ undone on exit of this macro."
3925;; Use the advice mechanism to advise `documentation' to make it 3925;; Use the advice mechanism to advise `documentation' to make it
3926;; generate proper documentation strings for advised definitions: 3926;; generate proper documentation strings for advised definitions:
3927 3927
3928;; This makes sure we get the right arglist for `documentation'
3929;; during bootstrapping.
3930(ad-define-subr-args 'documentation '(function &optional raw))
3931
3928(defadvice documentation (after ad-advised-docstring first disable preact) 3932(defadvice documentation (after ad-advised-docstring first disable preact)
3929 "Builds an advised docstring if FUNCTION is advised." 3933 "Builds an advised docstring if FUNCTION is advised."
3930 ;; Because we get the function name from the advised docstring 3934 ;; Because we get the function name from the advised docstring