]> git.eshelyaron.com Git - emacs.git/commitdiff
Backport: Fix typo in regexp-opt example code
authorMattias EngdegÄrd <mattiase@acm.org>
Sun, 31 Mar 2019 13:53:52 +0000 (15:53 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Sun, 16 Jun 2019 09:48:38 +0000 (11:48 +0200)
* doc/lispref/searching.texi (Regexp Functions):
Fix typo in example code (Bug#34596).

doc/lispref/searching.texi

index 2e951d0d5d77d12daaaee84d8a23bc5ddc0f9d78..b182fae5955a5957c1f072b507b560c06c40cd81 100644 (file)
@@ -1013,9 +1013,9 @@ more efficient than that of a simplified version:
          ((eq paren 'symbols) '("\\_<\\(" . "\\)\\_>"))
          ((null paren)          '("\\(?:" . "\\)"))
          (t                       '("\\(" . "\\)")))))
-   (concat (car paren)
+   (concat (car parens)
            (mapconcat 'regexp-quote strings "\\|")
-           (cdr paren))))
+           (cdr parens))))
 @end example
 @end defun