]> code.delx.au - gnu-emacs/blobdiff - lisp/help.el
Merge from origin/emacs-25
[gnu-emacs] / lisp / help.el
index efbae39a002af155e80c87124cbd628f3d6b1de2..897cab5e37189337b2bbd1348f10737279b683db 100644 (file)
@@ -1412,7 +1412,7 @@ ARGLIST can also be t or a string of the form \"(FUN ARG1 ARG2 ...)\"."
                (if (< (- (match-end 0) (match-beginning 0)) 2) "\n" "")
              "\n\n")
            (if (stringp arglist)
-                (if (string-match "\\`[^ ]+\\(.*\\))\\'" arglist)
+                (if (string-match "\\`[^ ]+\\(\\(?:.\\|\n\\)*\\))\\'" arglist)
                     (concat "(fn" (match-string 1 arglist) ")")
                   (error "Unrecognized usage format"))
              (help--make-usage-docstring 'fn arglist)))))