Emacs hangs upon yank from X clipboard

Bug #1514885 reported by Jesse Glick
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
emacs24 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I routinely copy text from other applications such as Chromium and Ctrl-Y to paste into Emacs. This worked fine as of Xubuntu 15.04. After upgrading to 15.10 (emacs24 24.5+1-1ubuntu2), the yank operation frequently hangs, freezing Emacs for perhaps a minute, not interruptible with Ctrl-G. Eventually it recovers (but pastes something other than the current clipboard contents). Once the problem starts happening, I cannot paste into my Emacs window without a hang, making it a blocker for routine usage.

I found http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16737 which linked to https://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00106.html from which I found http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=a27ae9d7650a1230d4359eaf0a949f827315a6d2 that seems to be a backport to Emacs 24. Please make sure Ubuntu picks up this fix.

Tags: clipboard hang
Revision history for this message
Jesse Glick (jesse-glick) wrote :

Workaround for the hang is to just disable clipboard integration: M-x customize-variable x-select-enable-clipboard, toggle to off, set and save for future sessions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in emacs24 (Ubuntu):
status: New → Confirmed
Revision history for this message
Gergely Daróczi (daroczig) wrote :

Using `emacs-snapshot` from https://launchpad.net/~ubuntu-elisp/+archive/ubuntu/ppa seems to be a temporary workaround.

Revision history for this message
Matthias Klose (doko) wrote :

fixed in 24.5+1-6ubuntu1

Changed in emacs24 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.