emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/editfns.c


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/src/editfns.c
Date: Tue, 07 Feb 2006 09:08:53 +0000

Index: emacs/src/editfns.c
diff -u emacs/src/editfns.c:1.408 emacs/src/editfns.c:1.409
--- emacs/src/editfns.c:1.408   Mon Feb  6 15:23:20 2006
+++ emacs/src/editfns.c Tue Feb  7 09:08:53 2006
@@ -739,24 +739,24 @@
   
   if (NILP (Vinhibit_field_text_motion)
       && !EQ (new_pos, old_pos)
-      && (!NILP (Fget_text_property (new_pos, Qfield, Qnil))
-          || !NILP (Fget_text_property (old_pos, Qfield, Qnil))
+      && (!NILP (Fget_char_property (new_pos, Qfield, Qnil))
+          || !NILP (Fget_char_property (old_pos, Qfield, Qnil))
           /* To recognize field boundaries, we must also look at the
              previous positions; we could use `get_pos_property'
              instead, but in itself that would fail inside non-sticky
              fields (like comint prompts).  */
           || (XFASTINT (new_pos) > BEGV
-              && !NILP (Fget_text_property (prev_new, Qfield, Qnil)))
+              && !NILP (Fget_char_property (prev_new, Qfield, Qnil)))
           || (XFASTINT (old_pos) > BEGV
-              && !NILP (Fget_text_property (prev_old, Qfield, Qnil))))
+              && !NILP (Fget_char_property (prev_old, Qfield, Qnil))))
       && (NILP (inhibit_capture_property)
           /* Field boundaries are again a problem; but now we must
              decide the case exactly, so we need to call
              `get_pos_property' as well.  */
           || (NILP (get_pos_property (old_pos, inhibit_capture_property, Qnil))
               && (XFASTINT (old_pos) <= BEGV
-                  || NILP (Fget_text_property (old_pos, 
inhibit_capture_property, Qnil))
-                  || NILP (Fget_text_property (prev_old, 
inhibit_capture_property, Qnil))))))
+                  || NILP (Fget_char_property (old_pos, 
inhibit_capture_property, Qnil))
+                  || NILP (Fget_char_property (prev_old, 
inhibit_capture_property, Qnil))))))
     /* It is possible that NEW_POS is not within the same field as
        OLD_POS; try to move NEW_POS so that it is.  */
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]