Sometimes emacs takes a very long time (+ 30 seconds) to read from or save to the system (Linux) clipboard. The entire emacs session hangs while it does this and I can't cancel it with C-g
or ESC ESC ESC
or anything. This seems to happen at random, but whenever it does happen, it tends to happen more frequently until I restart emacs.
What could be causing this behavior? Where should I start? I haven't changed the default values of x-select-enable-clipboard
(t) or any other clipboard-related variables (to my knowledge)...
emacs -Q
then please file a bug report for it:M-x report-emacs-bug
. If not, recursively bisect your init file to find the code that manifests this. – Drew Jun 29 '16 at 16:56