Skip to content

C-y does not paste #21

Description

@YueRen

When using M-x visual-replace, pressing C-y does not paste what was previously copied (or cut). Instead, it seems to paste whatever the current point rests on. I was told that this is how M-x isearch used to behave. However, considering that

  1. this behavior was changed over a decade ago (see line 2755 in Emacs News)

  2. M-x replace-string and M-x query-replace-string never used to behave like that

would it be possible to make C-y behave "as expected"?

edit: if anybody else encounters this issue, you can "fix" it by for example putting the following underneath :config in your `(use-package visual-replace ...)

(define-key visual-replace-mode-map [remap yank] nil)
(define-key visual-replace-mode-map [remap yank-pop] nil)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions