unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs (nowindows) get confused about line display
Date: Sat, 21 May 2016 09:42:07 +0300	[thread overview]
Message-ID: <83zirj7w00.fsf@gnu.org> (raw)
In-Reply-To: <CAOj2CQQ+Bht5Mwz3YdgauYubwP1Vh-6r=3THmcX=sEggwUsxKw@mail.gmail.com> (message from John Mastro on Fri, 20 May 2016 18:19:00 -0700)

> From: John Mastro <john.b.mastro@gmail.com>
> Date: Fri, 20 May 2016 18:19:00 -0700
> Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
> 
> David M. Karr <davidmichaelkarr@gmail.com> wrote:
> > Actually, narrowing it down didn't take very long, but I'd still like to
> > understand this better.
> >
> > The 2-3rd line of my .emacs file has this:
> > --------------------------
> > (set-frame-position (selected-frame) 0 0)
> > (set-frame-height (selected-frame) 60)
> > ----------------
> >
> > This is obviously not relevant in a emacs-nw situation, but I copied this
> > from my "home" .emacs file.  Why would this cause the symptom that I'm
> > seeing?
> >
> > It's easy enough to wrap this with a "(display-graphic-p)" call, but I'd
> > like to understand why this is happening.
> 
> It looks like the problem is with the call to `set-frame-height'
> specifically. `set-frame-position' has no effect on a tty frame.
> 
> Further, (set-frame-height (selected-frame) (frame-height)) didn't cause
> any problems in my experiments; only when I set a wrong frame height did
> I get Emacs into a bad state. So it's not that `set-frame-height'
> inherently breaks things on a tty.
> 
> However, I don't know whether there are scenarios where it makes sense
> to call `set-frame-height' on a tty frame, or if this is just one of
> those "well don't do that" situations.

I suggest to upgrade to a later version of Emacs, but in general, my
advice is not to use set-frame-height in TTY sessions.  That function
does produce a non-trivial effect on a TTY, but the effect is only
useful for debugging Emacs, not for normal usage.



  reply	other threads:[~2016-05-21  6:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-20 21:28 Emacs (nowindows) get confused about line display David M. Karr
2016-05-20 23:28 ` Emanuel Berg
2016-05-21  0:45   ` David M. Karr
2016-05-21  0:51     ` David M. Karr
2016-05-21  1:19       ` John Mastro
2016-05-21  6:42         ` Eli Zaretskii [this message]
     [not found]   ` <mailman.9.1463791518.1216.help-gnu-emacs@gnu.org>
2016-05-21  2:36     ` Emanuel Berg

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83zirj7w00.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).