aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2010-10-17 14:59:58 -0400
committerStefan Monnier2010-10-17 14:59:58 -0400
commita7769c306046af407eade15b3fc85797b5aefd43 (patch)
tree2a37a2a5259279632d08259b6ec642783825de10
parent8348910a636f3a40ca2bb1a6231d5aa5f0a1a8e7 (diff)
downloademacs-a7769c306046af407eade15b3fc85797b5aefd43.tar.gz
emacs-a7769c306046af407eade15b3fc85797b5aefd43.zip
(regexp-opt-group, regexp-opt-charset): Turn comments into docstrings
-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 78eba19a253..f70ad4047a7 100644
--- a/lisp/emacs-lisp/regexp-opt.el
+++ b/lisp/emacs-lisp/regexp-opt.el
@@ -136,11 +136,10 @@ This means the number of non-shy regexp grouping constructs
136 (require 'cl)) 136 (require 'cl))
137 137
138(defun regexp-opt-group (strings &optional paren lax) 138(defun regexp-opt-group (strings &optional paren lax)
139 ;; Return a regexp to match a string in the sorted list STRINGS. 139 "Return a regexp to match a string in the sorted list STRINGS.
140 ;; If PAREN non-nil, output regexp parentheses around returned regexp. 140If PAREN non-nil, output regexp parentheses around returned regexp.
141 ;; If LAX non-nil, don't output parentheses if it doesn't require them. 141If LAX non-nil, don't output parentheses if it doesn't require them.
142 ;; Merges keywords to avoid backtracking in Emacs' regexp matcher. 142Merges keywords to avoid backtracking in Emacs' regexp matcher."
143
144 ;; The basic idea is to find the shortest common prefix or suffix, remove it 143 ;; The basic idea is to find the shortest common prefix or suffix, remove it
145 ;; and recurse. If there is no prefix, we divide the list into two so that 144 ;; and recurse. If there is no prefix, we divide the list into two so that
146 ;; \(at least) one half will have at least a one-character common prefix. 145 ;; \(at least) one half will have at least a one-character common prefix.
@@ -234,9 +233,7 @@ This means the number of non-shy regexp grouping constructs
234 233
235 234
236(defun regexp-opt-charset (chars) 235(defun regexp-opt-charset (chars)
237 ;; 236 "Return a regexp to match a character in CHARS."
238 ;; Return a regexp to match a character in CHARS.
239 ;;
240 ;; The basic idea is to find character ranges. Also we take care in the 237 ;; The basic idea is to find character ranges. Also we take care in the
241 ;; position of character set meta characters in the character set regexp. 238 ;; position of character set meta characters in the character set regexp.
242 ;; 239 ;;