diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a69502f41e3..00d5bbd2319 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2001-08-26 Gerd Moellmann + + * hl-line.el (hl-line-mode): Add args INIT-VALUE, LIGHTER, and + KEYMAP to the call to define-minor-mode. + 2001-08-24 Eli Zaretskii * term/internal.el (IT-character-translations) : diff --git a/lisp/hl-line.el b/lisp/hl-line.el index 3107b2ac451..e37bdf412c2 100644 --- a/lisp/hl-line.el +++ b/lisp/hl-line.el @@ -85,6 +85,7 @@ With ARG, turn Hl-Line mode on if ARG is positive, off otherwise. Uses functions `hl-line-unhighlight' and `hl-line-highlight' on `pre-command-hook' and `post-command-hook'." + nil nil nil (if hl-line-mode (progn (add-hook 'pre-command-hook #'hl-line-unhighlight)