all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Joost Kremers <joostkremers@fastmail.fm>
Cc: 17892-done@debbugs.gnu.org
Subject: bug#17892: 24.3; display error when mode-line-format is set to nil
Date: Tue, 01 Jul 2014 20:20:28 +0300	[thread overview]
Message-ID: <83a98t3sir.fsf@gnu.org> (raw)
In-Reply-To: <87tx71lb4q.fsf@fastmail.fm>

> From: Joost Kremers <joostkremers@fastmail.fm>
> 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.





      reply	other threads:[~2014-07-01 17:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-01  8:17 bug#17892: 24.3; display error when mode-line-format is set to nil Joost Kremers
2014-07-01 17:20 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a98t3sir.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=17892-done@debbugs.gnu.org \
    --cc=joostkremers@fastmail.fm \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.