From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17386: 24.3.90; emacs_abort in cmcheckmagic Date: Sat, 03 May 2014 10:18:50 +0300 Message-ID: <838uqj1g9x.fsf@gnu.org> References: <874n18ydh9.fsf@geodiff-mac3.ulb.ac.be> <8361loljv0.fsf@gnu.org> <536353DA.7030901@yahoo.fr> <8338gslfpj.fsf@gnu.org> <87oazgwm30.fsf@geodiff-mac3.ulb.ac.be> <831twcl6vl.fsf@gnu.org> <87a9b0w6oy.fsf@geodiff-mac3.ulb.ac.be> <83k3a4191p.fsf@gnu.org> <5363C117.6070606@yahoo.fr> <83ha5817fw.fsf@gnu.org> <877g63e6fw.fsf@yahoo.fr> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1399101564 30586 80.91.229.3 (3 May 2014 07:19:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 May 2014 07:19:24 +0000 (UTC) Cc: 17386@debbugs.gnu.org To: Nicolas Richard Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 03 09:19:16 2014 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 1WgUE8-0004nG-HB for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 May 2014 09:19:16 +0200 Original-Received: from localhost ([::1]:47791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgUE7-0000Em-VI for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 May 2014 03:19:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgUE0-0000Ef-EA for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 03:19:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WgUDv-00055I-BW for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 03:19:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgUDv-00055C-8M for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 03:19:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WgUDu-0006Lo-EJ for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 03:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 May 2014 07:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17386 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17386-submit@debbugs.gnu.org id=B17386.139910152224371 (code B ref 17386); Sat, 03 May 2014 07:19:02 +0000 Original-Received: (at 17386) by debbugs.gnu.org; 3 May 2014 07:18:42 +0000 Original-Received: from localhost ([127.0.0.1]:49067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgUDZ-0006L0-Hh for submit@debbugs.gnu.org; Sat, 03 May 2014 03:18:41 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:46174) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgUDW-0006Kh-MY for 17386@debbugs.gnu.org; Sat, 03 May 2014 03:18:39 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N4Z00700LBNXH00@a-mtaout22.012.net.il> for 17386@debbugs.gnu.org; Sat, 03 May 2014 10:18:32 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N4Z007LELMWI0A0@a-mtaout22.012.net.il>; Sat, 03 May 2014 10:18:32 +0300 (IDT) In-reply-to: <877g63e6fw.fsf@yahoo.fr> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:88574 Archived-At: > From: Nicolas Richard > Cc: Nicolas Richard , 17386@debbugs.gnu.org > Date: Sat, 03 May 2014 08:56:57 +0200 > > Eli Zaretskii writes: > >> Perhaps it was counting lines in the frame that lived in tmux-over-gdb > >> (tmux uses one line). Would that make sense ? > > > > Sorry, I have no idea what tmux-over-gdb can do to that. I'd be > > surprised if it changed Emacs's idea of screen dimensions, though. > > tmux shows some sort of status line, which means that the client > (emacs-in-gdb in my case) sees one line less. > > I tried this experiment in a maximized gnome-terminal on my laptop: > $ gdb emacs > (gdb) r -nw -Q > hit: C-z > (gdb) p FrameRows(current_tty) > $1 = 43 > > now with tmux, still in a maximized gnome-terminal : > $ tmux # this will show a "status line" from tmux in gnome-terminal > $ gdb emacs > (gdb) r -nw -Q > hit: C-z > (gdb) p FrameRows(current_tty) > $1 = 42 > > So it does change the screen dimensions. OK, so evidently tmux reduces the screen dimensions _before_ Emacs starts, in which case yes, the 1-off difference is probably due to that factor, and shouldn't be causing any trouble. So perhaps the problem is that Emacs takes the screen dimensions only at startup and when it gets the SIGWINCH signal, and tmux somehow makes these changes without sending SIGWINCH?