aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emacs-lisp/regexp-opt.el
diff options
context:
space:
mode:
authorJuanma Barranquero <[email protected]>2010-10-19 13:44:07 +0200
committerJuanma Barranquero <[email protected]>2010-10-19 13:44:07 +0200
commitca3fa30248b923c17c021c0fcdb945271d14e8c2 (patch)
tree8283b1da72c771a21410f5fe621d3a299fe66b53 /lisp/emacs-lisp/regexp-opt.el
parent3224b54d5cc5964af5e6509579fd942eae04f1d1 (diff)
parentbca0f839a56a1edd8562ada5962b809323f39efc (diff)
Merge changes from emacs-23 branch.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
-rw-r--r--lisp/emacs-lisp/regexp-opt.el13
1 files changed, 5 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el
index 6389b62ea0..116d7b93d9 100644
--- a/lisp/emacs-lisp/regexp-opt.el
+++ b/lisp/emacs-lisp/regexp-opt.el
@@ -141,11 +141,10 @@ This means the number of non-shy regexp grouping constructs
(require 'cl))
(defun regexp-opt-group (strings &optional paren lax)
- ;; Return a regexp to match a string in the sorted list STRINGS.
- ;; If PAREN non-nil, output regexp parentheses around returned regexp.
- ;; If LAX non-nil, don't output parentheses if it doesn't require them.
- ;; Merges keywords to avoid backtracking in Emacs' regexp matcher.
-
+ "Return a regexp to match a string in the sorted list STRINGS.
+If PAREN non-nil, output regexp parentheses around returned regexp.
+If LAX non-nil, don't output parentheses if it doesn't require them.
+Merges keywords to avoid backtracking in Emacs' regexp matcher."
;; The basic idea is to find the shortest common prefix or suffix, remove it
;; and recurse. If there is no prefix, we divide the list into two so that
;; \(at least) one half will have at least a one-character common prefix.
@@ -239,9 +238,7 @@ This means the number of non-shy regexp grouping constructs
(defun regexp-opt-charset (chars)
- ;;
- ;; Return a regexp to match a character in CHARS.
- ;;
+ "Return a regexp to match a character in CHARS."
;; The basic idea is to find character ranges. Also we take care in the
;; position of character set meta characters in the character set regexp.
;;