From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#24085: 25.1.50; `make-frame' given `top' param creates frame with ~10x smaller `top' Date: Wed, 27 Jul 2016 11:19:54 +0200 Message-ID: <57987CBA.2060405@gmx.at> References: <0bfd2e8d-9d9b-4737-a637-5175eaaf41c0@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1469611285 13505 80.91.229.3 (27 Jul 2016 09:21:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2016 09:21:25 +0000 (UTC) To: Drew Adams , 24085@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 27 11:21:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bSL1d-00045J-Uz for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jul 2016 11:21:14 +0200 Original-Received: from localhost ([::1]:45140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSL1c-0007uD-ML for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jul 2016 05:21:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSL1V-0007tr-Ro for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2016 05:21:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSL1S-0007Xs-LT for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2016 05:21:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSL1S-0007Xo-IB for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2016 05:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bSL1S-00021D-Em for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2016 05:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jul 2016 09:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24085 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24085-submit@debbugs.gnu.org id=B24085.14696112287695 (code B ref 24085); Wed, 27 Jul 2016 09:21:02 +0000 Original-Received: (at 24085) by debbugs.gnu.org; 27 Jul 2016 09:20:28 +0000 Original-Received: from localhost ([127.0.0.1]:38724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSL0t-000202-Pw for submit@debbugs.gnu.org; Wed, 27 Jul 2016 05:20:28 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:53785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSL0r-0001zT-JJ for 24085@debbugs.gnu.org; Wed, 27 Jul 2016 05:20:26 -0400 Original-Received: from [192.168.1.100] ([212.95.7.66]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lmazv-1au6aT4AQl-00aCsd; Wed, 27 Jul 2016 11:20:15 +0200 In-Reply-To: <0bfd2e8d-9d9b-4737-a637-5175eaaf41c0@default> X-Provags-ID: V03:K0:cJKh52qQm3TiX5G4aIyUJGkBPuIRIf1sTjuyG64GyEVcNKeatX0 8n0QUSTHYV4TGoxniWgep4FXXEBEMUq1oZmJvAKULBLv6DxA2cVOZHZXl7xxjo/vbUToTxa mHK+NFKbLgk9RZ8xOmk3ZwGY4161mt01xPh7u0JmCV2lEHjbYF7CQQ3Lb6VgO23s7ghGeEp nSLNmizClBB/A09RiWArg== X-UI-Out-Filterresults: notjunk:1;V01:K0:6ADfG5DcbT8=:bBJxf992rYlw/MYdaTY2uU rEP4gyC8ltGJRb0iauyQKUe+k5vcRLGx3J3qEoUfrfN14eGH3ebE1x4iAdcuJKwld7HmcAw5K ZJSqldOiqhUSNQnHU7szq1XjcvhV0Qm4/790mphk73szDTwzWqw8OCThdvzfq4MNnLyO9uTlY zwhqJJ0hFSExZCTYxz7XUjdbAjaTQqjQi/cuKRS9rFyv4e1m3jWnYikWp7/wSEEyQJKjAaeaW 5ZGEblntmJpoOSDF3SwUzPF+s0Fps4jfGtdHjMGnnZgWkEVVytN7XdqzacGwMyYpA2XEM5uQE BW19QySCliAPvWQ8DRiV14mYBZmNDcIG8vgknqgJla8kKVZ8i9odspenvj3DYoiX8BNq6ECzP m/wKR0py3lHVUoJVx6oJHxaghu4daSFG4fmO5irXE0Bav6aQIgA33+V5NiAhBPY6y8M9DpXhe limBVVaXGnU/N2Nya8VJoiwqazPFcz5XNJwo3OInvSNZ6ceHy2cS18jrinFexUK2Rn1Vb7CYC 9Rix+0sNVLwlF6coFoqw1R0Zs6PTgmhN+3SYfaYqcoW0AvagBOksFc8DlARhMf7Uw/lLiQ/fG fTGXf/rSPsLcLPG6FczNMqfRIB9CFdlPVA4+ZpIBgtl3tC0t5tmOc2arRm9CR9G1K+/PtunUI CmHcaL6G8C6LEd5HzJhy48jvvutRPKHSzXgcV6jrwR7pkE4vF6Jy1FOvGK0j7+ad3FsOFtPLX dMM/FAJHbAtR6hHKRJnCe5fa2VJO7ma15NIYsUueukrk27+uDQ5o3wm/1k+1EdYbz/11K6pL 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:121579 Archived-At: > emacs -Q > > In *scratch*, type and evaluate: > > (make-frame '((name . "AAA") > (left . 800) (top . 600) > (user-position . t))) > > In the new frame, do `M-: (frame-parameters)'. You see something like > this: > > ((tool-bar-position . top) (parent-id) (explicit-name . t) > (display . "w32") (visibility . t) (icon-name) (window-id . "265868") > (top . 73) (left . 800) (buried-buffer-list) > ^^^^^^^^^^ ^^^^^^^^^^^^ > (buffer-list # #) > (unsplittable) ...) > > And that new frame is indeed about 73 pixels from the top screen edge, > and about 800 pixels from the left screen edge. > > What am I missing? The Elisp manual, node `Position Parameters' seems > to say that `top' is just like `left'. The resulting `left' value is > exactly what was prescribed to `make-frame', but the resulting `top' > value is 73 instead of the prescribed 600. > > But I see about the same behavior in Emacs 23 and 22, so this is > apparently not new. Am I misunderstanding the doc description? > > FWIW, Emacs 20 behaves just like the doc says (as I understand it): the > resulting `top' value is exactly what you provide to `make-frame', and > the frame is actually positioned with its top at that position (not at > a top location that is ~10x smaller). Due to this change: 2006-06-30 Ralf Angeli * w32term.c (x_make_frame_visible): Use SystemParametersInfo with SPI_GETWORKAREA to find the dimensions of the screen work area, and adjust vertical position of the frame in order to avoid being covered by the taskbar. See the thread starting at https://lists.gnu.org/archive/html/emacs-pretest-bug/2006-06/msg00142.html for the corresponding discussion. martin