-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Can't disable auto-indent when pasting #8897
Comments
I managed to reproduce this problem in the develop branch (3e98896). DescriptionOn master branch, On develop branch, it will not fail, instead it will paste the same text 4 times as originally reported, but WITH indentation. This is easy to check on an C++ file, I basically copy some lines starting with "+" (I do this often when I'm copying from git diff buffers) and paste into a C++ buffer. With Reproduction guide 🪲
Observed behaviour: 👀 💔 Expected behaviour: ❤️ 😄 Analyzing the commands that are bound to WorkaroundYou can somehow work around this bug by modifying the variable ;; I want to disable pasting with formatting on C/C++ buffers
(add-to-list 'spacemacs-indent-sensitive-modes 'c-mode)
(add-to-list 'spacemacs-indent-sensitive-modes 'c++-mode) System Info 💻
(ivy emacs-lisp git) |
I'm also on branch develop (81a931f) and I have the same issue with both |
This commit fixes syl20bnr#4219 and fixes syl20bnr#8897
This commit fixes syl20bnr#4219 and fixes syl20bnr#8897
This commit fixes syl20bnr#4219 and fixes syl20bnr#8897
This commit fixes syl20bnr#4219 and fixes syl20bnr#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
Is this still relevant? I cannot reproduce this issue. |
This commit fixes syl20bnr#4219 and fixes syl20bnr#8897
This commit fixes syl20bnr#4219 and fixes syl20bnr#8897
SPC u p
should paste without indent, but fails since at least an year.The relevant issue is #4219, but is mislabeled as question/forum/Python, which might be the reason it's open since a couple of years. There's even a proposed fix at #4219 (comment).
The text was updated successfully, but these errors were encountered: