mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 20:00:46 -08:00
(Fconstrain_to_field): Check carefully for field boundaries if either
OLD_POS or NEW_POS has a non-nil field property, even if they're the same.
This commit is contained in:
parent
bd9e92878b
commit
f657bbf68b
2 changed files with 8 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2000-10-16 Miles Bader <miles@lsi.nec.co.jp>
|
||||
|
||||
* editfns.c (Fconstrain_to_field): Check carefully for field
|
||||
boundaries if either OLD_POS or NEW_POS has a non-nil field
|
||||
property, even if they're the same.
|
||||
|
||||
2000-10-16 Kenichi Handa <handa@etl.go.jp>
|
||||
|
||||
* xterm.c (x_draw_box_rect): Fix the calculation of width and
|
||||
|
|
|
|||
|
|
@ -612,7 +612,8 @@ Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil.")
|
|||
|
||||
if (NILP (Vinhibit_field_text_motion)
|
||||
&& !EQ (new_pos, old_pos)
|
||||
&& !char_property_eq (Qfield, new_pos, old_pos)
|
||||
&& (!NILP (Fget_char_property (new_pos, Qfield, Qnil))
|
||||
|| !NILP (Fget_char_property (old_pos, Qfield, Qnil)))
|
||||
&& (NILP (inhibit_capture_property)
|
||||
|| NILP (Fget_char_property(old_pos, inhibit_capture_property, Qnil))))
|
||||
/* NEW_POS is not within the same field as OLD_POS; try to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue