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

[Mac] Visual mode ignores system clipboard #2032

Closed
dvcrn opened this Issue Jun 16, 2015 · 8 comments

Comments

Projects
None yet
6 participants
@dvcrn
Contributor

dvcrn commented Jun 16, 2015

I started using spacemacs today in combination with emacs mac port and noticed a very odd pasting behavior which seems like a bug (or misconfiguration on my end) to me.

  1. Copy something into browser clipboard eg "foo"
  2. Go into emacs
  3. Press p
  4. "foo" gets pasted

  1. Copy something into browser clipboard eg "bar"
  2. Go into emacs
  3. Select a string into visual mode (e.g. v i ")
  4. Press p
  5. "foo" (the last copied entry in emacs, not 'bar') gets printed

I tried this many times in different files and also added the osx config layer but the behavior is always the same: When I paste in normal mode, the system clipboard gets pasted. When I paste in visual mode, the last register gets pasted and the system clipboard ignored.

Sadly this is the only way of replacing something with a system clipboard entry. d i w will remove the word and add it into the register so using p will only print the just deleted word

Am I doing something wrong?

@cpaulik

This comment has been minimized.

Show comment
Hide comment
@cpaulik

cpaulik Jun 16, 2015

Contributor

Evil calls a different command called evil-visual-paste in this case so this might be a evil bug

Contributor

cpaulik commented Jun 16, 2015

Evil calls a different command called evil-visual-paste in this case so this might be a evil bug

@dvcrn

This comment has been minimized.

Show comment
Hide comment
@dvcrn

dvcrn Jun 16, 2015

Contributor

Debugged a bit further and seems to be a problem with the GUI interface. When running on the terminal, pasting works fine. Both versions, normal emacs with cocoa and emacs mac port seem to have the problem mentioned above.

Tested with a different config file and the same problem persists so this is not a problem of spacemacs. I'm closing this issue, sorry for the mixup.

Contributor

dvcrn commented Jun 16, 2015

Debugged a bit further and seems to be a problem with the GUI interface. When running on the terminal, pasting works fine. Both versions, normal emacs with cocoa and emacs mac port seem to have the problem mentioned above.

Tested with a different config file and the same problem persists so this is not a problem of spacemacs. I'm closing this issue, sorry for the mixup.

@dvcrn dvcrn closed this Jun 16, 2015

@eipplusone

This comment has been minimized.

Show comment
Hide comment
@eipplusone

eipplusone Sep 3, 2015

@dvcrn have you found a solution to this? It would still be helpful to people like me who found this issue in spacemacs(even if it isn't spacemacs related).

eipplusone commented Sep 3, 2015

@dvcrn have you found a solution to this? It would still be helpful to people like me who found this issue in spacemacs(even if it isn't spacemacs related).

@dvcrn

This comment has been minimized.

Show comment
Hide comment
@dvcrn

dvcrn Sep 4, 2015

Contributor

@voltecrus I did! It took a looooong time but eventually ran into this guys answer http://emacs.stackexchange.com/questions/14940/emacs-doesnt-paste-in-evils-visual-mode-with-every-os-clipboard/15054#15054

Contributor

dvcrn commented Sep 4, 2015

@voltecrus I did! It took a looooong time but eventually ran into this guys answer http://emacs.stackexchange.com/questions/14940/emacs-doesnt-paste-in-evils-visual-mode-with-every-os-clipboard/15054#15054

@justin808

This comment has been minimized.

Show comment
Hide comment
@justin808

justin808 Oct 24, 2015

100% this should be the default!

(fset 'evil-visual-update-x-selection 'ignore) 

justin808 commented Oct 24, 2015

100% this should be the default!

(fset 'evil-visual-update-x-selection 'ignore) 
@stormpat

This comment has been minimized.

Show comment
Hide comment
@stormpat

stormpat Oct 26, 2015

Contributor

💯

This has been a real pain for me. I had no idea it was an issue with evil. As of today pasting to/from emacs works as it should. Thanks a lot @dvcrn for the solution!

Contributor

stormpat commented Oct 26, 2015

💯

This has been a real pain for me. I had no idea it was an issue with evil. As of today pasting to/from emacs works as it should. Thanks a lot @dvcrn for the solution!

@jdelStrother

This comment has been minimized.

Show comment
Hide comment
@jdelStrother

jdelStrother Jun 20, 2016

Contributor

👍

I've had recurring problems with copying & pasting from/to spacemacs, where I'd try to copy something out and just end up with a single character, or paste something in and it would use an older yankring entry. @justin808's setting seems to have magically fixed all that.

Contributor

jdelStrother commented Jun 20, 2016

👍

I've had recurring problems with copying & pasting from/to spacemacs, where I'd try to copy something out and just end up with a single character, or paste something in and it would use an older yankring entry. @justin808's setting seems to have magically fixed all that.

@jdelStrother

This comment has been minimized.

Show comment
Hide comment
@jdelStrother

jdelStrother Jun 21, 2016

Contributor

... I spoke too soon. I had several blissful days of problem-free copy & pasting, and it's just cropped up again. Seems like there's something more complicated going on.

Contributor

jdelStrother commented Jun 21, 2016

... I spoke too soon. I had several blissful days of problem-free copy & pasting, and it's just cropped up again. Seems like there's something more complicated going on.

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