Fix false positives in docstring width warning with (fn...) constructs.
* lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p): Don't consider the function signature when determining whether the doc string is too wide (bug#49007). (The signature is folded later when displaying help.)
This commit is contained in:
parent
1956d98cab
commit
1756e4757c
1 changed files with 4 additions and 1 deletions
|
@ -1635,7 +1635,10 @@ URLs."
|
|||
;; Ignore these `substitute-command-keys' substitutions.
|
||||
(seq "\\" (or "="
|
||||
(seq "<" (* (not ">")) ">")
|
||||
(seq "{" (* (not "}")) "}")))))
|
||||
(seq "{" (* (not "}")) "}")))
|
||||
;; Ignore the function signature that's stashed at the end of
|
||||
;; the doc string (in some circumstances).
|
||||
(seq bol "(fn (" (* nonl))))
|
||||
""
|
||||
;; Heuristic: assume these substitutions are of some length N.
|
||||
(replace-regexp-in-string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue