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

Visual states should set region-extract-function #1865

Open
catern opened this issue Feb 15, 2024 · 0 comments
Open

Visual states should set region-extract-function #1865

catern opened this issue Feb 15, 2024 · 0 comments

Comments

@catern
Copy link

catern commented Feb 15, 2024

Issue type

  • Enhancement request

Expected behavior

When in visual block state or visual line state, evil-mode should set region-extract-function so that Emacs functions which interact with the region behave correctly. This includes, but is not limited to:

  • shell-command-on-region
  • kill-region
  • copy-region-as-kill
  • various rectangle commands

Invoking region-extract-function is the correct way to deal with non-standard regions in Emacs, so this allows commands to support evil's nonstandard regions without actually depending on evil.

Actual behavior

There's no portable way to write a command which supports visual block/visual line, without depending on evil.

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

No branches or pull requests

1 participant