Skip to content
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

Update handling of minibuffer message overlays #165

Conversation

clemera
Copy link
Collaborator

@clemera clemera commented Aug 7, 2020

The cursor would jump forth and back when displaying the message. Overriding make-overlay isn't necessary any more because the content is only defined by the input now but instead we need to make sure the cursor stays at the front of the overlay by overriding put-text-property when calling minibuffer-message. I won't merge this before also adjusting selectrum--fix-set-minibuffer-message which I will do after upgrading to Emacs 27 where I can test it.

@clemera clemera changed the title Fix minibuffer-message for candidates as overlay display Fix minibuffer message overlays for candidates as overlay display Aug 7, 2020
@clemera clemera changed the title Fix minibuffer message overlays for candidates as overlay display Fix minibuffer message overlays Aug 7, 2020
@clemera
Copy link
Collaborator Author

clemera commented Aug 7, 2020

Turns out for set-minibuffer-message there is no more advice necessary :)

They already do the right thing with:

(put-text-property 0 1 'cursor 1 message)

There is no user visible change and the cursor jumping for minibuffer-message wasn't present in the last release so no updates to changelog needed.

@clemera clemera changed the title Fix minibuffer message overlays Update handling of minibuffer message overlays Aug 7, 2020
@clemera clemera merged commit a014e7a into radian-software:master Aug 7, 2020
@raxod502
Copy link
Member

Well, that's certainly good news!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants