unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: david@ngdr.net
Cc: "25943@debbugs.gnu.org" <25943@debbugs.gnu.org>
Subject: bug#25943: 21.5  Frame Display Difficulties
Date: Thu, 30 Mar 2017 09:29:31 +0200	[thread overview]
Message-ID: <58DCB3DB.4050804@gmx.at> (raw)
In-Reply-To: <aa04a8028e6a44d724440e1206cfe23d@127.0.0.1>

 > I did not think that this would be important.  I attach a run for 23.2
 > this time.  FYI, it turns out that the code must be
 > (id  (eval  (frame-parameter... in order to handle parameters such as (+
 > -9)

Hmm... I thought all your Emacs 23.2 frames were on-screen.  You mean in
order to use the same test procedure for both 23.2 and 25.2, I presume.

 > ;; Run 5.
 >
 > ;; In C Right Bottom frame, misplaced at Left Top.
 > (frame-geometry)
 >
 > (
 >  (outer-position -9 . 30)
 >  (outer-size 836 . 447)
 >  (external-border-size 10 . 10)
 >  (title-bar-size 0 . 27)
 >  (menu-bar-external . t)
 >  (menu-bar-size 0 . 0)
 >  (tool-bar-external . t)
 >  (tool-bar-position . top)
 >  (tool-bar-size 0 . 0)
 >  (internal-border-width . 0))
 >
 > ;; In 4 Right Bottom frame, correctly placed at Right Bottom.
 > (frame-geometry)
 >
 > (
 >  (outer-position 1181 . 694)
 >  (outer-size 836 . 447)
 >  (external-border-size 10 . 10)
 >  (title-bar-size 0 . 27)
 >  (menu-bar-external . t)
 >  (menu-bar-size 0 . 0)
 >  (tool-bar-external . t)
 >  (tool-bar-position . top)
 >  (tool-bar-size 0 . 0)
 >  (internal-border-width . 0))

I didn't make myself clear enough.  A frame gets misplaced at the left
top of your screen because its position was miscalculated in a way that
would have put the frame off-screen.  Since you likely use one display
only, your window manager then puts the frame at some default place (the
-9 and 30 values in your case).  Here it puts them right at the top left
display corner.  `frame-geometry' won't reveal anything new wrt whether
a frame was misplaced that way.

What I menat was to find out the differences between `fun', `arg' and
`par' when the window manager places the frame more or less "correctly"
where you want it like at (1181 . 694).  Some frame parameters seem to
affect that, like the size of the scroll, menu or tool bar and we could
find out how.

But according to `frame-geometry' you use neither menu nor tool bars.
Right?  This means that I have no clue wrt how the height of your frames
gets miscalculated.  And for the width I probably need the default width
of your scroll bars.

So I would need your `frame-geometry' output from emacs -Q plus that of

(frame-parameter nil 'scroll-bar-width)

in order to find out.  All values reported should be (hopefully) the
same regardless of how wrongly Emacs wants to place the frame and where
the window manager eventually puts it.

martin





  reply	other threads:[~2017-03-30  7:29 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-03  3:51 bug#25943: 21.5 Frame Display Difficulties david
2017-03-03  8:13 ` martin rudalics
     [not found]   ` <af552a322a8a630796cbddf1133b6dbe@127.0.0.1>
2017-03-04  9:59     ` martin rudalics
2017-03-07  1:51       ` david
2017-03-07  9:45         ` martin rudalics
2017-03-08 22:58           ` david
2017-03-09  8:56             ` martin rudalics
2017-03-10 18:44               ` david
2017-03-11 10:21                 ` martin rudalics
2017-03-23  7:59                   ` martin rudalics
2017-03-28 22:43                     ` david
2017-03-29  7:36                       ` martin rudalics
2017-03-29 19:53                         ` david
2017-03-30  7:29                           ` martin rudalics [this message]
2017-04-01  4:35                             ` david
2017-04-01  7:36                               ` martin rudalics
     [not found]                                 ` <7ee8200b866d8067514fb8b0bb9e814b@127.0.0.1>
2017-04-02  7:55                                   ` martin rudalics
2017-04-04  0:35                                     ` david
2017-04-04  7:25                                       ` martin rudalics
2017-04-07  0:12                                         ` david
2017-04-07  5:56                                           ` martin rudalics
2017-04-07 21:16                                             ` david
2022-04-25 14:48                                               ` Lars Ingebrigtsen
2022-05-24 12:50                                                 ` Lars Ingebrigtsen
2017-04-07 21:19                                             ` david
2017-04-08  9:00                                               ` martin rudalics
2017-04-11  6:49                     ` 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

  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=58DCB3DB.4050804@gmx.at \
    --to=rudalics@gmx.at \
    --cc=25943@debbugs.gnu.org \
    --cc=david@ngdr.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 public inbox

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

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).