Commit e4305426 authored by David Kastrup's avatar David Kastrup

(Fcall_interactively): Make the parsing of interactive

specs somewhat more readable.
parent 986c5ad5
2007-06-25 David Kastrup <dak@gnu.org>
* callint.c (Fcall_interactively): Make the parsing of interactive
specs somewhat more readable.
2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
......
......@@ -473,16 +473,19 @@ invoke it. If KEYS is omitted or nil, the return value of
/* Count the number of arguments the interactive spec would have
us give to the function. */
tem = string;
for (j = 0; *tem; j++)
for (j = 0; *tem;)
{
/* 'r' specifications ("point and mark as 2 numeric args")
produce *two* arguments. */
if (*tem == 'r') j++;
if (*tem == 'r')
j += 2;
else
j++;
tem = (unsigned char *) index (tem, '\n');
if (tem)
tem++;
++tem;
else
tem = (unsigned char *) "";
break;
}
count = j;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment