Revert "Improve docstrings auto-generated by `define-minor-mode'"
This reverts commit a397fa06d1.
The original change breaks bootstrapping because of a circular dependency.
This commit is contained in:
@@ -95,17 +95,11 @@ if ARG is `toggle'; disable the mode otherwise.")
|
||||
\\{%s}" mode-pretty-name keymap-sym))))
|
||||
(if (string-match-p "\\bARG\\b" doc)
|
||||
doc
|
||||
(let* ((fill-prefix nil)
|
||||
(docstring-fc (bound-and-true-p emacs-lisp-docstring-fill-column))
|
||||
(fill-column (if (integerp docstring-fc) docstring-fc 65))
|
||||
(argdoc (format easy-mmode--arg-docstring
|
||||
mode-pretty-name)))
|
||||
(with-temp-buffer
|
||||
(insert (replace-regexp-in-string "\\(\n\n\\|\\'\\)\\(.\\|\n\\)*\\'"
|
||||
(concat argdoc "\\1")
|
||||
doc nil nil 1))
|
||||
(fill-region (point-min) (point-max) 'left t)
|
||||
(buffer-string))))))
|
||||
(let ((argdoc (format easy-mmode--arg-docstring
|
||||
mode-pretty-name)))
|
||||
(replace-regexp-in-string "\\(\n\n\\|\\'\\)\\(.\\|\n\\)*\\'"
|
||||
(concat argdoc "\\1")
|
||||
doc nil nil 1)))))
|
||||
|
||||
;;;###autoload
|
||||
(defalias 'easy-mmode-define-minor-mode 'define-minor-mode)
|
||||
|
||||
Reference in New Issue
Block a user