* lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix docstring quotes.
This commit is contained in:
parent
0b69807015
commit
7488de4f27
1 changed files with 5 additions and 5 deletions
|
@ -117,12 +117,12 @@ than that of a simplified version:
|
|||
(defun simplified-regexp-opt (strings &optional paren)
|
||||
(let ((parens
|
||||
(cond ((stringp paren) (cons paren \"\\\\)\"))
|
||||
((eq paren 'words) '(\"\\\\\\=<\\\\(\" . \"\\\\)\\\\>\"))
|
||||
((eq paren 'symbols) '(\"\\\\_<\\\\(\" . \"\\\\)\\\\_>\"))
|
||||
((null paren) '(\"\\\\(?:\" . \"\\\\)\"))
|
||||
(t '(\"\\\\(\" . \"\\\\)\")))))
|
||||
((eq paren \\='words) \\='(\"\\\\\\=<\\\\(\" . \"\\\\)\\\\>\"))
|
||||
((eq paren \\='symbols) \\='(\"\\\\_<\\\\(\" . \"\\\\)\\\\_>\"))
|
||||
((null paren) \\='(\"\\\\(?:\" . \"\\\\)\"))
|
||||
(t \\='(\"\\\\(\" . \"\\\\)\")))))
|
||||
(concat (car paren)
|
||||
(mapconcat 'regexp-quote strings \"\\\\|\")
|
||||
(mapconcat \\='regexp-quote strings \"\\\\|\")
|
||||
(cdr paren))))"
|
||||
(save-match-data
|
||||
;; Recurse on the sorted list.
|
||||
|
|
Loading…
Add table
Reference in a new issue