; Further minor simplification of rx form in bytecomp.el
* lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p): Simplify even more. Thanks to Mattias Engdegård <mattiase@acm.org>.
This commit is contained in:
parent
a5fbc21bc6
commit
a59e35d79f
1 changed files with 2 additions and 2 deletions
|
@ -1672,12 +1672,12 @@ URLs."
|
|||
;; known at compile time. So instead, we assume that these
|
||||
;; substitutions are of some length N.
|
||||
(replace-regexp-in-string
|
||||
(rx "\\" (seq "[" (* (not "]")) "]"))
|
||||
(rx "\\[" (* (not "]")) "]")
|
||||
(make-string byte-compile--wide-docstring-substitution-len ?x)
|
||||
;; For literal key sequence substitutions (e.g. "\\`C-h'"), just
|
||||
;; remove the markup as `substitute-command-keys' would.
|
||||
(replace-regexp-in-string
|
||||
(rx "\\" (seq "`" (group (* (not "'"))) "'"))
|
||||
(rx "\\`" (group (* (not "'"))) "'")
|
||||
"\\1"
|
||||
docstring)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue