GNU bug report logs - #40224
26.3; highlight-symbol-at-point does not cover entire buffer

Previous Next

Package: emacs;

Reported by: Lasse Halberg Haarbye <lahh <at> netcompany.com>

Date: Wed, 25 Mar 2020 16:04:01 UTC

Severity: normal

Tags: fixed, moreinfo

Found in version 26.3

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40224 in the body.
You can then email your comments to 40224 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#40224; Package emacs. (Wed, 25 Mar 2020 16:04:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lasse Halberg Haarbye <lahh <at> netcompany.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 25 Mar 2020 16:04:02 GMT) Full text and rfc822 format available.

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

From: Lasse Halberg Haarbye <lahh <at> netcompany.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 26.3; highlight-symbol-at-point does not cover entire buffer
Date: Wed, 25 Mar 2020 15:24:27 +0000
[Message part 1 (text/plain, inline)]

In a buffer with about 2000 lines, highlighting words at the top of the
buffer with highlight-symbol-at-point does not have any effect way down
the buffer. It stops highlighting at about 1500 lines. The bug
happens with emacs -Q as well.


In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
of 2019-08-29 built on CIRROCUMULUS
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor 'Microsoft Corp.', version 10.0.18362
Recent messages:
scroll-up-command: End of buffer [13 times]
Mark set [3 times]
scroll-up-command: End of buffer [14 times]
Mark set
Mark saved where search started [2 times]
Mark set
Mark saved where search started
M-s h . runs the command highlight-symbol-at-point
Quit
C-h > is undefined

Configured using:
'configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install 'CFLAGS=-O2 -static -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS THREADS LCMS2

Important settings:
  value of $LANG: DAN
  locale-coding-system: cp1252

Major mode: Info

Minor modes in effect:
  global-magit-file-mode: t
  magit-auto-revert-mode: t
  global-git-commit-mode: t
  async-bytecomp-package-mode: t
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  doom-modeline-mode: t
  global-auto-revert-mode: t
  linum-mode: t
  my-global-linum-mode: t
  show-paren-mode: t
  global-flycheck-mode: t
  projectile-mode: t
  helm-mode: t
  helm--remap-mouse-mode: t
  delete-selection-mode: t
  electric-pair-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  global-company-mode: t
  company-mode: t
  TeX-PDF-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
c:/Users/lahh/AppData/Roaming/.emacs.d/elpa/company-cmake-0.1/company-cmake hides c:/Users/lahh/AppData/Roaming/.emacs.d/elpa/company-20191106.2247/company-cmake

