aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2021-11-22 16:11:45 +0100
committerStefan Kangas2021-11-22 16:14:01 +0100
commita59e35d79fae989d1047b23ddabc6f2c5bbe0097 (patch)
tree498aa2507732eb4d45bb583192e8912efb31d185
parenta5fbc21bc6c695623f8ae8c2df635e9d6220c483 (diff)
downloademacs-a59e35d79fae989d1047b23ddabc6f2c5bbe0097.tar.gz
emacs-a59e35d79fae989d1047b23ddabc6f2c5bbe0097.zip
; 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>.
-rw-r--r--lisp/emacs-lisp/bytecomp.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 5dc03eac92b..566a3fdf99c 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1672,12 +1672,12 @@ URLs."
1672 ;; known at compile time. So instead, we assume that these 1672 ;; known at compile time. So instead, we assume that these
1673 ;; substitutions are of some length N. 1673 ;; substitutions are of some length N.
1674 (replace-regexp-in-string 1674 (replace-regexp-in-string
1675 (rx "\\" (seq "[" (* (not "]")) "]")) 1675 (rx "\\[" (* (not "]")) "]")
1676 (make-string byte-compile--wide-docstring-substitution-len ?x) 1676 (make-string byte-compile--wide-docstring-substitution-len ?x)
1677 ;; For literal key sequence substitutions (e.g. "\\`C-h'"), just 1677 ;; For literal key sequence substitutions (e.g. "\\`C-h'"), just
1678 ;; remove the markup as `substitute-command-keys' would. 1678 ;; remove the markup as `substitute-command-keys' would.
1679 (replace-regexp-in-string 1679 (replace-regexp-in-string
1680 (rx "\\" (seq "`" (group (* (not "'"))) "'")) 1680 (rx "\\`" (group (* (not "'"))) "'")
1681 "\\1" 1681 "\\1"
1682 docstring))))) 1682 docstring)))))
1683 1683