From: Gerd Moellmann Date: Sun, 26 Aug 2001 12:10:42 +0000 (+0000) Subject: (hl-line-mode): Add args INIT-VALUE, LIGHTER, and X-Git-Tag: emacs-pretest-21.0.105~74 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=08ead67bba4d1d18182ff2f23e7970644c251290;p=emacs.git (hl-line-mode): Add args INIT-VALUE, LIGHTER, and KEYMAP to the call to define-minor-mode. --- 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)