;; definition is loaded]", bug#21299
(if (stringp arglist) t
(help--make-usage-docstring function arglist)))
- (setq origdoc (cdr usage)) (car usage)))
+ (setq origdoc (cdr usage))
+ (car usage)))
(help-add-fundoc-usage
(with-temp-buffer
(when before
((symbolp place) `(default-value ',place))
(t place))))
-(defun nadvice--make-docstring (sym)
+(defun advice--make-nadvice-docstring (sym)
+ "Make docstring for a nadvice function.
+Modifies the function's docstring by replacing \"<<>>\" with the
+description of the possible HOWs."
(let* ((main (documentation (symbol-function sym) 'raw))
(ud (help-split-fundoc main 'pcase))
(doc (or (cdr ud) main))
(if ud (help-add-fundoc-usage combined-doc (car ud)) combined-doc)))
(put 'add-function 'function-documentation
- '(nadvice--make-docstring 'add-function))
+ '(advice--make-nadvice-docstring 'add-function))
;;;###autoload
(defmacro add-function (how place function &optional props)
(funcall fsetfun symbol newdef))))
(put 'advice-add 'function-documentation
- '(nadvice--make-docstring 'advice-add))
+ '(advice--make-nadvice-docstring 'advice-add))
;;;###autoload
(defun advice-add (symbol how function &optional props)