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

Allow custom delete-region, insert functions #609

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

45mg
Copy link
Contributor

@45mg 45mg commented Jun 22, 2024

Make it possible to specify which functions are used to delete the region and insert text.

This is needed to get Meow to work with modes like Vterm, that define their own delete-region and insert functions, without massive code duplication.

See meow-vterm for an example of this - it requires this patch to work.

@45mg 45mg changed the title Allow custom delete-region', insert' functions Allow custom delete-region, insert functions Jun 22, 2024
@45mg
Copy link
Contributor Author

45mg commented Jun 26, 2024

Force-push to define functions meow--insert and meow--delete-region, which should be less annoying than having to (funcall meow--X-function) every time.

Make it possible to specify which functions are used to delete the
region and insert text.

This is needed to get Meow to work with modes like Vterm, which define
their own `delete-region' and `insert' functions, without massive code
duplication.
@45mg
Copy link
Contributor Author

45mg commented Jun 27, 2024

Force-push because the previous one confused funcall and apply. Oops.

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.

1 participant