aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2006-09-29 18:18:42 +0000
committerChong Yidong2006-09-29 18:18:42 +0000
commite94e78cc99454212acbfe3016cf1b7605c074d60 (patch)
tree7e64bf7ece1624154d93218a2803bcb9b782dbad
parentd471b4fe3a15be8662322034229dd7bb3fd2233b (diff)
downloademacs-e94e78cc99454212acbfe3016cf1b7605c074d60.tar.gz
emacs-e94e78cc99454212acbfe3016cf1b7605c074d60.zip
* simple.el (line-move-finish): Ignore field boundaries if the
initial and final points have the same `field' property.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/simple.el11
2 files changed, 14 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0fd306e10f5..d1db638e588 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-09-29 Chong Yidong <cyd@stupidchicken.com>
2
3 * simple.el (line-move-finish): Ignore field boundaries if the
4 initial and final points have the same `field' property.
5
12006-09-29 Kim F. Storm <storm@cua.dk> 62006-09-29 Kim F. Storm <storm@cua.dk>
2 7
3 * ido.el (ido-file-internal): Only bind minibuffer-completing-file-name 8 * ido.el (ido-file-internal): Only bind minibuffer-completing-file-name
diff --git a/lisp/simple.el b/lisp/simple.el
index 16670d4f70b..53c9c680cc9 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3735,8 +3735,15 @@ Outline mode sets this."
3735 (goto-char opoint) 3735 (goto-char opoint)
3736 (let ((inhibit-point-motion-hooks nil)) 3736 (let ((inhibit-point-motion-hooks nil))
3737 (goto-char 3737 (goto-char
3738 (constrain-to-field new opoint t t 3738 ;; Ignore field boundaries if the initial and final
3739 'inhibit-line-move-field-capture))) 3739 ;; positions have the same `field' property, even if the
3740 ;; fields are non-contiguous. This seems to be "nicer"
3741 ;; behavior in many situations.
3742 (if (eq (get-char-property new 'field)
3743 (get-char-property opoint 'field))
3744 new
3745 (constrain-to-field new opoint t t
3746 'inhibit-line-move-field-capture))))
3740 3747
3741 ;; If all this moved us to a different line, 3748 ;; If all this moved us to a different line,
3742 ;; retry everything within that new line. 3749 ;; retry everything within that new line.