* simple.el (line-move-finish): Ignore field boundaries if the
initial and final points have the same `field' property.
This commit is contained in:
parent
d471b4fe3a
commit
e94e78cc99
2 changed files with 14 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-09-29 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* simple.el (line-move-finish): Ignore field boundaries if the
|
||||
initial and final points have the same `field' property.
|
||||
|
||||
2006-09-29 Kim F. Storm <storm@cua.dk>
|
||||
|
||||
* ido.el (ido-file-internal): Only bind minibuffer-completing-file-name
|
||||
|
|
|
|||
|
|
@ -3735,8 +3735,15 @@ Outline mode sets this."
|
|||
(goto-char opoint)
|
||||
(let ((inhibit-point-motion-hooks nil))
|
||||
(goto-char
|
||||
(constrain-to-field new opoint t t
|
||||
'inhibit-line-move-field-capture)))
|
||||
;; Ignore field boundaries if the initial and final
|
||||
;; positions have the same `field' property, even if the
|
||||
;; fields are non-contiguous. This seems to be "nicer"
|
||||
;; behavior in many situations.
|
||||
(if (eq (get-char-property new 'field)
|
||||
(get-char-property opoint 'field))
|
||||
new
|
||||
(constrain-to-field new opoint t t
|
||||
'inhibit-line-move-field-capture))))
|
||||
|
||||
;; If all this moved us to a different line,
|
||||
;; retry everything within that new line.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue