-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible renaming of a function from "..-micro-state" to "..-transient-state" #6989
Comments
Can you check that I got everything? |
I missed that ..-ms-.. also is referring to micro state. I compared every occurrence of -ms- and -micro- i found to your changes, there are 19 occurrences of ..-ms-.. and 3 of ..-micro-.., it's the same number of times you changed ..-ms-.. to ..-ts-.. and ..-micro-.. to ..-transient-.., so it seems like you got everything. |
That's good but I was more interested in you trying it out and see that it's still working as it used to. |
I haven't used ido navigation, i just noticed the micro/transient issue when i was looking into some other transient state issues. Someone with at least some experience with ido, probably should test it. |
SummaryCurrently the ido micro state keybinding M-SPC doesn't work, after renaming ms and micro to ts and transient then the keybinding starts working again. There's another issue with the ido micro/transient state, but it's present both before and after correcting the renaming issue. The ido micro/transient state doesn't show the keys that are bound, it only shows the title, an empty row and the bottom row that states if a [KEY] does or does not exit. The bound keys work so it's just an issue with the keys not being visible. On line 243 the s-M-SPC keybinding probably should be renamed to an uppercase "S" since it's a modifier key, resulting in S-M-SPC. After changing the lowercase letter to uppercase, then the PR can probably be applied. After renaming then the ido Transient State opens with both M-SPC and S-M-SPC while these ido "states/modes" are active: More detailsWith the completion set to: Ivy, and ido-mode enabled. The function name seems to already have been renamed. When one tries to search for it at the M-x prompt, then "ido micro" finds nothing, but "ido transient" finds 13 results, one of which is: When that command is started, then only the transient state title "ido Transient State" and the last row: "[KEY] exits state [KEY] will not exit" are shown with an empty line between them. None of the keys are shown, even though they are active. When the "j" or "k" key is pressed then the minibuffer shows: (void-variable ido-cur-list), and "q" closes the TS. After exchanging the current -ms- and -micro- version of the .../spacemacs-completion/packages.el file with PR version with the -ts- and -transient- changes, now the keybinding: M-SPC at the C-x b (ido-switch-buffer) opens the ido Transient State panel, instead of showing the "Symbol's function definition is void..." message, but the transient state keys aren't shown here either, even though they still are active. Possible reason for the symbol's void message: After changing ms and micro to ts and transient, then if one searches for the keybinding: "M-SPC" while the ido-switch-buffer is open, then M-SPC is is found and it runs this command: On line 243: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
I seem to remember reading that the name "micro state" is deprecated in favor of "transient state", if that's true, then the following function probably should be renamed:
https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Bspacemacs/spacemacs-completion/packages.el#L199
https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Bspacemacs/spacemacs-completion/packages.el#L241
The comments before each call to the "..-micro-state" function even says: "... keep track of any activated ido navigation transient-state ..." and "initiate transient-state", "transient-state" is also mentioned several times throughout the packages.el file.
System Info 💻
The text was updated successfully, but these errors were encountered: