aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-03-22 15:38:05 +0800
committerChong Yidong2012-03-22 15:38:05 +0800
commit64fee3118aed82c404193c6ef23aad65bc5994a9 (patch)
tree4cfa9cfac4abdca216f83f26cb0e7b5871bd505a
parent9f851fbd286f08f82e7648460134b52fa8172403 (diff)
downloademacs-64fee3118aed82c404193c6ef23aad65bc5994a9.tar.gz
emacs-64fee3118aed82c404193c6ef23aad65bc5994a9.zip
Fix corner case in end-of-visible-line.
* lisp/simple.el (end-of-visible-line): Handle return value of next-single-property-change properly. Fixes: debbugs:9371
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/simple.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8601fb78b75..f844f3f8f32 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-03-22 Chong Yidong <cyd@gnu.org>
2
3 * simple.el (end-of-visible-line): Handle return value of
4 next-single-property-change properly (Bug#9371).
5
12012-03-22 Kenichi Handa <handa@m17n.org> 62012-03-22 Kenichi Handa <handa@m17n.org>
2 7
3 * international/quail.el (quail-insert-kbd-layout): Fix previous 8 * international/quail.el (quail-insert-kbd-layout): Fix previous
diff --git a/lisp/simple.el b/lisp/simple.el
index 936037f5caa..8b04534455d 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3688,7 +3688,8 @@ If ARG is zero, move to the beginning of the current line."
3688 (assq prop buffer-invisibility-spec)))))) 3688 (assq prop buffer-invisibility-spec))))))
3689 (skip-chars-forward "^\n") 3689 (skip-chars-forward "^\n")
3690 (if (get-text-property (point) 'invisible) 3690 (if (get-text-property (point) 'invisible)
3691 (goto-char (next-single-property-change (point) 'invisible)) 3691 (goto-char (or (next-single-property-change (point) 'invisible)
3692 (point-max)))
3692 (goto-char (next-overlay-change (point)))) 3693 (goto-char (next-overlay-change (point))))
3693 (end-of-line))) 3694 (end-of-line)))
3694 3695