emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 bea31a3: Backport: Fix typo in regexp-opt example


From: Juanma Barranquero
Subject: [Emacs-diffs] emacs-26 bea31a3: Backport: Fix typo in regexp-opt example code
Date: Sun, 16 Jun 2019 05:49:20 -0400 (EDT)

branch: emacs-26
commit bea31a379407891929ca941b1b015a91a26ad0f6
Author: Mattias EngdegÄrd <address@hidden>
Commit: Juanma Barranquero <address@hidden>

    Backport: Fix typo in regexp-opt example code
    
    * doc/lispref/searching.texi (Regexp Functions):
    Fix typo in example code (Bug#34596).
---
 doc/lispref/searching.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi
index 2e951d0..b182fae 100644
--- a/doc/lispref/searching.texi
+++ b/doc/lispref/searching.texi
@@ -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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]