From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 01 04:47:02 2014 Received: (at submit) by debbugs.gnu.org; 1 Jul 2014 08:47:02 +0000 Received: from localhost ([127.0.0.1]:38728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1tiP-0004Uc-Ht for submit@debbugs.gnu.org; Tue, 01 Jul 2014 04:47:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49215) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1tiL-0004UN-Km for submit@debbugs.gnu.org; Tue, 01 Jul 2014 04:46:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1tiA-00053t-KA for submit@debbugs.gnu.org; Tue, 01 Jul 2014 04:46:52 -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]:43208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1tiA-00053p-HI for submit@debbugs.gnu.org; Tue, 01 Jul 2014 04:46:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1ti5-0006ua-Ae for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 04:46:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1ti0-000510-5g for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 04:46:41 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1thz-00050o-Pl for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 04:46:36 -0400 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id F1486216F9 for ; Tue, 1 Jul 2014 04:46:32 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 01 Jul 2014 04:46:33 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= from:to:subject:date:message-id:mime-version:content-type; s= mesmtp; bh=X1XoXkSNLu4j1dcJG0YLSHXYWOA=; b=ASC9NN4HNxW/Jtqd3X8JK 67a4vQYOVKP1CReDXC8EOPwmlWedJP4OVEkaaItRz9mEAcnai9g9zQhMvWzECzo+ YWFtR9zHxpD9sIjkJtG1m59ZWWRAyuij7BTWv68LiLZfB0WHkF3b5M95X+I8m4Kr lWL5ZUtbL55a1cv+tEqGxU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :mime-version:content-type; s=smtpout; bh=X1XoXkSNLu4j1dcJG0YLSH XYWOA=; b=nN1VuDpWFHgfLTcF9i/cUae3yBjxbZ3AyZOTB5hABt3gYhx2LPu7KT z3m179YjQCrPMlfCGCrFzGpYseU7yskyTpZkKvk1i7cnM1C9P+xB+guGuM5EgaKw HMj1PolvQaN+xV4kLo9bWY6GgNBIrwy21LDuB/dnNl9+qk8EBMEr0= X-Sasl-enc: z0S4xDRAY2JkpV+WkuN9Ful23J77bKhxD0hZe461Yfku 1404204392 Received: from Darkstar.messagingengine.com (unknown [77.21.73.239]) by mail.messagingengine.com (Postfix) with ESMTPA id 0EA76C007AD for ; Tue, 1 Jul 2014 04:46:31 -0400 (EDT) From: Joost Kremers To: bug-gnu-emacs@gnu.org Subject: 24.3; display error when mode-line-format is set to nil Date: Tue, 01 Jul 2014 10:17:03 +0200 Message-ID: <87tx71lb4q.fsf@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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.3 (----) 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.3 (----) 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 acknowledgment 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': ==================== - Start Emacs with `emacs -Q -nw' - load a (longish) text file (should be more than one screen full of text) - (set-window-margins nil 40 40) ; use values suitable for the window - (setq-local mode-line-format nil) At this point, the text is centered on the screen, except for the last line of the file (the one that is displayed where the mode line would be). Instead of having a large left margin, it is displayed with a margin of 0. This only occurs when Emacs is run without GUI, regardless of whether it's on a terminal emulator or a Linux console. It is apparently a problem with the display engine, which assumes that there is always a mode line present. Note, however, that setting `mode-line-format' to nil is mentioned in the Elisp manual (info "(elisp) Mode Line Top") and in the doc string of `mode-line-format' as a way to disable the mode line. See also the thread on gnu.emacs.help, where I brought up the issue: Thanks, Joost Kremers ==================== 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 /usr/share/emacs/24.3/etc/DEBUG. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2014-02-22 on king, modified by Debian System Description: elementary OS Luna Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_MONETARY: en_IE.UTF-8 value of $LC_NUMERIC: en_IE.UTF-8 value of $LC_TIME: en_IE.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Text 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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f e b TAB DEL DEL s r TAB e b TAB m a n TAB e b TAB t RET ESC : ( s e t - w i n d TAB m a r TAB SPC n i l SPC 4 0 SPC 4 0 ) RET ESC : ( s e t q - l o c a l SPC m o d e l - DEL DEL - l i n e - f o r m a t SPC n i l ) RET ESC x r e p o r t - e m a c s - b u g RET Recent messages: ("emacs") Loading term/xterm...done For information about GNU Emacs and the GNU system, type C-h C-a. Loading vc-git...done nil [2 times] 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 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-git time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment 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 macroexp 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) -- Joost Kremers Life has its moments From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 01 13:20:44 2014 Received: (at 17892-done) by debbugs.gnu.org; 1 Jul 2014 17:20:44 +0000 Received: from localhost ([127.0.0.1]:39571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X21jX-000287-VP for submit@debbugs.gnu.org; Tue, 01 Jul 2014 13:20:44 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:36227) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X21jS-00027r-Im for 17892-done@debbugs.gnu.org; Tue, 01 Jul 2014 13:20:40 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N8100I00MM8PI00@a-mtaout22.012.net.il> for 17892-done@debbugs.gnu.org; Tue, 01 Jul 2014 20:20:31 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N8100I6CMU6D190@a-mtaout22.012.net.il>; Tue, 01 Jul 2014 20:20:31 +0300 (IDT) Date: Tue, 01 Jul 2014 20:20:28 +0300 From: Eli Zaretskii Subject: Re: bug#17892: 24.3; display error when mode-line-format is set to nil In-reply-to: <87tx71lb4q.fsf@fastmail.fm> X-012-Sender: halo1@inter.net.il To: Joost Kremers Message-id: <83a98t3sir.fsf@gnu.org> References: <87tx71lb4q.fsf@fastmail.fm> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17892-done Cc: 17892-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 (+) > From: Joost Kremers > Date: Tue, 01 Jul 2014 10:17:03 +0200 > > - Start Emacs with `emacs -Q -nw' > - load a (longish) text file (should be more than one screen full of text) > - (set-window-margins nil 40 40) ; use values suitable for the window > - (setq-local mode-line-format nil) > > At this point, the text is centered on the screen, except for the last > line of the file (the one that is displayed where the mode line would > be). Instead of having a large left margin, it is displayed with a > margin of 0. For the record, this bug was there since Emacs 21. > This only occurs when Emacs is run without GUI, regardless of whether > it's on a terminal emulator or a Linux console. No, the bug was present in the GUI display as well, but it was almost impossible to see it on GUI frames. That's because GUI frames allocate their glyph matrices with dimensions larger than what you normally see, to be able to display the smallest frame's font, if and when it is used in some face. So the glyph row where this bug was present is almost never used for displaying normal text in the extra line vacated by the mode line whose format is nil. By contrast, text-mode frames allocate the glyph matrices of precisely the dimensions they need, so when the mode line is switched off, its glyph row is always reused for displaying the extra line of text. It seems like a rainy day today, so I fixed this bug in revision 117336 on the emacs-24 branch. From unknown Sat Jun 21 05:05:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 30 Jul 2014 11:24:04 +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