]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix docstring quotes.
authorNoam Postavsky <npostavs@gmail.com>
Sun, 24 Jun 2018 14:57:12 +0000 (10:57 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 24 Jun 2018 14:57:54 +0000 (10:57 -0400)
lisp/emacs-lisp/regexp-opt.el

index 3e05b6cb8c9f05ed139188e6aa3def07429ba4fa..8de4959c10ae9ba6e09552f615e81ec87a175987 100644 (file)
@@ -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.