From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 07 02:51:03 2014 Received: (at submit) by debbugs.gnu.org; 7 Oct 2014 06:51:03 +0000 Received: from localhost ([127.0.0.1]:36126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbObs-0007QE-RM for submit@debbugs.gnu.org; Tue, 07 Oct 2014 02:51:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54177) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbObp-0007Q4-Ou for submit@debbugs.gnu.org; Tue, 07 Oct 2014 02:50:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbObo-00073t-Qv for submit@debbugs.gnu.org; Tue, 07 Oct 2014 02:50:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbObo-00073l-OT for submit@debbugs.gnu.org; Tue, 07 Oct 2014 02:50:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbObj-0002Np-7b for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2014 02:50:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbObZ-0006yx-Sa for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2014 02:50:51 -0400 Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:57063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbObZ-0006y4-Kf for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2014 02:50:41 -0400 Received: by mail-lb0-f173.google.com with SMTP id 10so5572130lbg.32 for ; Mon, 06 Oct 2014 23:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2jRsv6+/OXx/7ALlWHsVQ+VMoewFbXX6WnuWFfd8yKY=; b=tTZXyP1FElfy2OFUwoX6ZjH6CtPb9FzySUv4N9etFsE7AxkowCXWXWe/SPm0MiwO9J nOsoXO5qYYF36yRARx3M4IvaYtuIXP0OSETrRaXCiCTUWfcJ37UROSqVe9/ELeNE9o6C Bos4noLjUVMHGiFHI7d+BCt68QNRoDdLKtC6ieHoNeDQ4/sBBnOhFFkrqQGS75eyavws GCK6rHIhcsa37+AIMaGmGxIOc1f+WLOp5pui/9ad0aspW8aTQuhnqxkxFL88p2qftMf3 uPHhwam9sXMHzF+l0bIRZGCD1/R0LuamEZ20ArY9s1n796uK+QloEEBvVyiJBzi6DB7Y 7VPQ== MIME-Version: 1.0 X-Received: by 10.112.155.230 with SMTP id vz6mr1703165lbb.99.1412664639721; Mon, 06 Oct 2014 23:50:39 -0700 (PDT) Received: by 10.114.63.226 with HTTP; Mon, 6 Oct 2014 23:50:39 -0700 (PDT) Date: Tue, 7 Oct 2014 08:50:39 +0200 Message-ID: Subject: 25.0.50; Closing TTY menus on MS-Windows From: Dani Moncayo To: bug-gnu-emacs Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Recipe: emacs -Q -nw F10 C-g C-g should close/exit the TTY menu, but it doesn't. If I start to type something, the TTY menu dissapears, but the cursor is not visible anymore. In GNU Emacs 25.0.50.1 (i686-pc-mingw32) of 2014-10-06 on LEG570 Repository revision: 118063 monnier@iro.umontreal.ca-20141006174756-y7ha091r491l1ijw Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB Important settings: value of $LANG: ESN locale-coding-system: cp1252 -- Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 07 11:46:24 2014 Received: (at 18649) by debbugs.gnu.org; 7 Oct 2014 15:46:24 +0000 Received: from localhost ([127.0.0.1]:36826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbWxz-00053H-Qc for submit@debbugs.gnu.org; Tue, 07 Oct 2014 11:46:24 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:39540) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbWxx-000538-2V for 18649@debbugs.gnu.org; Tue, 07 Oct 2014 11:46:22 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0ND200800ZSVXV00@a-mtaout21.012.net.il> for 18649@debbugs.gnu.org; Tue, 07 Oct 2014 18:46:18 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ND2008Q9ZT6VY40@a-mtaout21.012.net.il>; Tue, 07 Oct 2014 18:46:18 +0300 (IDT) Date: Tue, 07 Oct 2014 18:46:29 +0300 From: Eli Zaretskii Subject: Re: bug#18649: 25.0.50; Closing TTY menus on MS-Windows In-reply-to: X-012-Sender: halo1@inter.net.il To: Dani Moncayo Message-id: <83oatnlw6i.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18649 Cc: 18649@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Tue, 7 Oct 2014 08:50:39 +0200 > From: Dani Moncayo > > Recipe: > emacs -Q -nw > F10 C-g > > C-g should close/exit the TTY menu, but it doesn't. > > If I start to type something, the TTY menu dissapears, but the cursor is > not visible anymore. There's nothing wrong with TTY menus: ESC ESC ESC still pops the menu down, as does clicking the mouse somewhere outside the menu. The problem is with C-g: it somehow shortcuts too much, and bypasses the code that was supposed to be seen by the menu displaying functions. For example, try "C-h k C-g": all you will see is "Quit" in the echo area, but no help. IOW, we throw to top level too early or too radically. I don't see this on GNU/Linux, probably again because the low-level details of keyboard input are different. The problem started somewhere between trunk revisions 117575 and 117589. I have trunk binaries from these two revisions, and the former still works correctly. Unfortunately, this range of revisions includes the jumbo changeset related to pixel-wise resizing, which at the very least makes it easy to drown in the flood and miss the important parts. If someone has time to bisect more accurately, or debug this, or even give an idea where to look, you are welcome. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 07 15:58:53 2014 Received: (at 18649) by debbugs.gnu.org; 7 Oct 2014 19:58:53 +0000 Received: from localhost ([127.0.0.1]:36917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbauK-0002n5-Mc for submit@debbugs.gnu.org; Tue, 07 Oct 2014 15:58:53 -0400 Received: from mtaout25.012.net.il ([80.179.55.181]:52717) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbauE-0002ms-Qm for 18649@debbugs.gnu.org; Tue, 07 Oct 2014 15:58:50 -0400 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0ND300100AQUCQ00@mtaout25.012.net.il> for 18649@debbugs.gnu.org; Tue, 07 Oct 2014 22:53:57 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ND3001JKB9XL510@mtaout25.012.net.il>; Tue, 07 Oct 2014 22:53:57 +0300 (IDT) Date: Tue, 07 Oct 2014 22:58:57 +0300 From: Eli Zaretskii Subject: Re: bug#18649: 25.0.50; Closing TTY menus on MS-Windows In-reply-to: <83oatnlw6i.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: martin rudalics Message-id: <8338azlkhq.fsf@gnu.org> References: <83oatnlw6i.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18649 Cc: 18649@debbugs.gnu.org, dmoncayo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Tue, 07 Oct 2014 18:46:29 +0300 > From: Eli Zaretskii > Cc: 18649@debbugs.gnu.org > > The problem started somewhere between trunk revisions 117575 and > 117589. I have trunk binaries from these two revisions, and the > former still works correctly. Unfortunately, this range of revisions > includes the jumbo changeset related to pixel-wise resizing, which at > the very least makes it easy to drown in the flood and miss the > important parts. Update: the problem is definitely caused by r117587; reverting it fixes the problem. I reviewed the diffs, more than once, and I cannot see what could be the reason. Martin, your help will be appreciated. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 08 05:32:49 2014 Received: (at 18649) by debbugs.gnu.org; 8 Oct 2014 09:32:49 +0000 Received: from localhost ([127.0.0.1]:37384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xbnc0-0000DJ-Si for submit@debbugs.gnu.org; Wed, 08 Oct 2014 05:32:49 -0400 Received: from mout.gmx.net ([212.227.15.19]:49738) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xbnbx-0000Cz-Ma for 18649@debbugs.gnu.org; Wed, 08 Oct 2014 05:32:46 -0400 Received: from [194.118.137.30] ([194.118.137.30]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MDhba-1XQJ8k1j6U-00H9ft; Wed, 08 Oct 2014 11:32:36 +0200 Message-ID: <543504AF.9050300@gmx.at> Date: Wed, 08 Oct 2014 11:32:31 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii , Dani Moncayo Subject: Re: bug#18649: 25.0.50; Closing TTY menus on MS-Windows References: <83oatnlw6i.fsf@gnu.org> In-Reply-To: <83oatnlw6i.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:/d7MWgHFqB2UmtgFkXKfg9O/qdnKGiNiRkHSOcrulsSwqUO+UW6 KXRZTm831PsWbQK55CzzgT+Q5QB1RIXUn+CWAJPu22ZMcTKtWN4hMJkVXMIfTSKBpSYNTlX E4dp7Rq3Z6dPC+9/kbEOZhAcTRP7r+raTrLx6wepXheBSxqerHozqqsnRKY4aDuZpKYsyht amFCnF3/Y000FeXf7TZuQ== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18649 Cc: 18649@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > There's nothing wrong with TTY menus: ESC ESC ESC still pops the menu > down, as does clicking the mouse somewhere outside the menu. As does F10. > The problem is with C-g: it somehow shortcuts too much, and bypasses > the code that was supposed to be seen by the menu displaying > functions. For example, try "C-h k C-g": all you will see is "Quit" > in the echo area, but no help. Confirmed. > IOW, we throw to top level too early > or too radically. Do you see any way to debug this? > I don't see this on GNU/Linux, probably again because the low-level > details of keyboard input are different. Confirmed with all builds I have there. > The problem started somewhere between trunk revisions 117575 and > 117589. I have trunk binaries from these two revisions, and the > former still works correctly. Unfortunately, this range of revisions > includes the jumbo changeset related to pixel-wise resizing, which at > the very least makes it easy to drown in the flood and miss the > important parts. > > If someone has time to bisect more accurately, or debug this, or even > give an idea where to look, you are welcome. > Update: the problem is definitely caused by r117587; reverting it > fixes the problem. I reviewed the diffs, more than once, and I cannot > see what could be the reason. Martin, your help will be appreciated. I'm just as lost as you are. I tried to partially revert changes that could have affected this on w32 but with no luck. BTW: Is there a way to turn `blink-cursor-mode' off on a TTY? martin From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 08 06:29:44 2014 Received: (at 18649) by debbugs.gnu.org; 8 Oct 2014 10:29:45 +0000 Received: from localhost ([127.0.0.1]:37437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XboV6-0001iW-4J for submit@debbugs.gnu.org; Wed, 08 Oct 2014 06:29:44 -0400 Received: from mtaout28.012.net.il ([80.179.55.184]:56994) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XboV3-0001iN-O3 for 18649@debbugs.gnu.org; Wed, 08 Oct 2014 06:29:42 -0400 Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0ND400700FFB0Y00@mtaout28.012.net.il> for 18649@debbugs.gnu.org; Wed, 08 Oct 2014 13:28:11 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ND400N7LFQZDZ90@mtaout28.012.net.il>; Wed, 08 Oct 2014 13:28:11 +0300 (IDT) Date: Wed, 08 Oct 2014 13:29:52 +0300 From: Eli Zaretskii Subject: Re: bug#18649: 25.0.50; Closing TTY menus on MS-Windows In-reply-to: <543504AF.9050300@gmx.at> X-012-Sender: halo1@inter.net.il To: martin rudalics Message-id: <83lhoqkg67.fsf@gnu.org> References: <83oatnlw6i.fsf@gnu.org> <543504AF.9050300@gmx.at> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18649 Cc: 18649@debbugs.gnu.org, dmoncayo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Wed, 08 Oct 2014 11:32:31 +0200 > From: martin rudalics > CC: 18649@debbugs.gnu.org > > > IOW, we throw to top level too early > > or too radically. > > Do you see any way to debug this? If no other idea presents itself, the hard way: by stepping through the code in keyboard.c that processes keyboard input. > > Update: the problem is definitely caused by r117587; reverting it > > fixes the problem. I reviewed the diffs, more than once, and I cannot > > see what could be the reason. Martin, your help will be appreciated. > > I'm just as lost as you are. I tried to partially revert changes that > could have affected this on w32 but with no luck. Sigh. I guess that commit just exposed some other bug, then. Thanks for trying. > BTW: Is there a way to turn `blink-cursor-mode' off on a TTY? No, it blinks "in hardware" (i.e., the terminal software does it). And there's no reason to disable it, because it should never do anything on a TTY. Or do you have evidence to the contrary? From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 08 08:49:32 2014 Received: (at 18649-done) by debbugs.gnu.org; 8 Oct 2014 12:49:32 +0000 Received: from localhost ([127.0.0.1]:37523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbqgN-0006Pt-BI for submit@debbugs.gnu.org; Wed, 08 Oct 2014 08:49:32 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:41776) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbqgH-0006Pg-Sc for 18649-done@debbugs.gnu.org; Wed, 08 Oct 2014 08:49:27 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0ND400900LE2PX00@mtaout24.012.net.il> for 18649-done@debbugs.gnu.org; Wed, 08 Oct 2014 15:43:16 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ND4006P8M04IR50@mtaout24.012.net.il>; Wed, 08 Oct 2014 15:43:16 +0300 (IDT) Date: Wed, 08 Oct 2014 15:49:37 +0300 From: Eli Zaretskii Subject: Re: bug#18649: 25.0.50; Closing TTY menus on MS-Windows In-reply-to: <83lhoqkg67.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: rudalics@gmx.at Message-id: <83fveyk9pa.fsf@gnu.org> References: <83oatnlw6i.fsf@gnu.org> <543504AF.9050300@gmx.at> <83lhoqkg67.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18649-done Cc: 18649-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Wed, 08 Oct 2014 13:29:52 +0300 > From: Eli Zaretskii > Cc: 18649@debbugs.gnu.org > > > Date: Wed, 08 Oct 2014 11:32:31 +0200 > > From: martin rudalics > > CC: 18649@debbugs.gnu.org > > > > > IOW, we throw to top level too early > > > or too radically. > > > > Do you see any way to debug this? > > If no other idea presents itself, the hard way: by stepping through > the code in keyboard.c that processes keyboard input. There _is_ a better way: set a breakpoint in process_quit_flag (which is called as part of QUIT), and see who called it. Using this method, I was able to catch the villain in no time, see below. > > > Update: the problem is definitely caused by r117587; reverting it > > > fixes the problem. I reviewed the diffs, more than once, and I cannot > > > see what could be the reason. Martin, your help will be appreciated. > > > > I'm just as lost as you are. I tried to partially revert changes that > > could have affected this on w32 but with no luck. > > Sigh. I guess that commit just exposed some other bug, then. It wasn't an old bug, it was indeed caused by the pixel-wise changes. Specifically, the fact that as part of the call to change_frame_size, we can now call Lisp (in frame_windows_min_size). The other part of the puzzle is that w32_console_read_socket calls change_frame_size unconditionally on every event it reads, because Windows doesn't tell us about resizes of the console window. So what happened was that we read the C-g key, called kbd_buffer_store_event for it, which set Vquit_flag, and then we called change_frame_size, which did QUIT when frame_windows_min_size called Lisp. I fixed that by passing a non-zero DELAY argument to change_frame_size, so that it delays the actual resize to the next opportunity, like the next redisplay cycle. I'm closing this bug. For the record, here's the backtrace I obtained from the breakpoint set in process_quit_flag: #0 process_quit_flag () at eval.c:1440 #1 0x0118e71f in Ffuncall (nargs=4, args=0x82e780) at eval.c:2659 #2 0x0118e5bd in call3 (fn=22541890, arg1=22499637, arg2=22425250, arg3=22425250) at eval.c:2592 #3 0x01010acd in frame_windows_min_size (frame=22499637, horizontal=22425250, pixelwise=22425250) at frame.c:333 #4 0x01010cce in adjust_frame_size (f=0x1575130 , new_width=80, new_height=56, inhibit=5, pretend=false) at frame.c:409 #5 0x0100e9a2 in change_frame_size_1 (f=0x1575130 , new_width=80, new_height=56, pretend=false, delay=false, safe=false, pixelwise=false) at dispnew.c:5531 #6 0x0100ea00 in change_frame_size (f=0x1575130 , new_width=80, new_height=56, pretend=false, delay=false, safe=false, pixelwise=false) at dispnew.c:5562 #7 0x0123c934 in maybe_generate_resize_event () at w32inevt.c:605 #8 0x0123cc99 in w32_console_read_socket ( terminal=0x18fd358 , hold_quit=0x82e9ac) at w32inevt.c:795 #9 0x0110a875 in gobble_input () at keyboard.c:6911 #10 0x01104e33 in kbd_buffer_get_event (kbp=0x82eac4, used_mouse_menu=0x82ed93, end_time=0x0) at keyboard.c:3957 #11 0x011011f4 in read_event_from_main_queue (end_time=0x0, local_getcjmp=0x82ebec, used_mouse_menu=0x82ed93) at keyboard.c:2254 #12 0x01101430 in read_decoded_event_from_main_queue (end_time=0x0, local_getcjmp=0x82ebec, prev_event=22425218, used_mouse_menu=0x82ed93) at keyboard.c:2319 #13 0x01102886 in read_char (commandflag=0, map=24485206, prev_event=22425218, used_mouse_menu=0x82ed93, end_time=0x0) at keyboard.c:2916 #14 0x0110f4cb in read_key_sequence (keybuf=0x82eeb4, bufsize=30, prompt=19897305, dont_downcase_last=false, can_return_switch_frame=false, fix_current_buffer=false, prevent_redisplay=false) at keyboard.c:9171 #15 0x01110bf6 in read_key_sequence_vs (prompt=19897305, continue_echo=22425218, dont_downcase_last=22425218, can_return_switch_frame=22425218, cmd_loop=22425218, allow_string=true) at keyboard.c:9865 #16 0x01110cad in Fread_key_sequence (prompt=19897305, continue_echo=22425218, dont_downcase_last=22425218, can_return_switch_frame=22425218, cmd_loop=22425218) at keyboard.c:9938 #17 0x0118eaf4 in Ffuncall (nargs=2, args=0x82f014) at eval.c:2739 #18 0x011d05f9 in exec_byte_code (bytestr=19897113, vector=19897141, maxdepth=16, args_template=22425218, nargs=0, args=0x0) at bytecode.c:920 #19 0x011cfa56 in Fbyte_code (bytestr=19897113, vector=19897141, maxdepth=16) at bytecode.c:486 #20 0x0118d70c in eval_sub (form=19897102) at eval.c:2184 #21 0x0118cf0e in Feval (form=19897102, lexical=22425218) at eval.c:1993 #22 0x01186634 in Fcall_interactively (function=24528330, record_flag=22425218, keys=22450893) at callint.c:379 #23 0x0118ea75 in Ffuncall (nargs=4, args=0x82f56c) at eval.c:2730 #24 0x011d05f9 in exec_byte_code (bytestr=19853809, vector=19853829, maxdepth=52, args_template=4100, nargs=1, args=0x82f8a0) at bytecode.c:920 #25 0x0118f24d in funcall_lambda (fun=19853789, nargs=1, arg_vector=0x82f89c) at eval.c:2890 #26 0x0118ec5a in Ffuncall (nargs=2, args=0x82f898) at eval.c:2772 #27 0x0118e55d in call1 (fn=22471274, arg1=24528330) at eval.c:2576 #28 0x010ffab9 in command_loop_1 () at keyboard.c:1569 #29 0x0118b976 in internal_condition_case (bfun=0x10ff458 , handlers=22478818, hfun=0x10fecbd ) at eval.c:1344 #30 0x010ff110 in command_loop_2 (ignore=22425218) at keyboard.c:1197 #31 0x0118af11 in internal_catch (tag=22476146, func=0x10ff0ec , arg=22425218) at eval.c:1105 #32 0x010ff0c6 in command_loop () at keyboard.c:1176 #33 0x010fe85a in recursive_edit_1 () at keyboard.c:786 #34 0x010fea16 in Frecursive_edit () at keyboard.c:857 #35 0x010fcafd in main (argc=3, argv=0xa42808) at emacs.c:1643 Lisp Backtrace: "read-key-sequence" (0x82f018) "byte-code" (0x82f298) "call-interactively" (0x82f570) "command-execute" (0x82f89c) From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 08 09:13:15 2014 Received: (at 18649) by debbugs.gnu.org; 8 Oct 2014 13:13:16 +0000 Received: from localhost ([127.0.0.1]:37546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xbr3L-00070V-1f for submit@debbugs.gnu.org; Wed, 08 Oct 2014 09:13:15 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:50669) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xbr3J-00070N-1F for 18649@debbugs.gnu.org; Wed, 08 Oct 2014 09:13:13 -0400 Received: by mail-lb0-f179.google.com with SMTP id l4so8096803lbv.10 for <18649@debbugs.gnu.org>; Wed, 08 Oct 2014 06:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rcZhgrEu9aJC+UPILhcqSS0ZZ7bG6nKVeYgB5aJnLP4=; b=WMDXpEkz6Z/OFPUkZ0MfGixyc9+RWbKKkYRRsifG/zAMw/WXgVO0sVpXMDv09h0S4A AC8CVayGkosqesq3YO0RPEYecD4b+oh175iyAwh7hrSOmd4BDA/7sh3BI/Vqicm+w5D9 udoOPWa+jFNsWC3E2IUzAPAJQ5PAMsz9Ii3k4BpSEuFffPc3gAx0fEWJuh6ONR6s0nG0 yfu/mOiNzgLwDfb1gjI8b2NAZv7QqFScnvaX8nPPB5R3xxniADPTOnhZ1wXoEPA6E05c i9BDJIviB2BO5QCj7qnzg1K+Enlw2xcSZccWtOIgWG3HSw8kzp2LJQ6yzkdbLddGlwaS bcCQ== MIME-Version: 1.0 X-Received: by 10.112.218.98 with SMTP id pf2mr10955766lbc.33.1412773992182; Wed, 08 Oct 2014 06:13:12 -0700 (PDT) Received: by 10.114.63.226 with HTTP; Wed, 8 Oct 2014 06:13:12 -0700 (PDT) In-Reply-To: <83fveyk9pa.fsf@gnu.org> References: <83oatnlw6i.fsf@gnu.org> <543504AF.9050300@gmx.at> <83lhoqkg67.fsf@gnu.org> <83fveyk9pa.fsf@gnu.org> Date: Wed, 8 Oct 2014 15:13:12 +0200 Message-ID: Subject: Re: bug#18649: 25.0.50; Closing TTY menus on MS-Windows From: Dani Moncayo To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18649 Cc: 18649@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Wow! Great job. Thank you! -- Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 08 09:35:46 2014 Received: (at 18649-done) by debbugs.gnu.org; 8 Oct 2014 13:35:46 +0000 Received: from localhost ([127.0.0.1]:37563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbrP8-0007XM-Af for submit@debbugs.gnu.org; Wed, 08 Oct 2014 09:35:46 -0400 Received: from mout.gmx.net ([212.227.17.20]:64643) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbrP4-0007XC-AT for 18649-done@debbugs.gnu.org; Wed, 08 Oct 2014 09:35:43 -0400 Received: from [91.113.3.198] ([91.113.3.198]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LhSfM-1XxwbY3jw8-00mbys; Wed, 08 Oct 2014 15:35:37 +0200 Message-ID: <54353DA3.8020202@gmx.at> Date: Wed, 08 Oct 2014 15:35:31 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#18649: 25.0.50; Closing TTY menus on MS-Windows References: <83oatnlw6i.fsf@gnu.org> <543504AF.9050300@gmx.at> <83lhoqkg67.fsf@gnu.org> <83fveyk9pa.fsf@gnu.org> In-Reply-To: <83fveyk9pa.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:ffp4CKDIQNrwVvGpw2PPFJq5oz9x+4giqZqhj5TyCD6/dxK2abU aHAoN0PIMGjJKMI4/o8cDvaBW7zVHy2AO+HwEBbgtuu6RGAjatULo5W9MZ5r2P+XYFcrGsA zL0Y5HShsp7Rl4lwkORfPEsIRiAO9IBRhJrcRQEA+VuSzXcE+7KcQBL3Tf4Wkmcp5FYVMCG Ha1XHTvH1qJwEAQWjWEVA== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18649-done Cc: 18649-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) >> BTW: Is there a way to turn `blink-cursor-mode' off on a TTY? > > No, it blinks "in hardware" (i.e., the terminal software does it). > And there's no reason to disable it, because it should never do > anything on a TTY. Or do you have evidence to the contrary? No. I just wondered why the cursor disappeared (as Dani also observed) when doing C-g with an open menu. > It wasn't an old bug, it was indeed caused by the pixel-wise changes. > Specifically, the fact that as part of the call to change_frame_size, > we can now call Lisp (in frame_windows_min_size). But this is not new, change_frame_size called resize_frame_windows, which called Lisp before. > The other part of > the puzzle is that w32_console_read_socket calls change_frame_size > unconditionally on every event it reads, because Windows doesn't tell > us about resizes of the console window. > > So what happened was that we read the C-g key, called > kbd_buffer_store_event for it, which set Vquit_flag, and then we > called change_frame_size, which did QUIT when frame_windows_min_size > called Lisp. Ah, I seem to understand. resize_frame_windows never gets called here because the size of the root window apparently doesn't change. OTOH frame_windows_min_size gets called unconditionally. So it's merely coincidental that this problem didn't hit us before. BTW, I call frame_windows_min_size unconditionally in order to detect the case where (1) the frame size itself should be conceptually left unchanged, but (2) something _within_ the frame changes (like adding a tool or scroll bar) which requires a larger frame size to keep all windows of the frame visible. All this is unnecessary on TTYs. > I fixed that by passing a non-zero DELAY argument to > change_frame_size, so that it delays the actual resize to the next > opportunity, like the next redisplay cycle. Works here. > I'm closing this bug. Many thanks, martin From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 08 09:57:18 2014 Received: (at 18649) by debbugs.gnu.org; 8 Oct 2014 13:57:18 +0000 Received: from localhost ([127.0.0.1]:38132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xbrjx-00089G-J2 for submit@debbugs.gnu.org; Wed, 08 Oct 2014 09:57:18 -0400 Received: from mtaout26.012.net.il ([80.179.55.182]:49982) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xbrju-00089A-6H for 18649@debbugs.gnu.org; Wed, 08 Oct 2014 09:57:15 -0400 Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0ND400200PB20I00@mtaout26.012.net.il> for 18649@debbugs.gnu.org; Wed, 08 Oct 2014 16:55:24 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ND400GEWPCC0FA0@mtaout26.012.net.il>; Wed, 08 Oct 2014 16:55:24 +0300 (IDT) Date: Wed, 08 Oct 2014 16:57:26 +0300 From: Eli Zaretskii Subject: Re: bug#18649: 25.0.50; Closing TTY menus on MS-Windows In-reply-to: <54353DA3.8020202@gmx.at> X-012-Sender: halo1@inter.net.il To: martin rudalics Message-id: <8361fuk6k9.fsf@gnu.org> References: <83oatnlw6i.fsf@gnu.org> <543504AF.9050300@gmx.at> <83lhoqkg67.fsf@gnu.org> <83fveyk9pa.fsf@gnu.org> <54353DA3.8020202@gmx.at> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18649 Cc: 18649@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Wed, 08 Oct 2014 15:35:31 +0200 > From: martin rudalics > CC: 18649-done@debbugs.gnu.org > > >> BTW: Is there a way to turn `blink-cursor-mode' off on a TTY? > > > > No, it blinks "in hardware" (i.e., the terminal software does it). > > And there's no reason to disable it, because it should never do > > anything on a TTY. Or do you have evidence to the contrary? > > No. I just wondered why the cursor disappeared (as Dani also observed) > when doing C-g with an open menu. Because the TTY menu code hides the cursor, and since C-g bypassed that code, the part of it that restores the cursor after popping down the menu didn't execute. It has nothing to do with blink-cursor-mode. > Ah, I seem to understand. resize_frame_windows never gets called here > because the size of the root window apparently doesn't change. OTOH > frame_windows_min_size gets called unconditionally. So it's merely > coincidental that this problem didn't hit us before. Yes. In general, calling change_frame_size from the input handler was simply wrong. > BTW, I call frame_windows_min_size unconditionally in order to detect > the case where > > (1) the frame size itself should be conceptually left unchanged, but > > (2) something _within_ the frame changes (like adding a tool or scroll > bar) which requires a larger frame size to keep all windows of the > frame visible. > > All this is unnecessary on TTYs. Maybe, but who knows what happens with all the latest hot stuff, like tmux etc.? From unknown Mon Jun 23 14:59:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 06 Nov 2014 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator