58 |
;; mode is used. |
;; mode is used. |
59 |
|
|
60 |
;; In default whole the line is highlighted. The range of highlighting |
;; In default whole the line is highlighted. The range of highlighting |
61 |
;; can be changed by defining an appropriate function as the |
;; can be changed by defining an appropriate function as the |
62 |
;; buffer-local value of `hl-line-range-function'. |
;; buffer-local value of `hl-line-range-function'. |
63 |
|
|
64 |
;;; Code: |
;;; Code: |
79 |
window. Setting this variable takes effect the next time you use |
window. Setting this variable takes effect the next time you use |
80 |
the command `hl-line-mode' to turn Hl-Line mode on." |
the command `hl-line-mode' to turn Hl-Line mode on." |
81 |
:type 'boolean |
:type 'boolean |
82 |
:version "21.4" |
:version "22.1" |
83 |
:group 'hl-line) |
:group 'hl-line) |
84 |
|
|
85 |
(defvar hl-line-range-function nil |
(defvar hl-line-range-function nil |
86 |
"If non-nil, function to call to return highlight range. |
"If non-nil, function to call to return highlight range. |
87 |
The function of no args should return a cons cell; its car value |
The function of no args should return a cons cell; its car value |
88 |
is the beginning position of highlight and its cdr value is the |
is the beginning position of highlight and its cdr value is the |
89 |
end position of highlight in the buffer. |
end position of highlight in the buffer. |
90 |
It should return nil if there's no region to be highlighted. |
It should return nil if there's no region to be highlighted. |
91 |
|
|