From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: lorentey@elte.hu (=?iso-8859-2?Q?L=F5rentey_K=E1roly?=) Newsgroups: gmane.emacs.devel,gmane.emacs.multi-tty Subject: Re: Emacs routinely gets stuck in single_kboard mode Date: Sun, 11 Jul 2004 05:55:01 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1089518248 13793 80.91.224.253 (11 Jul 2004 03:57:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Jul 2004 03:57:28 +0000 (UTC) Cc: multi-tty@lists.fnord.hu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jul 11 05:57:17 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BjVSn-000712-00 for ; Sun, 11 Jul 2004 05:57:17 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BjVSn-0000Fc-00 for ; Sun, 11 Jul 2004 05:57:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BjVV2-0005Ix-Or for emacs-devel@quimby.gnus.org; Sat, 10 Jul 2004 23:59:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BjVUz-0005Hs-8a for emacs-devel@gnu.org; Sat, 10 Jul 2004 23:59:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BjVUv-0005GJ-Fg for emacs-devel@gnu.org; Sat, 10 Jul 2004 23:59:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BjVUv-0005GG-CM for emacs-devel@gnu.org; Sat, 10 Jul 2004 23:59:29 -0400 Original-Received: from [157.181.1.137] (helo=mx1.elte.hu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BjVSO-00066p-8V; Sat, 10 Jul 2004 23:56:52 -0400 Original-Received: from mailbox1.caesar.elte.hu (mailbox1.caesar.elte.hu [157.181.151.157]) by mx1.elte.hu (Postfix) with ESMTP id B849DD6260; Sun, 11 Jul 2004 05:56:09 +0200 (CEST) Original-Received: from eris (line-72-212.dial.freestart.hu [213.197.72.212]) by mailbox1.caesar.elte.hu (Postfix) with ESMTP id B9037A00E326; Sun, 11 Jul 2004 05:56:06 +0200 (CEST) Original-Received: by eris (Postfix, from userid 1000) id 0E1CC47D0A; Sun, 11 Jul 2004 05:55:01 +0200 (CEST) Original-To: Richard Stallman In-Reply-To: =?iso-8859-2?Q?=28L=F5rentey=09K=E1roly's?= message of "Sun, 11 Jul 2004 03:29:49 +0200") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) X-ELTE-SpamVersion: MailScanner 4.31.6-itk1 (ELTE 1.2) SpamAssassin 2.63 ClamAV 0.73 X-ELTE-VirusStatus: clean X-ELTE-SpamCheck: no X-ELTE-SpamCheck-Details: score=2.646, required 5.9, RCVD_IN_DYNABLOCK 2.55, RCVD_IN_SORBS 0.10 X-ELTE-SpamLevel: ss X-ELTE-SpamScore: 2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25574 gmane.emacs.multi-tty:18 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25574 L=F5rentey K=E1roly writes: > Richard Stallman writes: >> Does this fix that bug? > > Yes, the patch does prevent C-g from unfreezing the other displays. Unfortunately having single_kboard enabled during a recursive edit allows me to permanently lock myself out of my Emacs session, as I have discovered by accident a few minutes ago. :-( Try this with today's CVS trunk: $ ssh -X localhost # Create an alias for the current display $ echo $DISPLAY localhost:10.0 (or whatever) $ Then, from another terminal: $ emacs -q --no-site-file M-x make-frame-on-display localhost:10.0 # A new frame is created M-x recursive-edit # The other frame is locked C-x 5 0 # Ooops After I delete the frame that has the recursive-edit running, Emacs has only a single locked frame, with no way to unlock it, unless the Emacs server was started earlier. Worse, killing the X display by closing the ssh session causes Emacs to abort with the following backtrace: #0 0x410ea1f1 in kill () from /lib/tls/libc.so.6 #1 0x080edc11 in fatal_error_signal (sig=3D17740) at src/emacs.c:395 #2 #3 0x410ea1f1 in kill () from /lib/tls/libc.so.6 #4 0x080edc6c in abort () at src/emacs.c:428 #5 0x080f07c4 in cmd_error_internal (data=3D145476189, context=3D0xbfffe= 980 "") at src/keyboard.c:1185 #6 0x080f0709 in cmd_error (data=3D0) at src/keyboard.c:1155 #7 0x08153f69 in internal_condition_case (bfun=3D0x80f0b90 , handlers=3D138382865, hfun=3D0x80f0650 ) at src/eval.c:13= 25 #8 0x080f09be in command_loop_2 () at src/keyboard.c:1278 #9 0x08153afb in internal_catch (tag=3D0, func=3D0x80f0990 , arg=3D138321937) at src/eval.c:1096 #10 0x080f08fe in command_loop () at src/keyboard.c:1245 #11 0x080f03d4 in recursive_edit_1 () at src/keyboard.c:963 #12 0x080f0511 in Frecursive_edit () at src/keyboard.c:1024 #13 0x08155daf in Ffuncall (nargs=3D1, args=3D0xbfffed44) at src/eval.c:2= 725 #14 0x081515b4 in Fcall_interactively (function=3D138376513, record_flag=3D= 17290248, keys=3D138378796) at src/callint.c:862 #15 0x080fc6fc in Fcommand_execute (cmd=3D138376513, record_flag=3D138321= 985, keys=3D0, special=3D0) at src/keyboard.c:9696 #16 0x080fca49 in Fexecute_extended_command (prefixarg=3D138321937) at sr= c/keyboard.c:9793 #17 0x08155dbf in Ffuncall (nargs=3D2, args=3D0xbffff064) at src/eval.c:2= 728 #18 0x081515b4 in Fcall_interactively (function=3D138379217, record_flag=3D= 17290242, keys=3D138378796) at src/callint.c:862 #19 0x080fc6fc in Fcommand_execute (cmd=3D138379217, record_flag=3D138321= 937, keys=3D0, special=3D0) at src/keyboard.c:9696 #20 0x080f0f4e in command_loop_1 () at src/keyboard.c:1748 #21 0x08153fbe in internal_condition_case (bfun=3D0x80f0b90 , handlers=3D138382865, hfun=3D0x80f0650 ) at src/eval.c:13= 35 #22 0x080f09be in command_loop_2 () at src/keyboard.c:1278 #23 0x08153afb in internal_catch (tag=3D0, func=3D0x80f0990 , arg=3D138321937) at src/eval.c:1096 #24 0x080f0963 in command_loop () at src/keyboard.c:1257 #25 0x080f03d4 in recursive_edit_1 () at src/keyboard.c:963 #26 0x080f0511 in Frecursive_edit () at src/keyboard.c:1024 #27 0x080eec40 in main (argc=3D1, argv=3D0xbffff8f4) at src/emacs.c:1687 --=20 K=E1roly