Features:
(shadow sort mail-extr emacsbug sendmail helm-command hi-lock cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs bug-reference hl-line ace-jump-mode ido misearch multi-isearch
sql view face-remap git-rebase magit-extras magit-submodule
magit-obsolete magit-blame magit-stash magit-reflog magit-bisect
magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit
magit-sequence magit-notes magit-worktree magit-tag magit-merge
magit-branch magit-reset magit-files magit-refs magit-status magit
magit-repos magit-apply magit-wip magit-log which-func magit-diff
smerge-mode magit-core magit-autorevert magit-margin magit-transient
magit-process magit-mode git-commit transient magit-git magit-section
magit-utils log-edit message rmc puny rfc822 mml mml-sec epa epg
gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev
mail-utils gmm-utils mailheader pcvs-util add-log with-editor
async-bytecomp server vc-git diff-mode winner image-file helm-external
helm-net xml url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util mailcap tramp tramp-compat
tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time ffap
flyspell ispell hideshow doom-modeline doom-modeline-segments
doom-modeline-env doom-modeline-core shrink-path f s vibrant-dark-theme
autorevert filenotify linum paren manoj-dark-theme free-keys
browse-kill-ring derived cl goto-last-change multi-term term ehelp
fill-column-indicator platformio-mode haskell-mode haskell-cabal
haskell-utils haskell-font-lock haskell-indentation haskell-string
haskell-sort-imports haskell-lexeme haskell-align-imports
haskell-complete-module haskell-ghc-support dabbrev haskell-customize
yaml-mode flycheck json map find-func helm-projectile projectile grep
ibuf-ext ibuffer ibuffer-loaddefs helm-company helm-elisp helm-eval
edebug helm-info helm-mode helm-files helm-buffers helm-occur helm-tags
helm-locate helm-grep helm-regexp format-spec helm-utils helm-help
helm-types helm helm-source eieio-compat helm-multi-match helm-lib
company-shell dash company-erlang ivy-erlang-complete async counsel xdg
swiper imenu erlang tempo align subr-x ivy delsel colir ivy-overlay
company-bibtex parsebib bibtex company-auctex haskell-snippets
yasnippet-snippets yasnippet elec-pair company-arduino company-c-headers
company-ansible company-ansible-keywords company-irony irony-completion
irony-snippet irony irony-iotask company-oddmuse company-keywords
company-etags etags xref project company-gtags company-dabbrev-code
company-dabbrev company-files company-capf company-cmake company-xcode
company-clang company-semantic company-eclim company-template
company-bbdb company pcase latex-preview-pane doc-view jka-compr
image-mode dired dired-loaddefs auctex-latexmk tex-buf latex
latex-flymake flymake-proc flymake compile comint ring warnings
tex-ispell tex-style tex crm advice flymd browse-url markdown-mode rx
thingatpt noutline outline rainbow-mode ansi-color color all-the-icons
all-the-icons-faces data-material data-weathericons data-octicons
data-fileicons data-faicons data-alltheicons memoize edmacro kmacro
cl-extra help-mode use-package-bind-key bind-key easy-mmode
use-package-ensure use-package-core finder-inf ede/auto tex-site info
package easymenu epg-config url-handlers url-parse auth-source cl-seq
eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq
byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win
w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads w32notify w32 lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 929042 133605)
(symbols 48 55665 2)
(miscs 40 3092 804)
(strings 32 213709 18047)
(string-bytes 1 8303079)
(vectors 16 101542)
(vector-slots 8 2286565 212876)
(floats 8 830 830)
(intervals 56 46507 2694)
(buffers 992 33))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40224; Package emacs. (Wed, 25 Mar 2020 16:12:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lasse Halberg Haarbye <lahh <at> netcompany.com>
Cc: 40224 <at> debbugs.gnu.org
Subject: Re: bug#40224: 26.3;
 highlight-symbol-at-point does not cover entire buffer
Date: Wed, 25 Mar 2020 18:11:19 +0200
> Date: Wed, 25 Mar 2020 15:24:27 +0000
> From: Lasse Halberg Haarbye via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> In a buffer with about 2000 lines, highlighting words at the top of the
> buffer with highlight-symbol-at-point does not have any effect way down
> the buffer. It stops highlighting at about 1500 lines. The bug
> happens with emacs -Q as well.

Can you show a detailed recipe, including the file you use for this?
I tried reproducing, but I don't think I succeeded.  So there must be
something that I did wrong.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40224; Package emacs. (Wed, 25 Mar 2020 21:00:04 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Lasse Halberg Haarbye <lahh <at> netcompany.com>
Cc: 40224 <at> debbugs.gnu.org
Subject: Re: bug#40224: 26.3; highlight-symbol-at-point does not cover
 entire buffer
Date: Wed, 25 Mar 2020 22:19:55 +0200
> In a buffer with about 2000 lines, highlighting words at the top of the
> buffer with highlight-symbol-at-point does not have any effect way down
> the buffer. It stops highlighting at about 1500 lines. The bug
> happens with emacs -Q as well.

Please try to increase the number in M-x customize-variable RET
hi-lock-highlight-range




Added tag(s) moreinfo. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 30 Mar 2020 17:37:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40224; Package emacs. (Mon, 06 Apr 2020 12:34:02 GMT) Full text and rfc822 format available.

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

From: Lasse Halberg Haarbye <lahh <at> netcompany.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: "40224 <at> debbugs.gnu.org" <40224 <at> debbugs.gnu.org>
Subject: RE: bug#40224: 26.3; highlight-symbol-at-point does not cover entire
 buffer
Date: Mon, 6 Apr 2020 11:55:15 +0000
That did the trick. It was already quite high (20k) so I guess it refers to the number of characters and not lines.


-----Original Message-----
From: Juri Linkov <juri <at> linkov.net> 
Sent: 25. marts 2020 21:20
To: Lasse Halberg Haarbye <lahh <at> netcompany.com>
Cc: 40224 <at> debbugs.gnu.org
Subject: Re: bug#40224: 26.3; highlight-symbol-at-point does not cover entire buffer

> In a buffer with about 2000 lines, highlighting words at the top of 
> the buffer with highlight-symbol-at-point does not have any effect way 
> down the buffer. It stops highlighting at about 1500 lines. The bug 
> happens with emacs -Q as well.

Please try to increase the number in M-x customize-variable RET hi-lock-highlight-range




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40224; Package emacs. (Mon, 06 Apr 2020 23:56:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Lasse Halberg Haarbye <lahh <at> netcompany.com>
Cc: "40224 <at> debbugs.gnu.org" <40224 <at> debbugs.gnu.org>
Subject: Re: bug#40224: 26.3; highlight-symbol-at-point does not cover
 entire buffer
Date: Tue, 07 Apr 2020 02:53:06 +0300
> That did the trick.  It was already quite high (20k) so I guess it
> refers to the number of characters and not lines.

Yes, it refers to the number of characters.

I propose to bump the default value from 200KB to 2MB:

diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el
index 9173b66b7f..b4c758ebf4 100644
--- a/lisp/hi-lock.el
+++ b/lisp/hi-lock.el
@@ -102,7 +102,7 @@ hi-lock-file-patterns-range
   :type 'integer
   :group 'hi-lock)
 
-(defcustom hi-lock-highlight-range 200000
+(defcustom hi-lock-highlight-range 2000000
   "Size of area highlighted by hi-lock when font-lock not active.
 Font-lock is not active in buffers that do their own highlighting,
 such as the buffer created by `list-colors-display'.  In those buffers




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40224; Package emacs. (Sat, 11 Apr 2020 23:51:01 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Lasse Halberg Haarbye <lahh <at> netcompany.com>
Cc: "40224 <at> debbugs.gnu.org" <40224 <at> debbugs.gnu.org>
Subject: Re: bug#40224: 26.3; highlight-symbol-at-point does not cover
 entire buffer
Date: Sun, 12 Apr 2020 02:50:14 +0300
tags 40224 fixed
close 40224 28.0.50
thanks

>> That did the trick.  It was already quite high (20k) so I guess it
>> refers to the number of characters and not lines.
>
> Yes, it refers to the number of characters.
>
> I propose to bump the default value from 200KB to 2MB:

So now changed in master and closed.




Added tag(s) fixed. Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Sat, 11 Apr 2020 23:51:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.0.50, send any further explanations to 40224 <at> debbugs.gnu.org and Lasse Halberg Haarbye <lahh <at> netcompany.com> Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Sat, 11 Apr 2020 23:51:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 10 May 2020 11:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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