GNU bug report logs - #54481
29.0.50; [PATCH] Rewrite hl-line

Previous Next

Package: emacs;

Reported by: dick <dick.r.chiang <at> gmail.com>

Date: Sun, 20 Mar 2022 16:08:01 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 54481 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: dick <dick.r.chiang <at> gmail.com>
Cc: 54481 <at> debbugs.gnu.org
Subject: Re: bug#54481: 29.0.50; [PATCH] Rewrite hl-line
Date: Tue, 22 Mar 2022 04:13:58 +0100
dick <dick.r.chiang <at> gmail.com> writes:

>  (defcustom hl-line-sticky-flag t
> -  "Non-nil means the HL-Line mode highlight appears in all windows.
> -Otherwise Hl-Line mode will highlight only in the selected
> -window.  Setting this variable takes effect the next time you use
> -the command `hl-line-mode' to turn Hl-Line mode on.
> -
> -This variable has no effect in Global Highlight Line mode.
> -For that, use `global-hl-line-sticky-flag'."
> +  "Non-nil to preserve highlighting overlay when focus leaves window."
>    :type 'boolean
>    :version "22.1"
> +  :group 'hl-line
> +  :set (lambda (symbol value)
> +         (set-default symbol value)
> +         (unless value
> +           (let ((selected (window-buffer (selected-window))))
> +             (dolist (buffer (buffer-list))
> +               (unless (eq buffer selected)
> +                 (with-current-buffer buffer
> +                   (hl-line-unhighlight))))))))

That gives me

Debugger entered--Lisp error: (void-function hl-line-unhighlight)
  (hl-line-unhighlight)
  (#f(compiled-function (symbol value) #<bytecode -0xa62653aea4021f4>) hl-line-sticky-flag nil)
  (custom-initialize-reset hl-line-sticky-flag (funcall #'#f(compiled-function () #<bytecode 0x1dc00016fe5d4>)))
  (custom-declare-variable hl-line-sticky-flag (funcall #'#f(compiled-function () #<bytecode 0x1dc00016fe5d4>)) ...)
  (byte-code ...)
  (hl-line-mode nil)

Same error for (require 'hl-line).


Michael.




This bug report was last modified 3 years and 137 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.