This is a long-standing problem that I haven't found a solution for months. I sometimes copy text or snippet from somewhere relse and paste into my emacsclient in the Terminal by
Ctrl + Shift + V (Gnome Terminal, Linux). Emacs frequently interferes with this pasting by triggering arbitrary commands. This breaks the pasting job, and may also be a security risk.
For example, this content:
head -n1 ucsc.refseq.txt >refseq.sorted.txt
would be trucated to
head -n1 ucsc.re and send
eq.txt >re to some other command (i.e. switch buffer). The
eq.sorted.txt disappears. And the
fs parts were interpreted as some command/mt macro that I can't find from any exposed emacs function.
I tried with
clipboard-yank, pasting produced different result but still not complete content I want to paste.
So, how do I make emacs paste literally all of my clipboard content, without triggering anything?
If it helps anything: my emacs version 24.5 with spacemacs configuration.
Some more background information: The problem here is that I use my local computer to select and copy text. Then I paste into emacsclient with the ssh. This means the my local clipboard's content has to be transferred to the remote server letter by letter, not the normal way of clipboard handling. And that causes the problem.