From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: Weird behavior and crash with X and TTY frame Date: Sun, 07 Apr 2013 19:18:44 +0400 Message-ID: <51618E54.7040102@yandex.ru> References: <51601D0E.4050507@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1365347945 18707 80.91.229.3 (7 Apr 2013 15:19:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Apr 2013 15:19:05 +0000 (UTC) Cc: Emacs development discussions To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 07 17:19:08 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UOrN5-0008Au-CN for ged-emacs-devel@m.gmane.org; Sun, 07 Apr 2013 17:19:07 +0200 Original-Received: from localhost ([::1]:42051 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOrN4-0004iT-RP for ged-emacs-devel@m.gmane.org; Sun, 07 Apr 2013 11:19:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOrMx-0004gT-PM for emacs-devel@gnu.org; Sun, 07 Apr 2013 11:19:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOrMq-0007rt-Un for emacs-devel@gnu.org; Sun, 07 Apr 2013 11:18:59 -0400 Original-Received: from forward2.mail.yandex.net ([77.88.46.7]:40902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOrMq-0007rN-GM for emacs-devel@gnu.org; Sun, 07 Apr 2013 11:18:52 -0400 Original-Received: from smtp4.mail.yandex.net (smtp4.mail.yandex.net [77.88.46.104]) by forward2.mail.yandex.net (Yandex) with ESMTP id 441FD12A105C; Sun, 7 Apr 2013 19:18:45 +0400 (MSK) Original-Received: from smtp4.mail.yandex.net (localhost [127.0.0.1]) by smtp4.mail.yandex.net (Yandex) with ESMTP id 14D345C0346; Sun, 7 Apr 2013 19:18:45 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp4.mail.yandex.net (nwsmtp/Yandex) with ESMTP id noVWwR6Huv-IiF4NdsG; Sun, 7 Apr 2013 19:18:44 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1365347925; bh=tLGfhBYxZv5Sq4js5XklVHR61TxHFfetOLaKomSLpUI=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=O62LBDuSLHIiB9SylBY4czG4A635ECtOTtMRXfNF/XDr9ojXCtOZgEaCLuf5XQEs+ MMbbqaOhbOvaWQ/roRdVW/Df6MmKIyrIMUc0ZjkHtOvh4X2FjZ68SA8VGtg1CtQUN1 1Nn1eYJMwt5b+qyq08uAuDdRL+VSRcAl5EZxjMG8= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 77.88.46.7 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158751 Archived-At: On 04/07/2013 04:06 PM, Jan Dj=E4rv wrote: > This is something Emacs can't handle. It is because how the lisp and e= vent loop interracts. > > When you do (x-popup-dialog t '("Test" ("yes" . 1))), a Lisp return val= ue is expected back to the Lisp code. > So Emacs does not execute any more Lisp, until the dialog is popped dow= n. > The popup is shown by a loop that just processes X events (x_menu_wait_= for_event). > When you switch frame and do C-g C-g, the "normal" stuff does not happe= n, because Lisp is not executed. > > This would be solvable if we had an independent Lisp loop per terminal,= but it is not so. > There is only one Lisp loop, shared by all frames/terminals, and if one= frame/terminal suspends the loop, > it is suspended for all frames/terminals. Yes, but the same trick with two X frames doesn't crash at least; first C= -g on X frame 2 cancels popup raised on frame 1 and resumes normal event proces= sing loop. Dmitry