unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#40224: 26.3; highlight-symbol-at-point does not cover entire buffer
@ 2020-03-25 15:24 Lasse Halberg Haarbye via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2020-03-25 16:11 ` Eli Zaretskii
  2020-03-25 20:19 ` Juri Linkov
  0 siblings, 2 replies; 6+ messages in thread
From: Lasse Halberg Haarbye via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2020-03-25 15:24 UTC (permalink / raw)
  To: 40224

[-- Attachment #1: Type: text/plain, Size: 7157 bytes --]



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))

[-- Attachment #2: Type: text/html, Size: 18755 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#40224: 26.3; highlight-symbol-at-point does not cover entire buffer
  2020-03-25 15:24 bug#40224: 26.3; highlight-symbol-at-point does not cover entire buffer Lasse Halberg Haarbye via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2020-03-25 16:11 ` Eli Zaretskii
  2020-03-25 20:19 ` Juri Linkov
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2020-03-25 16:11 UTC (permalink / raw)
  To: Lasse Halberg Haarbye; +Cc: 40224

> 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@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#40224: 26.3; highlight-symbol-at-point does not cover entire buffer
  2020-03-25 15:24 bug#40224: 26.3; highlight-symbol-at-point does not cover entire buffer Lasse Halberg Haarbye via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2020-03-25 16:11 ` Eli Zaretskii
@ 2020-03-25 20:19 ` Juri Linkov
  2020-04-06 11:55   ` Lasse Halberg Haarbye via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 6+ messages in thread
From: Juri Linkov @ 2020-03-25 20:19 UTC (permalink / raw)
  To: Lasse Halberg Haarbye; +Cc: 40224

> 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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#40224: 26.3; highlight-symbol-at-point does not cover entire buffer
  2020-03-25 20:19 ` Juri Linkov
@ 2020-04-06 11:55   ` Lasse Halberg Haarbye via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2020-04-06 23:53     ` Juri Linkov
  0 siblings, 1 reply; 6+ messages in thread
From: Lasse Halberg Haarbye via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2020-04-06 11:55 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 40224@debbugs.gnu.org

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@linkov.net> 
Sent: 25. marts 2020 21:20
To: Lasse Halberg Haarbye <lahh@netcompany.com>
Cc: 40224@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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#40224: 26.3; highlight-symbol-at-point does not cover entire buffer
  2020-04-06 11:55   ` Lasse Halberg Haarbye via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2020-04-06 23:53     ` Juri Linkov
  2020-04-11 23:50       ` Juri Linkov
  0 siblings, 1 reply; 6+ messages in thread
From: Juri Linkov @ 2020-04-06 23:53 UTC (permalink / raw)
  To: Lasse Halberg Haarbye; +Cc: 40224@debbugs.gnu.org

> 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





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#40224: 26.3; highlight-symbol-at-point does not cover entire buffer
  2020-04-06 23:53     ` Juri Linkov
@ 2020-04-11 23:50       ` Juri Linkov
  0 siblings, 0 replies; 6+ messages in thread
From: Juri Linkov @ 2020-04-11 23:50 UTC (permalink / raw)
  To: Lasse Halberg Haarbye; +Cc: 40224@debbugs.gnu.org

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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-11 23:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-25 15:24 bug#40224: 26.3; highlight-symbol-at-point does not cover entire buffer Lasse Halberg Haarbye via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-03-25 16:11 ` Eli Zaretskii
2020-03-25 20:19 ` Juri Linkov
2020-04-06 11:55   ` Lasse Halberg Haarbye via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-04-06 23:53     ` Juri Linkov
2020-04-11 23:50       ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).