From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#24085: 25.1.50; `make-frame' given `top' param creates frame with ~10x smaller `top' Date: Tue, 26 Jul 2016 21:49:16 -0700 (PDT) Message-ID: <0bfd2e8d-9d9b-4737-a637-5175eaaf41c0@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1469595130 31361 80.91.229.3 (27 Jul 2016 04:52:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2016 04:52:10 +0000 (UTC) To: 24085@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 27 06:51:56 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 1bSGp2-0002Iy-5Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jul 2016 06:51:56 +0200 Original-Received: from localhost ([::1]:43942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSGp1-0006Fm-8r for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jul 2016 00:51:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSGnG-0005Nt-DP for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2016 00:50:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSGnC-0001pU-SS for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2016 00:50:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSGnC-0001pD-ON for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2016 00:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bSGnC-0003jY-Dg for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2016 00:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jul 2016 04:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24085 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146959497914317 (code B ref -1); Wed, 27 Jul 2016 04:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Jul 2016 04:49:39 +0000 Original-Received: from localhost ([127.0.0.1]:38592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSGmp-0003ir-8J for submit@debbugs.gnu.org; Wed, 27 Jul 2016 00:49:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSGmm-0003id-Cs for submit@debbugs.gnu.org; Wed, 27 Jul 2016 00:49:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSGmg-0001gT-AF for submit@debbugs.gnu.org; Wed, 27 Jul 2016 00:49:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSGmg-0001gE-7A for submit@debbugs.gnu.org; Wed, 27 Jul 2016 00:49:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSGmd-0005Co-VL for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2016 00:49:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSGmZ-0001e2-OY for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2016 00:49:26 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:25260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSGmZ-0001as-Er for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2016 00:49:23 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u6R4nKfL023626 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 27 Jul 2016 04:49:21 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u6R4nKqP004827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 27 Jul 2016 04:49:20 GMT Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u6R4nHf5013176 for ; Wed, 27 Jul 2016 04:49:18 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:121577 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). In GNU Emacs 25.1.50.1 (i686-pc-mingw32) of 2015-12-10 Repository revision: 6148555ee5a3d0139ae517803718b3e0357933c7 Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --prefix=3D/c/Devel/emacs/snapshot/trunk --enable-checking=3Dye= s --enable-check-lisp-object-type --without-compress-install 'CFLAGS=3D-Og -ggdb3' LDFLAGS=3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D-DGC_MCHECK=3D1 -Ic:/Devel/emacs/include''