You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you enter symbol-highlight-transient-state, search backward, and exit the transient state, n and N are now switched vs. their usual Vim-style behavior.
I have zero experience with ELisp, but, some things I observe from poking around layers/+spacemacs/spacemacs-navigation:
In funcs.el, spacemacs//ahs-ts-on-exit has a comment about "Restore user search direction state..." - it seems relevant, is this just not working?
In packages.el, the above function is set as the :on-exit of spacemacs|define-transient-state symbol-highlight. But, using edebug-defun on that function, it seems to get called each time I hit the n or p key in symbol-highlight-transient-state, which seems weird?
I observe this behavior on my freshly-installed MacOS Spacemacs as well as my Linux Spacemacs in the office.
Reproduction guide 🪲
Install a fresh Spacemacs; start Emacs
Type in scratch buffer: "foo foo foo foo"
Cursor over the first "foo" and hit * to enter symbol-highlight-transient-state
Hit p to go to the previous match
Hit q to exit the transient state
Observed behaviour: 👀 💔 n now searches backward through "foo"s
Expected behaviour: ❤️ 😄 n now searches forward through "foo"s
Description
If you enter
symbol-highlight-transient-state
, search backward, and exit the transient state,n
andN
are now switched vs. their usual Vim-style behavior.I have zero experience with ELisp, but, some things I observe from poking around
layers/+spacemacs/spacemacs-navigation
:funcs.el
,spacemacs//ahs-ts-on-exit
has a comment about "Restore user search direction state..." - it seems relevant, is this just not working?packages.el
, the above function is set as the:on-exit
ofspacemacs|define-transient-state symbol-highlight
. But, usingedebug-defun
on that function, it seems to get called each time I hit then
orp
key insymbol-highlight-transient-state
, which seems weird?I observe this behavior on my freshly-installed MacOS Spacemacs as well as my Linux Spacemacs in the office.
Reproduction guide 🪲
*
to entersymbol-highlight-transient-state
p
to go to the previous matchq
to exit the transient stateObserved behaviour: 👀 💔
n
now searches backward through "foo"sExpected behaviour: ❤️ 😄
n
now searches forward through "foo"sSystem Info 💻
Backtrace 🐾
N/A
The text was updated successfully, but these errors were encountered: