Mercurial > emacs
changeset 32517:78c3fdea490c
(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.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 16 Oct 2000 07:27:10 +0000 |
parents | f89fc1421b53 |
children | c8517fffd6fb |
files | src/editfns.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/editfns.c Mon Oct 16 07:19:11 2000 +0000 +++ b/src/editfns.c Mon Oct 16 07:27:10 2000 +0000 @@ -612,7 +612,8 @@ 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