Skip to content

Conversation

@ultronozm
Copy link
Contributor

Fixes #438.

  • copilot.el (copilot-clear-overlay-on-commands): New user option.
    (copilot--pre-command): New function that clears the overlay before
    commands occurring in the above user option.
    (copilot--mode-setup): Add 'copilot--pre-command' to
    'pre-command-hook'.
    (copilot--mode-teardown): Remove 'copilot--pre-command' from
    'pre-command-hook'.

(I did not document the new user option in the README because I am not
aware of any other commands for which it is relevant, so it does not
seem like a particularly important user option. I'd be happy to do so
if maintainers felt otherwise.)

* copilot.el (copilot-clear-overlay-on-commands): New user option.
(copilot--pre-command): New function that clears the overlay before
commands occurring in the above user option.
(copilot--mode-setup): Add 'copilot--pre-command' to
'pre-command-hook'.
(copilot--mode-teardown): Remove 'copilot--pre-command' from
'pre-command-hook'.
@bbatsov bbatsov merged commit 7ee4758 into copilot-emacs:main Dec 10, 2025
12 of 13 checks passed
@bbatsov
Copy link
Collaborator

bbatsov commented Dec 10, 2025

Looks good to me. Thanks!

@ultronozm ultronozm deleted the fix/force-clear-overlay branch December 10, 2025 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

copilot overlay interferes with beginning-of-visual-line

2 participants