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

turn off "X selection unavailable in this frame" (mis)feature? #5758

Closed
jwaldmann opened this issue Apr 11, 2016 · 5 comments
Closed

turn off "X selection unavailable in this frame" (mis)feature? #5758

jwaldmann opened this issue Apr 11, 2016 · 5 comments

Comments

@jwaldmann
Copy link

When I run spacemacs in a console window (emacs -nw foo.bar in a gnome-terminal) , the usual X copy/paste is broken. This is a major annoyance. How can I turn this off? (Or why should I not?)
I need this when I'm remotely logged in (ssh running in the terminal, and spacemacs on the remote machine).

@syl20bnr
Copy link
Owner

I'm not sure to understand your issue, what do you want to turn off exactly?
I worked remotly via SSH in an emacs -nw instance on XQuartz today and didn't notice the message you mentioned, I was able to copy/paste correctly provided I'm staying on the same machine.

@jwaldmann
Copy link
Author

Not copy-paste inside emacs, but using the mouse (copy: move mouse over text while pressing left mouse button, paste: middle mouse) - between different X windows. The error message occurs when attempt to paste (middle mouse) into spacemacs.

@TheBB
Copy link
Contributor

TheBB commented Apr 12, 2016

Turn off xterm-mouse-mode?

@jwaldmann
Copy link
Author

Ah! That does it. (and my question is a duplicate of #4591)

@novadeviator
Copy link

novadeviator commented Mar 8, 2018

sorry to comment on the closed issue, but #4591 is about scrolling and this one is about copy/pasting. the solutions there are about enabling the scroll-wheel.

i have solved this issue permanently by editing my ~/.spacemacs inside the
(defun dotspacemacs/user-config () section by adding xterm-mouse-mode -1:

(defun dotspacemacs/user-config ()
  "Configuration function for user code.                                                                                            
This function is called at the very end of Spacemacs initialization after                                                           
layers configuration.                                                                                                               
This is the place where most of your configurations should be done. Unless it is                                                    
explicitly specified that a variable should be set before a package is loaded,                                                      
you should place your code here."
  (unless window-system
    (xterm-mouse-mode -1))
  )

This really should be there by default?

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

No branches or pull requests

5 participants