aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorGerd Moellmann1999-10-17 12:56:25 +0000
committerGerd Moellmann1999-10-17 12:56:25 +0000
commitb8855607a01da68a6974416add4cbf02784229df (patch)
tree46a2088a36de768b4e65542db084de787e7a99aa /src/syntax.c
parent8e9968c63408b664135eed30c734794df2cf5ecf (diff)
downloademacs-b8855607a01da68a6974416add4cbf02784229df.tar.gz
emacs-b8855607a01da68a6974416add4cbf02784229df.zip
(Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
to Fconstrain_to_field. (Fforward_word): Likewise. Constrain to any field.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 7272cf38fd9..e321ffb0fe1 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1,5 +1,5 @@
1/* GNU Emacs routines to deal with syntax tables; also word and list parsing. 1/* GNU Emacs routines to deal with syntax tables; also word and list parsing.
2 Copyright (C) 1985, 87, 93, 94, 95, 97, 1998 Free Software Foundation, Inc. 2 Copyright (C) 1985, 87, 93, 94, 95, 97, 1998, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -1236,15 +1236,10 @@ and nil is returned.")
1236 return Qnil; 1236 return Qnil;
1237 } 1237 }
1238 1238
1239 /* If in a mini-buffer and moving backwards, stop at the end of the 1239 /* Avoid jumping out of an input field. */
1240 prompt. This prevents accidentially moving into the read-only 1240 val = XFASTINT (Fconstrain_to_field (make_number (val), make_number (PT),
1241 prompt. */ 1241 Qt, Qnil));
1242 if (INTEGERP (current_buffer->prompt_end_charpos) 1242
1243 && (prompt_end = XINT (current_buffer->prompt_end_charpos),
1244 ((PT > prompt_end && val < prompt_end)
1245 || (PT < prompt_end && val > prompt_end))))
1246 val = prompt_end;
1247
1248 SET_PT (val); 1243 SET_PT (val);
1249 return Qt; 1244 return Qt;
1250} 1245}