aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2006-05-23 00:49:55 +0000
committerChong Yidong2006-05-23 00:49:55 +0000
commit594a1605cd54c3d65dd373b6b4118765398b2aed (patch)
treeabc77350a14f88e7e5edd7af41a6d3cbad933c04
parent8e6ea7a32117a8948dfd0f3acd0bd2beaa806728 (diff)
downloademacs-594a1605cd54c3d65dd373b6b4118765398b2aed.tar.gz
emacs-594a1605cd54c3d65dd373b6b4118765398b2aed.zip
Update comments.
-rw-r--r--lisp/simple.el12
-rw-r--r--src/intervals.c4
2 files changed, 12 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index cee04f4a961..2209603d91c 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3645,10 +3645,14 @@ Outline mode sets this."
3645 (setq new (point)) 3645 (setq new (point))
3646 3646
3647 ;; Process intangibility within a line. 3647 ;; Process intangibility within a line.
3648 ;; Move to the chosen destination position from above, 3648 ;; With inhibit-point-motion-hooks bound to nil, a call to
3649 ;; with intangibility processing enabled. 3649 ;; goto-char moves point past intangible text.
3650 3650
3651 ;; Avoid calling point-entered and point-left. 3651 ;; However, inhibit-point-motion-hooks controls both the
3652 ;; intangibility and the point-entered/point-left hooks. The
3653 ;; following hack avoids calling the point-* hooks
3654 ;; unnecessarily. Note that we move *forward* past intangible
3655 ;; text when the initial and final points are the same.
3652 (goto-char new) 3656 (goto-char new)
3653 (let ((inhibit-point-motion-hooks nil)) 3657 (let ((inhibit-point-motion-hooks nil))
3654 (goto-char new) 3658 (goto-char new)
diff --git a/src/intervals.c b/src/intervals.c
index e69ff701387..20c4c191a93 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -2016,6 +2016,10 @@ set_point_both (buffer, charpos, bytepos)
2016 register INTERVAL to, from, toprev, fromprev; 2016 register INTERVAL to, from, toprev, fromprev;
2017 int buffer_point; 2017 int buffer_point;
2018 int old_position = BUF_PT (buffer); 2018 int old_position = BUF_PT (buffer);
2019 /* This ensures that we move forward past intangible text when the
2020 initial position is the same as the destination, in the rare
2021 instances where this is important, e.g. in line-move-finish
2022 (simple.el). */
2019 int backwards = (charpos < old_position ? 1 : 0); 2023 int backwards = (charpos < old_position ? 1 : 0);
2020 int have_overlays; 2024 int have_overlays;
2021 int original_position; 2025 int original_position;