aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorGerd Moellmann2000-01-01 17:06:50 +0000
committerGerd Moellmann2000-01-01 17:06:50 +0000
commite6d8341fe6e4b3f751033d1060e534a4d9004467 (patch)
tree4f63091175cf9a0471e8d0800fd319dba9df715f /src/syntax.c
parent8ca534c482571fb5535c0ba72dbf2cf6fe294d3e (diff)
downloademacs-e6d8341fe6e4b3f751033d1060e534a4d9004467.tar.gz
emacs-e6d8341fe6e4b3f751033d1060e534a4d9004467.zip
(Fforward_word): Notice field boundaries only if
inhibit-field-text-motion is nil.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/syntax.c b/src/syntax.c
index d08c29bab53..1db16c589f7 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1222,7 +1222,8 @@ DEFUN ("forward-word", Fforward_word, Sforward_word, 1, 1, "p",
1222 "Move point forward ARG words (backward if ARG is negative).\n\ 1222 "Move point forward ARG words (backward if ARG is negative).\n\
1223Normally returns t.\n\ 1223Normally returns t.\n\
1224If an edge of the buffer or a field boundary is reached, point is left there\n\ 1224If an edge of the buffer or a field boundary is reached, point is left there\n\
1225and the function returns nil.") 1225and the function returns nil. Field boundaries are not noticed if\n\
1226`inhibit-field-text-motion' is non-nil.")
1226 (count) 1227 (count)
1227 Lisp_Object count; 1228 Lisp_Object count;
1228{ 1229{
@@ -1234,11 +1235,12 @@ and the function returns nil.")
1234 val = XINT (count) > 0 ? ZV : BEGV; 1235 val = XINT (count) > 0 ? ZV : BEGV;
1235 1236
1236 /* Avoid jumping out of an input field. */ 1237 /* Avoid jumping out of an input field. */
1237 val = XFASTINT (Fconstrain_to_field (make_number (val), make_number (PT), 1238 if (NILP (Vinhibit_field_text_motion))
1238 Qt, Qnil)); 1239 val = XFASTINT (Fconstrain_to_field (make_number (val), make_number (PT),
1240 Qt, Qnil));
1239 1241
1240 SET_PT (val); 1242 SET_PT (val);
1241 return (val == orig_val ? Qt : Qnil); 1243 return val == orig_val ? Qt : Qnil;
1242} 1244}
1243 1245
1244Lisp_Object skip_chars (); 1246Lisp_Object skip_chars ();