Fix Bug#16183 about `global-hl-line-sticky-flag'.
authorBastien Guerry <bzg@gnu.org>
Mon, 6 Jan 2014 20:54:37 +0000 (21:54 +0100)
committerBastien Guerry <bzg@gnu.org>
Mon, 6 Jan 2014 20:54:37 +0000 (21:54 +0100)
commitdaccca97f0231b54628c6ef8e58621277c678aa3
tree02d9d3a380d6df3591c8db8130376b191d9fa8d1
parentec00f20f553cdd37c1261a5a228ec762fc9b5497
Fix Bug#16183 about `global-hl-line-sticky-flag'.

* hl-line.el (global-hl-line-overlay): Make a local variable.
(global-hl-line-overlays): New variable to store all overlays.
(global-hl-line-mode): Don't delete overlays from the current
buffer when `global-hl-line-sticky-flag' is non-nil.
(global-hl-line-highlight): Add new overlays to
`global-hl-line-overlays'.
(global-hl-line-unhighlight-all): New function to delete all
overlays when turning off `global-hl-line-mode'.
lisp/ChangeLog
lisp/hl-line.el