aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLute Kamstra2003-05-16 09:28:39 +0000
committerLute Kamstra2003-05-16 09:28:39 +0000
commit733b241e48a8f87dd3d552e8ec890d43e9a3dd73 (patch)
tree313dd766071be9cdeea8166a1cada492d3aa65c1
parentbe9650bc625dc07dc337748b6d9381fc1542cd08 (diff)
downloademacs-733b241e48a8f87dd3d552e8ec890d43e9a3dd73.tar.gz
emacs-733b241e48a8f87dd3d552e8ec890d43e9a3dd73.zip
(hl-line-highlight, global-hl-line-highlight): Use
`line-beginning-position' to determine the beginning of the next line.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/hl-line.el4
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index db0099c88a7..812738145b3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12003-05-16 Lute Kamstra <Lute.Kamstra@cwi.nl>
2
3 * hl-line.el (hl-line-highlight, global-hl-line-highlight): Use
4 `line-beginning-position' to determine the beginning of the next
5 line.
6
12003-05-16 Kenichi Handa <handa@m17n.org> 72003-05-16 Kenichi Handa <handa@m17n.org>
2 8
3 * international/mule-cmds.el (mule-menu-keymap): Enable the menu 9 * international/mule-cmds.el (mule-menu-keymap): Enable the menu
@@ -465,7 +471,7 @@
465 * help-fns.el (help-add-fundoc-usage): Use t for "no arglist". 471 * help-fns.el (help-add-fundoc-usage): Use t for "no arglist".
466 * emacs-lisp/advice.el (ad-make-advised-docstring): Adjust usage. 472 * emacs-lisp/advice.el (ad-make-advised-docstring): Adjust usage.
467 473
4682003-05-06 Lute Kamstra <lute@occarina.pna.cwi.nl> 4742003-05-06 Lute Kamstra <Lute.Kamstra@cwi.nl>
469 475
470 * hl-line.el: Removed an erroneous comment. 476 * hl-line.el: Removed an erroneous comment.
471 (hl-line-mode): Use buffer local hooks. 477 (hl-line-mode): Use buffer local hooks.
diff --git a/lisp/hl-line.el b/lisp/hl-line.el
index 880ec4ae93e..3ad75ae78fa 100644
--- a/lisp/hl-line.el
+++ b/lisp/hl-line.el
@@ -124,7 +124,7 @@ addition to `hl-line-highlight' on `post-command-hook'."
124 (overlay-put hl-line-overlay 124 (overlay-put hl-line-overlay
125 'window (unless hl-line-sticky-flag (selected-window))) 125 'window (unless hl-line-sticky-flag (selected-window)))
126 (move-overlay hl-line-overlay 126 (move-overlay hl-line-overlay
127 (line-beginning-position) (1+ (line-end-position)))) 127 (line-beginning-position) (line-beginning-position 2)))
128 (hl-line-unhighlight))) 128 (hl-line-unhighlight)))
129 129
130(defun hl-line-unhighlight () 130(defun hl-line-unhighlight ()
@@ -158,7 +158,7 @@ Global-Hl-Line mode uses the functions `global-hl-line-unhighlight' and
158 (overlay-put global-hl-line-overlay 'face hl-line-face)) 158 (overlay-put global-hl-line-overlay 'face hl-line-face))
159 (overlay-put global-hl-line-overlay 'window (selected-window)) 159 (overlay-put global-hl-line-overlay 'window (selected-window))
160 (move-overlay global-hl-line-overlay 160 (move-overlay global-hl-line-overlay
161 (line-beginning-position) (1+ (line-end-position)))))) 161 (line-beginning-position) (line-beginning-position 2)))))
162 162
163(defun global-hl-line-unhighlight () 163(defun global-hl-line-unhighlight ()
164 "Deactivate the Global-Hl-Line overlay on the current line." 164 "Deactivate the Global-Hl-Line overlay on the current line."