Closed duianto closed 5 years ago
Why do you think that symbol-overlay
is producing these messages? I don't see them at all.
I started Emacs -Q
and loaded the Spacemacs packages directory:
(setq package-user-dir "~/.emacs.d/elpa/26.2/develop/")
(package-initialize)
And now that you said that it doesn't happen for you. I tried it without loading the Spacemacs packages directory (in case something from Spacemacs was being loaded some how).
I started Emacs -Q
again, but this time I added Melpa to the package-archives
:
https://melpa.org/#/getting-started
M-x package-install
symbol-overlay
Moved the cursor to when
in the melpa getting started snippet.
M-x symbol-overlay-put
Navigating between the occurrences with n
or p
still adds entries in the messages buffer:
when: 1/2 (symbol-overlay-face-5) when: 2/2 when: 1/2 when: 2/2 when: 1/2 when: 2/2 when: 1/2 when: 2/2 when: 1/2
Thanks - the use of symbol-overlay-put
was what I was missing. Confirmed and fixed, as per your suggestion. 👍
The messages buffer gets flooded with every symbol navigation step.
This can be prevented by wrapping
(let (message-log-max nil) BODY)
around the navigation code. Then the messages only appear in the minibuffer, but they won't be written to the messages buffer.It might be enough to just wrap these commands: symbol-overlay-jump-next, ..-prev, ..-first, ..-last symbol-overlay-switch-forward, ..-backward
System info
symbol-overlay.el
GNU Emacs 26.2 (build 1, x86_64-w64-mingw32) of 2019-04-13 Windows 10 Version 1803