all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: Michael Welsh Duggan <mwd@md5i.com>, 19619@debbugs.gnu.org
Subject: bug#19619: 25.0.50; Fullheight frames in daemonized emacsen are wrong width
Date: Mon, 09 Feb 2015 19:41:54 +0100	[thread overview]
Message-ID: <54D8FF72.1040107@gmx.at> (raw)
In-Reply-To: <874mqv1d9p.fsf@gmx.net>

 > It does not happen with my latest build from the emacs-24 branch.  (That
 > does not use a toolkit scroll bar, unlike my builds from master, though I
 > guess that isn't relevant here.)

I think so too.  The problem is the toolbar which gets resized _after_
the frame was made fullheight and before my last patch this (i.e., being
fullheight) inhibited changing the frame's width as well.  For example,
if you had set the text width to 80 columns and enlarged the tool bar by
say 4 columns that would have consumed 4 columns from the text and not
enlarged the combined width of frame plus toolbar by 4 columns.  That's
what Michael detected and what I tried to fix lately.

In fact, the problem was introduced by an earlier fix for the orthogonal
problem where I tried to keep a frame fullheight/-width when changing
the size of the toolbar on the side of the largest extension.  So you
should not see it on Emacs 24.4/5.

 >> And what happens with a fullwidth frame and the toolbar orthogonally to
 >> where it is now?
 >
 > Do you mean using the parameter (fullscreen . fullboth) and tool bar on
 > the left?

I meant (fullscreen . fullwidth) and the tool bar on top.  But that's
irrelevant wrt to how many characters fit on a line, so drop it.

 > If so, the result is the same in master with and without you
 > recent patch: there's a bit of space between the last character and the
 > right fringe, but less than one column's worth.

Probably because a fullboth frame's text width is not a multiple of the
character width.  What does evaluating (window--dump-frame) give on that
frame?  The result is in a buffer called *window-frame-dump*.  If the
second value I marked below is not the product of the first and third
value I marked you should see that.

frame pixel: 1680 x 984   cols/lines: 210 x 60   units: 8 x 16
                                                         ^
frame text pixel: 1648 x 968   cols/lines: 206 x 60
                   ^^^^                     ^^^
tool: 0  scroll: 16/16  fringe: 16  border: 0  right: 6  bottom: 6

 > Although, with your patch, I no longer observe the problem, in case you
 > want to do some ex post facto forensics, below is the minimal recipe I
 > came up with to show the problem.  Do emacs -Q in a build from master
 > without your patch, evaluate the code and then type `M-x srb-test'.

I can see it with that recipe.

Thanks, martin





  reply	other threads:[~2015-02-09 18:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16 17:39 bug#19619: 25.0.50; Fullheight frames in daemonized emacsen are wrong width Michael Welsh Duggan
2015-01-16 17:55 ` martin rudalics
2015-01-16 18:16   ` Michael Welsh Duggan
2015-01-16 18:47     ` martin rudalics
2015-02-07 19:26     ` martin rudalics
2015-02-08  5:54       ` Michael Welsh Duggan
2015-02-08 20:29         ` Stephen Berman
2015-02-09  9:31           ` martin rudalics
2015-02-09 12:26             ` Stephen Berman
2015-02-09 18:41               ` martin rudalics [this message]
2015-02-10 10:13                 ` Stephen Berman
2015-02-13 18:30         ` martin rudalics

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=54D8FF72.1040107@gmx.at \
    --to=rudalics@gmx.at \
    --cc=19619@debbugs.gnu.org \
    --cc=mwd@md5i.com \
    --cc=stephen.berman@gmx.net \
    /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.