From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mail@andy.glew.ca Newsgroups: gmane.emacs.bugs Subject: bug#11993: Emacs frames on other display hang during recursive edit on a different display Date: Wed, 18 Jul 2012 20:34:19 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec554d84234c54204c5267625 X-Trace: dough.gmane.org 1342714259 30632 80.91.229.3 (19 Jul 2012 16:10:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2012 16:10:59 +0000 (UTC) To: 11993@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 18:10:58 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SrtJa-0005rp-4x for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 18:10:58 +0200 Original-Received: from localhost ([::1]:37292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrtJZ-0003Nq-BZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 12:10:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrtJU-0003NU-Uh for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 12:10:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrtJS-0004vl-NJ for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 12:10:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrtJS-0004vf-Jq for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 12:10:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SrtPS-0008JN-Eu for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 12:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: mail@andy.glew.ca Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Jul 2012 16:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11993 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134271456531864 (code B ref -1); Thu, 19 Jul 2012 16:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Jul 2012 16:16:05 +0000 Original-Received: from localhost ([127.0.0.1]:50919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrtOV-0008Ha-NP for submit@debbugs.gnu.org; Thu, 19 Jul 2012 12:16:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34661) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Srhbv-0004S1-6E for submit@debbugs.gnu.org; Wed, 18 Jul 2012 23:41:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrhVv-0001Eb-Tw for submit@debbugs.gnu.org; Wed, 18 Jul 2012 23:34:57 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:37841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrhVv-0001EX-QL for submit@debbugs.gnu.org; Wed, 18 Jul 2012 23:34:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrhVt-0004vK-TY for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 23:34:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrhVr-0001Dr-Iy for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 23:34:53 -0400 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:58820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrhVr-0001DX-6T for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 23:34:51 -0400 Original-Received: by lbjn8 with SMTP id n8so3688013lbj.0 for ; Wed, 18 Jul 2012 20:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=uGi6RixIN3yevemTnZZxw4OULGNMmdSXng0T71f+dhs=; b=fZkBu0v2atV+eZYd67jMuDuX+tpSJ4VPxpkLAJs6D9Y5E1a5mxxw85IlrFKVecnaFq QUYcBBCjjO5o44ED0GqRZUo/A8bBKbyYQvsaJWiletImIfVmjCrEkLs+MtFlRoGk49y6 S96tKvh7SKA4YLN/9j4lDs+bRsWpSX8j8ZG3m9GqZMhQUQ0pHY6oTNDhr2sugJ6AFLtE borHM7NysqAdeUeFXlGtQVjhkDuCPfUfGIHrwAAyHnYy9meTBkcY9gvlr7H4JquPbW7z i9pDa928Sm0B1RHpLgGM5H+4ec+Y5xqkMyvVKhmWezz1eitntNhswgVL6wsogxA+kFnQ ZfmQ== Original-Received: by 10.112.17.227 with SMTP id r3mr289409lbd.41.1342668889441; Wed, 18 Jul 2012 20:34:49 -0700 (PDT) Original-Received: by 10.114.4.229 with HTTP; Wed, 18 Jul 2012 20:34:19 -0700 (PDT) X-Google-Sender-Auth: BSSguhiCmsT0S51zN9KFTRkvwck X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 19 Jul 2012 12:16:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62164 Archived-At: --bcaec554d84234c54204c5267625 Content-Type: text/plain; charset=ISO-8859-1 This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': emacs -Q ...opens a frame (X Window) ...select that window, use it a bit to see that all works ESC-X make-frame-on-display ... type in display name ... note: in may case, the display is a different VNC session ... switch to the just opened emacs frame in that display, use it a bit to see that all works ... switch back, again, just to see that all works. ... in eother of the frames, type ESC-X recursive-edit ... I am still able to work in the frame that initiated the recursive edit. ... However, in the other frames of the emacs, while I can select the frame (X Window), and the cursor changes from outline to filled, I cannot do anything useful. The other frame(s) are hung: typing is not accepted, mouse clicks do not move the cursor. ... but the frame in which you typed recursive-edit still works ... switch back to that frame, type ESC-X exit-recursive-edit ... everything now works, in all frames. Further investigation shows that this hang occurs whenever the minibuffer is open in another frame. I also find http://www.mail-archive.com/emacs-pretest-bug@gnu.org/msg08103.html to which Stallman responded: Re: Emacs hangs on current display when the minibuffer is active on another display Richard Stallman Wed, 27 Sep 2006 19:15:16 -0700 If I leave the emacs on one display with the minibuffer active, emacs on the other display does not respond to anything until the minibuffer input is resolved (input entered, or quit). It is nearly impossible to fix this without making Emacs multi-threaded. I hope that will be done some day, but I don't know if anyone is working on it. I suppose that I could give up and not report this bug. However, (a) reporting that this occurs with recursive-edit as well as minibuffer open may help the next person who encounters this bug, and (b) while I can imagine ways that the minibuffrer problem may be difficult to fix without multithreading (or good non-blocking asynchronous I/O), I must admit that I cannot imagine why recursive-edit would be like that. Also (c) I could swear that I *have* been able to use recursive-edit with multiple frames in the past, on older versions of emacs. However, I cannot reproduce this at the moment - all of the different versions of emacs I have access to have this problem. (By the way, my apologies for mailing this bug report from Microsoft Outlook or Gmail, although it was prepared in EMACS.) If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /home/glew/import/emacs/emacs-24.1/install-dir-personal/share/emacs/24.1/etc/DEBUG. In GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4) of 2012-07-13 on mipscs587 Windowing system distributor `The XFree86 Project, Inc', version 11.0.40300000 Configured using: `configure '--with-gif=no' '--prefix=/home/glew/import/emacs/emacs-24.1/install-dir-personal'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: x m a k e - f r a m e - o n l o c a l h o s t L : 1 : 1 2 x r e c u r s i v e - e d u i t x e x i t - r e c u r s i v e - e d i t q q q x r e p o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --bcaec554d84234c54204c5267625 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gn= u.org. =A0Please check that
the From: line contains a valid e= mail address. =A0After a delay of up
to one day, you should receive an acknowledgement at that address.

