Skip to content

Conversation

@ultronozm
Copy link
Contributor

  • copilot.el (copilot--hardcoded-clear-overlay-ignore-commands): New
    constant.
    (copilot--post-command): Use it.

* copilot.el (copilot--hardcoded-clear-overlay-ignore-commands): New
constant.
(copilot--post-command): Use it.
:type '(repeat function)
:package-version '(copilot . "0.1"))

(defconst copilot--hardcoded-clear-overlay-ignore-commands
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps "default" is a better term than "hardcoded"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with whichever. "Default" sounds to me like the default value of the user option

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you prefer something like this?

(defconst copilot--clear-overlay-ignore-defaults
  '(universal-argument digit-argument negative-argument universal-argument-more)
  "Built-in list of commands that should not clear the overlay.")

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big deal. This can always be changed.

@bbatsov bbatsov merged commit 459ba9c into copilot-emacs:main Dec 9, 2025
12 of 13 checks passed
@ultronozm ultronozm deleted the hardcode-some-overlay-ignore-commands branch December 9, 2025 10:11
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.

2 participants