Mercurial > emacs
comparison src/search.c @ 6297:b44907fd0ff0
(Fre_search_forward, Fre_search_backward): Doc fix.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 10 Mar 1994 22:55:04 +0000 |
parents | 390dfe557c7d |
children | 372613d5970b |
comparison
equal
deleted
inserted
replaced
6296:a1b438e4754b | 6297:b44907fd0ff0 |
---|---|
1116 DEFUN ("re-search-backward", Fre_search_backward, Sre_search_backward, 1, 4, | 1116 DEFUN ("re-search-backward", Fre_search_backward, Sre_search_backward, 1, 4, |
1117 "sRE search backward: ", | 1117 "sRE search backward: ", |
1118 "Search backward from point for match for regular expression REGEXP.\n\ | 1118 "Search backward from point for match for regular expression REGEXP.\n\ |
1119 Set point to the beginning of the match, and return point.\n\ | 1119 Set point to the beginning of the match, and return point.\n\ |
1120 The match found is the one starting last in the buffer\n\ | 1120 The match found is the one starting last in the buffer\n\ |
1121 and yet ending before the place the origin of the search.\n\ | 1121 and yet ending before the origin of the search.\n\ |
1122 An optional second argument bounds the search; it is a buffer position.\n\ | 1122 An optional second argument bounds the search; it is a buffer position.\n\ |
1123 The match found must start at or after that position.\n\ | 1123 The match found must start at or after that position.\n\ |
1124 Optional third argument, if t, means if fail just return nil (no error).\n\ | 1124 Optional third argument, if t, means if fail just return nil (no error).\n\ |
1125 If not nil and not t, move to limit of search and return nil.\n\ | 1125 If not nil and not t, move to limit of search and return nil.\n\ |
1126 Optional fourth argument is repeat count--search for successive occurrences.\n\ | 1126 Optional fourth argument is repeat count--search for successive occurrences.\n\ |
1127 See also the functions `match-beginning', `match-end' and `replace-match'.") | 1127 See also the functions `match-beginning', `match-end' and `replace-match'.") |
1128 (string, bound, noerror, count) | 1128 (regexp, bound, noerror, count) |
1129 Lisp_Object string, bound, noerror, count; | 1129 Lisp_Object regexp, bound, noerror, count; |
1130 { | 1130 { |
1131 return search_command (string, bound, noerror, count, -1, 1); | 1131 return search_command (regexp, bound, noerror, count, -1, 1); |
1132 } | 1132 } |
1133 | 1133 |
1134 DEFUN ("re-search-forward", Fre_search_forward, Sre_search_forward, 1, 4, | 1134 DEFUN ("re-search-forward", Fre_search_forward, Sre_search_forward, 1, 4, |
1135 "sRE search: ", | 1135 "sRE search: ", |
1136 "Search forward from point for regular expression REGEXP.\n\ | 1136 "Search forward from point for regular expression REGEXP.\n\ |
1139 The match found must not extend after that position.\n\ | 1139 The match found must not extend after that position.\n\ |
1140 Optional third argument, if t, means if fail just return nil (no error).\n\ | 1140 Optional third argument, if t, means if fail just return nil (no error).\n\ |
1141 If not nil and not t, move to limit of search and return nil.\n\ | 1141 If not nil and not t, move to limit of search and return nil.\n\ |
1142 Optional fourth argument is repeat count--search for successive occurrences.\n\ | 1142 Optional fourth argument is repeat count--search for successive occurrences.\n\ |
1143 See also the functions `match-beginning', `match-end' and `replace-match'.") | 1143 See also the functions `match-beginning', `match-end' and `replace-match'.") |
1144 (string, bound, noerror, count) | 1144 (regexp, bound, noerror, count) |
1145 Lisp_Object string, bound, noerror, count; | 1145 Lisp_Object regexp, bound, noerror, count; |
1146 { | 1146 { |
1147 return search_command (string, bound, noerror, count, 1, 1); | 1147 return search_command (regexp, bound, noerror, count, 1, 1); |
1148 } | 1148 } |
1149 | 1149 |
1150 DEFUN ("replace-match", Freplace_match, Sreplace_match, 1, 3, 0, | 1150 DEFUN ("replace-match", Freplace_match, Sreplace_match, 1, 3, 0, |
1151 "Replace text matched by last search with NEWTEXT.\n\ | 1151 "Replace text matched by last search with NEWTEXT.\n\ |
1152 If second arg FIXEDCASE is non-nil, do not alter case of replacement text.\n\ | 1152 If second arg FIXEDCASE is non-nil, do not alter case of replacement text.\n\ |