aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorMiles Bader2004-12-14 07:34:55 +0000
committerMiles Bader2004-12-14 07:34:55 +0000
commitdce59e79ab8a6ecc869ceda44d579b8b1e8e10d5 (patch)
treec3da6c32ac0401833eb29b6a4be9cf93febf248e /src/syntax.c
parent56cc8ca9b68886dc4aae4c8ef44ad5e62b59db49 (diff)
parent734c576596678065b39591128d88609bc6fc5aad (diff)
downloademacs-dce59e79ab8a6ecc869ceda44d579b8b1e8e10d5.tar.gz
emacs-dce59e79ab8a6ecc869ceda44d579b8b1e8e10d5.zip
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-78
Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-719 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-732 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-733 Update from CVS: man/calc.texi: Fix some TeX definitions. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-734 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-75 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-76 - miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-77 Update from CVS
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c
index b062264ac24..3f35027bb36 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1320,6 +1320,7 @@ and the function returns nil. Field boundaries are not noticed if
1320 (arg) 1320 (arg)
1321 Lisp_Object arg; 1321 Lisp_Object arg;
1322{ 1322{
1323 Lisp_Object tmp;
1323 int orig_val, val; 1324 int orig_val, val;
1324 1325
1325 if (NILP (arg)) 1326 if (NILP (arg))
@@ -1332,8 +1333,9 @@ and the function returns nil. Field boundaries are not noticed if
1332 val = XINT (arg) > 0 ? ZV : BEGV; 1333 val = XINT (arg) > 0 ? ZV : BEGV;
1333 1334
1334 /* Avoid jumping out of an input field. */ 1335 /* Avoid jumping out of an input field. */
1335 val = XFASTINT (Fconstrain_to_field (make_number (val), make_number (PT), 1336 tmp = Fconstrain_to_field (make_number (val), make_number (PT),
1336 Qt, Qnil, Qnil)); 1337 Qt, Qnil, Qnil);
1338 val = XFASTINT (tmp);
1337 1339
1338 SET_PT (val); 1340 SET_PT (val);
1339 return val == orig_val ? Qt : Qnil; 1341 return val == orig_val ? Qt : Qnil;