From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: bug#25943: 21.5 Frame Display Difficulties Date: Wed, 29 Mar 2017 13:53:35 -0600 Message-ID: References: "<0b9853e8ecbdb18bb1b8c05347371a7e@127.0.0.1>" <58B925A4.4060406@gmx.at> "" <58BA900B.6040708@gmx.at> "<49adf8e1615512ac19189d75b5e04315@127.0.0.1>" <58BE8138.1040607@gmx.at> "<142b4d1d519a6bf87a5fe320d9eeb419@127.0.0.1>" <58C118CA.8020908@gmx.at> <2395d7c6fbe7358c894bc1406ffcbf45@127.0.0.1> <58C3CF94.3080604@gmx.at> <58D38075.2030409@gmx.at> <58DB63ED.8060305@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_626a40c2b776d69f29beba54d22205ca" X-Trace: blaine.gmane.org 1490817258 7450 195.159.176.226 (29 Mar 2017 19:54:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 29 Mar 2017 19:54:18 +0000 (UTC) User-Agent: Tuxedo/0.1 Cc: "25943@debbugs.gnu.org" <25943@debbugs.gnu.org> To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 29 21:54:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctJfY-0000sp-5x for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Mar 2017 21:54:12 +0200 Original-Received: from localhost ([::1]:60666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctJfY-0008O5-Nz for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Mar 2017 15:54:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctJfS-0008O0-By for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 15:54:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctJfP-0005LM-54 for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 15:54:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53416) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ctJfP-0005LI-1A for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 15:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ctJfO-0003e1-LX for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 15:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Mar 2017 19:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25943-submit@debbugs.gnu.org id=B25943.149081722113974 (code B ref 25943); Wed, 29 Mar 2017 19:54:02 +0000 Original-Received: (at 25943) by debbugs.gnu.org; 29 Mar 2017 19:53:41 +0000 Original-Received: from localhost ([127.0.0.1]:51615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctJf1-0003dJ-SZ for submit@debbugs.gnu.org; Wed, 29 Mar 2017 15:53:41 -0400 Original-Received: from magicmail03.frii.com ([216.17.135.172]:48279 helo=magic03.frii.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctJey-0003d9-Mw for 25943@debbugs.gnu.org; Wed, 29 Mar 2017 15:53:38 -0400 Original-Received: (qmail 18545 invoked from network); 29 Mar 2017 19:53:35 -0000 Original-Received: from localhost (HELO mail.frii.com) (david@ngdr.net@127.0.0.1) by magic03.frii.net with SMTP (6527cbbe-14b9-11e7-b3df-b74fa1364322); Wed, 29 Mar 2017 13:53:35 -0600 Original-Received: from c-67-165-221-44.hsd1.co.comcast.net ([67.165.221.44]) by mail.frii.com with HTTP (HTTP/1.1 POST); Wed, 29 Mar 2017 13:53:35 -0600 In-Reply-To: <58DB63ED.8060305@gmx.at> X-Sender: david@ngdr.net X-MagicMail-OS: MagicMail 2.0-Stable X-MagicMail-UUID: 6527cbbe-14b9-11e7-b3df-b74fa1364322 X-MagicMail-Authenticated: david@ngdr.net X-MagicMail-SourceIP: 127.0.0.1 X-MagicMail-RegexMatch: 2 X-MagicMail-EnvelopeFrom: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131072 Archived-At: --=_626a40c2b776d69f29beba54d22205ca Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 On Wed, 29 Mar 2017 09:36:13 +0200, martin rudalics wrote: >> I have run your frame-position code a few times; I have not had time to >> do > > anything else. > > I suppose you did not (or were not able to) apply my patch so > > (setq x-gtk-use-window-move t) > > had not effect on the outcome of your runs. Right? That is correct; I want to try your change; I hope to get to it soon. > > > I am unable to do anything similar for 23.2 because > > function frame-position does not exist in 23.2. > > I forgot. Instead of > > (pos (frame-position frame)) > (left (car pos)) > (top (cdr pos)) > > use > > (left (frame-parameter frame 'left)) > (top (frame-parameter frame 'top)) > > for Emacs 23. 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) > > > Mostly, but not always, the 9-C (fun) frames are consistently in their > > correct corner. This is true for the 1-4 (arg) frames as well; I do not > > have any record of a deviation, so arg frames may be perfect. The 5-8 > > (par) frames are the deviants, which seem to go the the Left Top corner. > > Your results for 25.1 are better than mine. Here only the "arg" runs > position correctly. The "fun" and "par" frames all end up in the top > left corner. So if you do want to continue working with an unpatched > Emacs 25.1 and want more or less correct positioning you will have to > use the "arg" notation. Otherwise you will have to either patch your > 25.1 or switch to the current development version. > > ( > (arg > ... > (name . "4 Right Bottom") > (p-left . -40) > (p-top . -40) > (left . 1181) > (top . 694) > (width . 816) > (height . 400) > (r-left . -51) > (r-top . -58)) > > It might be interesting to see where these differences in the "arg" case > come from - 11 pixels horizontally and 18 pixels vertically. What does > > M-: (frame-geometry) > > in that frame return? See Run 5 attached. > > Thanks, martin --=_626a40c2b776d69f29beba54d22205ca Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=us-ascii; name=other-output-5; charset=UTF-8 Content-Disposition: attachment; filename=other-output-5 OzsgUnVuIDUuCgo7OyBJbiBDIFJpZ2h0IEJvdHRvbSBmcmFtZSwgbWlzcGxhY2VkIGF0IExlZnQg VG9wLgooZnJhbWUtZ2VvbWV0cnkpCgooCiAob3V0ZXItcG9zaXRpb24gLTkgLiAzMCkKIChvdXRl ci1zaXplIDgzNiAuIDQ0NykKIChleHRlcm5hbC1ib3JkZXItc2l6ZSAxMCAuIDEwKQogKHRpdGxl LWJhci1zaXplIDAgLiAyNykKIChtZW51LWJhci1leHRlcm5hbCAuIHQpCiAobWVudS1iYXItc2l6 ZSAwIC4gMCkKICh0b29sLWJhci1leHRlcm5hbCAuIHQpCiAodG9vbC1iYXItcG9zaXRpb24gLiB0 b3ApCiAodG9vbC1iYXItc2l6ZSAwIC4gMCkKIChpbnRlcm5hbC1ib3JkZXItd2lkdGggLiAwKSkK Cjs7IEluIDQ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C4gNDAwKSkKIChmdW4KICAobmFtZSAuICJBIExlZnQgQm90dG9tIikKICAocC1sZWZ0IC4gNDAp CiAgKHAtdG9wIC4gLTQwKQogIChsZWZ0IC4gLTkpCiAgKHRvcCAuIDMwKQogICh3aWR0aCAuIDgx NikKICAoaGVpZ2h0IC4gNDAwKQogIChyLXRvcCAuIC03MjIpKQogKGZ1bgogIChuYW1lIC4gIkIg UmlnaHQgVG9wIikKICAocC1sZWZ0IC4gLTQwKQogIChwLXRvcCAuIDQwKQogIChsZWZ0IC4gLTkp CiAgKHRvcCAuIDMwKQogICh3aWR0aCAuIDgxNikKICAoaGVpZ2h0IC4gNDAwKQogIChyLWxlZnQg LiAtMTI0MSkpCiAoZnVuCiAgKG5hbWUgLiAiQyBSaWdodCBCb3R0b20iKQogIChwLWxlZnQgLiAt NDApCiAgKHAtdG9wIC4gLTQwKQogIChsZWZ0IC4gLTkpCiAgKHRvcCAuIDMwKQogICh3aWR0aCAu IDgxNikKICAoaGVpZ2h0IC4gNDAwKQogIChyLWxlZnQgLiAtMTI0MSkKICAoci10b3AgLiAtNzIy KSkKIChkaXNwbGF5LXBpeGVsLWhlaWdodCAuIDExNTIpCiAoZGlzcGxheS1waXhlbC13aWR0aCAu IDIwNDgpKQo= --=_626a40c2b776d69f29beba54d22205ca Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=us-ascii; name=other-output-6-23.2; charset=UTF-8 Content-Disposition: attachment; filename=other-output-6-23.2 OzsgMjMuMiBJbiBDIFJpZ2h0IEJvdHRvbSwgY29ycmVjdGx5IHBsYWNlZC4KKGZyYW1lLXBvc2l0 aW9uLWxpc3QpCgooCihhcmcgCihuYW1lIC4gIjEgTGVmdCBUb3AiKSAKKHAtbGVmdCAuIDQwKSAK KHAtdG9wIC4gNDApIAoobGVmdCAuIDMwKSAKKHRvcCAuIDMwKSAKKHdpZHRoIC4gNjU2KSAKKGhl aWdodCAuIDM0MCkpIAooYXJnIAoobmFtZSAuICIyIExlZnQgQm90dG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