diff options
| author | Brian Fox | 1993-10-25 05:09:20 +0000 |
|---|---|---|
| committer | Brian Fox | 1993-10-25 05:09:20 +0000 |
| commit | 16fdc568c3c1511d682b849255b374acbae2541c (patch) | |
| tree | 4056705b4e092841f47faa145968e0f47f747707 /src | |
| parent | 32085e8e568c0aab59e5f7dec4f61315fa4a2964 (diff) | |
| download | emacs-16fdc568c3c1511d682b849255b374acbae2541c.tar.gz emacs-16fdc568c3c1511d682b849255b374acbae2541c.zip | |
(Freplace_match): Fix argument names to match doc string.
(Fmatch_beginning): Fix doc string to match argument name.
Diffstat (limited to 'src')
| -rw-r--r-- | src/search.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/search.c b/src/search.c index 9211169dbe0..8a821837528 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -1162,8 +1162,8 @@ Otherwise treat `\\' as special:\n\ | |||
| 1162 | `\\\\' means insert one `\\'.\n\ | 1162 | `\\\\' means insert one `\\'.\n\ |
| 1163 | FIXEDCASE and LITERAL are optional arguments.\n\ | 1163 | FIXEDCASE and LITERAL are optional arguments.\n\ |
| 1164 | Leaves point at end of replacement text.") | 1164 | Leaves point at end of replacement text.") |
| 1165 | (string, fixedcase, literal) | 1165 | (newtext, fixedcase, literal) |
| 1166 | Lisp_Object string, fixedcase, literal; | 1166 | Lisp_Object newtext, fixedcase, literal; |
| 1167 | { | 1167 | { |
| 1168 | enum { nochange, all_caps, cap_initial } case_action; | 1168 | enum { nochange, all_caps, cap_initial } case_action; |
| 1169 | register int pos, last; | 1169 | register int pos, last; |
| @@ -1173,7 +1173,7 @@ Leaves point at end of replacement text.") | |||
| 1173 | register int c, prevc; | 1173 | register int c, prevc; |
| 1174 | int inslen; | 1174 | int inslen; |
| 1175 | 1175 | ||
| 1176 | CHECK_STRING (string, 0); | 1176 | CHECK_STRING (newtext, 0); |
| 1177 | 1177 | ||
| 1178 | case_action = nochange; /* We tried an initialization */ | 1178 | case_action = nochange; /* We tried an initialization */ |
| 1179 | /* but some C compilers blew it */ | 1179 | /* but some C compilers blew it */ |
| @@ -1242,20 +1242,20 @@ Leaves point at end of replacement text.") | |||
| 1242 | position in the replacement. */ | 1242 | position in the replacement. */ |
| 1243 | SET_PT (search_regs.start[0]); | 1243 | SET_PT (search_regs.start[0]); |
| 1244 | if (!NILP (literal)) | 1244 | if (!NILP (literal)) |
| 1245 | Finsert_and_inherit (1, &string); | 1245 | Finsert_and_inherit (1, &newtext); |
| 1246 | else | 1246 | else |
| 1247 | { | 1247 | { |
| 1248 | struct gcpro gcpro1; | 1248 | struct gcpro gcpro1; |
| 1249 | GCPRO1 (string); | 1249 | GCPRO1 (newtext); |
| 1250 | 1250 | ||
| 1251 | for (pos = 0; pos < XSTRING (string)->size; pos++) | 1251 | for (pos = 0; pos < XSTRING (newtext)->size; pos++) |
| 1252 | { | 1252 | { |
| 1253 | int offset = point - search_regs.start[0]; | 1253 | int offset = point - search_regs.start[0]; |
| 1254 | 1254 | ||
| 1255 | c = XSTRING (string)->data[pos]; | 1255 | c = XSTRING (newtext)->data[pos]; |
| 1256 | if (c == '\\') | 1256 | if (c == '\\') |
| 1257 | { | 1257 | { |
| 1258 | c = XSTRING (string)->data[++pos]; | 1258 | c = XSTRING (newtext)->data[++pos]; |
| 1259 | if (c == '&') | 1259 | if (c == '&') |
| 1260 | Finsert_buffer_substring | 1260 | Finsert_buffer_substring |
| 1261 | (Fcurrent_buffer (), | 1261 | (Fcurrent_buffer (), |
| @@ -1308,8 +1308,8 @@ match_limit (num, beginningp) | |||
| 1308 | 1308 | ||
| 1309 | DEFUN ("match-beginning", Fmatch_beginning, Smatch_beginning, 1, 1, 0, | 1309 | DEFUN ("match-beginning", Fmatch_beginning, Smatch_beginning, 1, 1, 0, |
| 1310 | "Return position of start of text matched by last search.\n\ | 1310 | "Return position of start of text matched by last search.\n\ |
| 1311 | ARG, a number, specifies which parenthesized expression in the last regexp.\n\ | 1311 | NUM specifies which parenthesized expression in the last regexp.\n\ |
| 1312 | Value is nil if ARGth pair didn't match, or there were less than ARG pairs.\n\ | 1312 | Value is nil if NUMth pair didn't match, or there were less than NUM pairs.\n\ |
| 1313 | Zero means the entire text matched by the whole regexp or whole string.") | 1313 | Zero means the entire text matched by the whole regexp or whole string.") |
| 1314 | (num) | 1314 | (num) |
| 1315 | Lisp_Object num; | 1315 | Lisp_Object num; |