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

Fix pasting with universal argument #11858

Closed

Conversation

pritambaral
Copy link

@pritambaral pritambaral commented Jan 17, 2019

The auto-indent advice around evil-paste-{before,after} calls the advised funcs
without removing the universal argument. This results in errors like:

ad-Advice-evil-paste-before: Wrong type argument: number-or-marker-p, (4)

and, ultimately, in the paste failing.

This checks for the universal argument before calling the advised funcs,
adjusting the args to remove the universal argument.

Fixes #4219
Fixes #8897

The auto-indent advice around evil-paste-{before,after} calls the advised funcs
without removing the universal argument. This results in errors like:

ad-Advice-evil-paste-before: Wrong type argument: number-or-marker-p, (4)

and, ultimately, in the paste failing.

This checks for the universal argument *before* calling the advised funcs,
adjusting the args to remove the universal argument.

Fixes syl20bnr#4219
Fixes syl20bnr#8897
@kommen
Copy link
Contributor

kommen commented Jan 17, 2019

Does this make #11340 obsolete?

@duianto
Copy link
Contributor

duianto commented Apr 25, 2019

The following PR is now on the develop branch:
Check for universal argument before paste #11340

It superseded this one with two additional features:

  • Fix the errors related to universal argument when people enable multiple-cursors layer.
  • Rewrite spacemacs|advise-commands with advice-add, as defadvice is obsoleted.

source: #11340 (comment)

@duianto duianto closed this Apr 25, 2019
@pritambaral pritambaral deleted the fix/universal-paste-indent branch May 11, 2019 06:23
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.

5 participants