aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/regexp-opt.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9b18c3e3b07..9f20d191528 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * emacs-lisp/regexp-opt.el (regexp-opt): Always return
4 a properly-grouped regexp.
5
12008-05-23 Juanma Barranquero <lekktu@gmail.com> 62008-05-23 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * progmodes/cap-words.el (capitalized-words-mode): 8 * progmodes/cap-words.el (capitalized-words-mode):
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el
index 70f7141210d..309c8e7bb89 100644
--- a/lisp/emacs-lisp/regexp-opt.el
+++ b/lisp/emacs-lisp/regexp-opt.el
@@ -107,7 +107,7 @@ by \\=\\< and \\>."
107 (open (cond ((stringp paren) paren) (paren "\\("))) 107 (open (cond ((stringp paren) paren) (paren "\\(")))
108 (sorted-strings (delete-dups 108 (sorted-strings (delete-dups
109 (sort (copy-sequence strings) 'string-lessp))) 109 (sort (copy-sequence strings) 'string-lessp)))
110 (re (regexp-opt-group sorted-strings open))) 110 (re (regexp-opt-group sorted-strings (or open t) (not open))))
111 (if words (concat "\\<" re "\\>") re)))) 111 (if words (concat "\\<" re "\\>") re))))
112 112
113;;;###autoload 113;;;###autoload