Subject: Re: Bug#21796: exiting ediff can leave Emacs unresponsive to keyboard input

From: martin rudalics <[email-masked]>
Date: Thu, 29 Jun 2017 09:17:56 +0200

> I've made this adjustment in my .emacs
 >
 >> (setq ediff-window-setup-function #'ediff-setup-windows-plain)
 >
 > and run for a few days now without any hangs, so I'd say this looks like a
 > good workaround.

Certainly not!  But it supports my suspicion that focus shifting is
responsible for the problem.  Can you reproduce the original problem at
will so we can play with it?  Would have C-x 5 o got you out of that
stall?  Then it might be sufficient to replace some simple form like

     (if (frame-live-p main-frame)
	(select-frame main-frame))

with

     (if (frame-live-p main-frame)
	(select-frame-set-input-focus main-frame))

martin