Please write in English if possible, as the Emacs mai= ntainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug,= and
the precise symptoms of the bug. =A0If you can, give a recip= e
starting from `emacs -Q':



=A0 =A0 emacs -Q

=A0 =A0 =A0 = =A0 ...opens a frame (X Window)

=A0 =A0 =A0 =A0 ..= .select that window, use it a bit to see that all works

=A0 =A0 =A0 =A0 ESC-X make-frame-on-display

=A0 =A0 =A0 =A0 ... type in display name
=A0 = =A0 =A0 =A0 ... note: in may case, the display is a different VNC session

=A0 =A0 =A0 =A0 ... switch to the just opened emacs= frame in that display, use it a bit
=A0 =A0 =A0 =A0 to see that all works

=A0 =A0= =A0 =A0 ... switch back, again, just to see that all works.

=
=A0 =A0 =A0 =A0 ... in eother of the frames, type

=
=A0 =A0 =A0 =A0 ESC-X recursive-edit

=A0 =A0 =A0 =A0 ... =A0I am still able to work in the f= rame that initiated the recursive
=A0 =A0 =A0 =A0 edit.

=A0 =A0 =A0 =A0 ... However, in the other frames of the ema= cs, while I can select the
=A0 =A0 =A0 =A0 frame (X Window), and the cursor changes from outline = to filled, I
=A0 =A0 =A0 =A0 cannot do anything useful. =A0The ot= her frame(s) are hung: typing is not
=A0 =A0 =A0 =A0 accepted, mo= use clicks do not move the cursor.

=A0 =A0 =A0 =A0 ... but the frame in which you typed re= cursive-edit still works

=A0 =A0 =A0 =A0 ... switc= h back to that frame, type

=A0 =A0 =A0 =A0 ESC-X e= xit-recursive-edit

=A0 =A0 =A0 =A0 ... everything now works, in all frames= .

=A0 =A0 Further investigation shows that this ha= ng occurs whenever the
=A0 =A0 minibuffer is open in another fram= e. =A0I also find


=A0 =A0 to w= hich Stallman responded:

=A0 =A0 =A0 =A0 Re: Emacs hangs on current display when= the minibuffer is active on another display
=A0 =A0 =A0 =A0 Richard Stallma= n
=A0 =A0 =A0 =A0 Wed, 27 Sep 2006 19:15:16 -0700

=A0 =A0 =A0 =A0 =A0 =A0 If I leave the emacs on one
=A0 =A0 =A0 =A0 =A0 =A0 display with the minibuffer active, emacs on= the other display does
=A0 =A0 =A0 =A0 =A0 =A0 not respond to an= ything until the minibuffer input is resolved (input
=A0 =A0 =A0 =A0 =A0 =A0 entered, or quit).

= =A0 =A0 =A0 =A0 It is nearly impossible to fix this without making Emacs
=A0 =A0 =A0 =A0 multi-threaded. =A0I hope that will be done some da= y, but I
=A0 =A0 =A0 =A0 don't know if anyone is working on i= t.


=A0 =A0 I suppose that I could give up a= nd not report this bug.

=A0 =A0 However, (a) repor= ting that this occurs with recursive-edit as well as
=A0 =A0 mini= buffer open may help the next person who encounters this bug, and
=A0 =A0 (b) while I can imagine ways that the minibuffrer problem may = be
=A0 =A0 difficult to fix without multithreading (or good non-b= locking
=A0 =A0 asynchronous I/O), I must admit that I cannot ima= gine why recursive-edit
=A0 =A0 would be like that.

=A0 =A0 Also (c) = I could swear that I *have* been able to use recursive-edit
=A0 = =A0 with multiple frames in the past, on older versions of emacs. =A0Howeve= r, I
=A0 =A0 cannot reproduce this at the moment - all of the different versions= of
=A0 =A0 emacs I have access to have this problem.
<= br>
=A0 =A0 (By the way, my apologies for mailing this bug report= from Microsoft
=A0 =A0 Outlook or Gmail, although it was prepared in EMACS.)

If Emacs crashed, and you have the Emacs process in the gd= b debugger,
please include the output from the following gdb comm= ands:
=A0 =A0 `bt full' and `xbacktrace'.
For information = about debugging Emacs, please read the file
/home/glew/import/ema= cs/emacs-24.1/install-dir-personal/share/emacs/24.1/etc/DEBUG.

In GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, GT= K+ Version 2.10.4)
=A0of 2012-07-13 on mipscs587
Window= ing system distributor `The XFree86 Project, Inc', version 11.0.4030000= 0
Configured using:
=A0`configure '--with-gif=3Dno'
=A0'--prefix=3D/home/glew/import/emacs/emacs-24.1/install-dir-p= ersonal''

Important settings:
= =A0 value of $LC_ALL: nil
=A0 value of $LC_COLLATE: nil
=A0 value of $LC_CTYPE: nil
=A0 value of $LC_MESSAGES: nil
=A0 value of $LC_MONETARY:= nil
=A0 value of $LC_NUMERIC: nil
=A0 value of $LC_TIM= E: nil
=A0 value of $LANG: C
=A0 value of $XMODIFIERS: nil
=A0 locale-coding-system: nil
=A0 default enable-multibyte-char= acters: t

Major mode: Lisp Interaction
<= br>
Minor modes in effect:
=A0 tooltip-mode: t
=A0 mou= se-wheel-mode: t
=A0 tool-bar-mode: t
=A0 menu-bar-mode= : t
=A0 file-name-shadow-mode: t
=A0 global-font-lock-m= ode: t
=A0 font-lock-mode: t
=A0 blink-cursor-mode: t
=A0= auto-composition-mode: t
=A0 auto-encryption-mode: t
= =A0 auto-compression-mode: t
=A0 line-number-mode: t
= =A0 transient-mark-mode: t

Recent input:
<help-echo> <down-mous= e-1> <mouse-1> <escape> x m a=A0
k e - f r a m e &= lt;tab> - o n <tab> <return> l o c a=A0
l h o s t = L : 1 <backspace> <backspace> <backspace>=A0
: 1 2 <return> <switch-frame> <help-echo> <down-m= ouse-1>=A0
<mouse-1> <escape> x r e c u r s i v e = - e d u <backspace>=A0
i t <return> <down-mouse-1&= gt; <mouse-1> <escape> x e=A0
x i t - r e c u r s i v e - e d i t <return> <switch-frame>= ;=A0
<down-mouse-1> <mouse-1> <down-mouse-1> &l= t;mouse-1> <down-mouse-1>=A0
<mouse-1> q q q <d= own-mouse-1> <mouse-1> <backspace>=A0
<backspace> <backspace> <escape> x r e p o r t - e= =A0
m a c s - b u g <return>

Recen= t messages:
For information about GNU Emacs and the GNU system, t= ype C-h C-a.

Load-path shadows:
None found.

=
Features:
(shadow sort gnus-util mail-extr emacsbug me= ssage format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies= mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-ho= ok
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fonts= et image
fringe lisp-mode register page menu-bar rfn-eshadow timer select
=
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame ch= am
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet= lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help sim= ple
abbrev minibuffer loaddefs button faces cus-face files text-p= roperties
overlay sha1 md5 base64 format env code-pages mule custom widget
=
hashtable-print-readable backquote make-network-process dbusbind
=
dynamic-setting system-font-setting font-render-setting move-toolbar g= tk
x-toolkit x multi-tty emacs)

--bcaec554d84234c54204c5267625--