`\\\\' means insert one `\\'.\n\
FIXEDCASE and LITERAL are optional arguments.\n\
Leaves point at end of replacement text.")
- (string, fixedcase, literal)
- Lisp_Object string, fixedcase, literal;
+ (newtext, fixedcase, literal)
+ Lisp_Object newtext, fixedcase, literal;
{
enum { nochange, all_caps, cap_initial } case_action;
register int pos, last;
register int c, prevc;
int inslen;
- CHECK_STRING (string, 0);
+ CHECK_STRING (newtext, 0);
case_action = nochange; /* We tried an initialization */
/* but some C compilers blew it */
position in the replacement. */
SET_PT (search_regs.start[0]);
if (!NILP (literal))
- Finsert_and_inherit (1, &string);
+ Finsert_and_inherit (1, &newtext);
else
{
struct gcpro gcpro1;
- GCPRO1 (string);
+ GCPRO1 (newtext);
- for (pos = 0; pos < XSTRING (string)->size; pos++)
+ for (pos = 0; pos < XSTRING (newtext)->size; pos++)
{
int offset = point - search_regs.start[0];
- c = XSTRING (string)->data[pos];
+ c = XSTRING (newtext)->data[pos];
if (c == '\\')
{
- c = XSTRING (string)->data[++pos];
+ c = XSTRING (newtext)->data[++pos];
if (c == '&')
Finsert_buffer_substring
(Fcurrent_buffer (),
DEFUN ("match-beginning", Fmatch_beginning, Smatch_beginning, 1, 1, 0,
"Return position of start of text matched by last search.\n\
-ARG, a number, specifies which parenthesized expression in the last regexp.\n\
- Value is nil if ARGth pair didn't match, or there were less than ARG pairs.\n\
+NUM specifies which parenthesized expression in the last regexp.\n\
+ Value is nil if NUMth pair didn't match, or there were less than NUM pairs.\n\
Zero means the entire text matched by the whole regexp or whole string.")
(num)
Lisp_Object num;