From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#25511: 26.0.50; modify-frame-parameters modifies undesignated parameter? Date: Tue, 24 Jan 2017 08:46:30 +0100 Message-ID: <58870656.2090402@gmx.at> References: <5885B8D7.4040301@gmx.at> <5885DABE.9000408@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1485244050 31247 195.159.176.226 (24 Jan 2017 07:47:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2017 07:47:30 +0000 (UTC) Cc: 25511@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 24 08:47:26 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 1cVvp1-00073N-D2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jan 2017 08:47:19 +0100 Original-Received: from localhost ([::1]:46549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVvp4-0003ax-UC for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jan 2017 02:47:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVvop-0003V2-QU for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2017 02:47:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVvok-0006MX-SV for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2017 02:47:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41523) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cVvok-0006MR-Ok for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2017 02:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cVvok-0005Y0-Ik for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2017 02:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Jan 2017 07:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25511 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25511-submit@debbugs.gnu.org id=B25511.148524400821297 (code B ref 25511); Tue, 24 Jan 2017 07:47:02 +0000 Original-Received: (at 25511) by debbugs.gnu.org; 24 Jan 2017 07:46:48 +0000 Original-Received: from localhost ([127.0.0.1]:39721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cVvoV-0005XR-To for submit@debbugs.gnu.org; Tue, 24 Jan 2017 02:46:48 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:65503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cVvoU-0005XE-6A for 25511@debbugs.gnu.org; Tue, 24 Jan 2017 02:46:46 -0500 Original-Received: from [192.168.1.100] ([213.162.68.79]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MTO3f-1cuVDP2QCd-00SS0p; Tue, 24 Jan 2017 08:46:36 +0100 In-Reply-To: X-Provags-ID: V03:K0:ioKrjXC9GeU1UkpOz5vPzFImj6cXcFWAQQ38Sw1uk4jw/cpwIAg ReEs8zhzX8tVHRm6lbR0Wr1675HYrVTsbSqjQUVoUiw88mrAW6H3voKrQYJ81lk5DJalCHA aeG9PTp/8Ama5t/AzTOoTLSE8+57175iHVYI4Wyl4QWhNfftTO6Jm2RZK1zxellO3bllwEn 60eMjGXKR1ggID3ASrPBA== X-UI-Out-Filterresults: notjunk:1;V01:K0:e+NDJ9m9Eyk=:J3ZFfHedqWsOKNvXilkMsz yKYqQlT3CXSTK/WFkIpPS8qkGIDKxqKqlZJ1kgFefoGfFg+m2Nzguob72HhvgAFOyLWIUD9HD MZzsAgiZ87V502+XaP69VqORwUjm3ptFayrMxm64BOZKwf5J6ja8eMXaznyl60pKBR8iZ5Mnt Dbewn0OkcC9Wvuuqd8/ZoJWOBqYx4MM/pXCNNh6ptPUVSv7Md4Az21zQD1r42ULrXa4s7crGl ji8pDyE6qHXEYf7hh1hmDNg9t4HVFjFJhR5naBjU6il9YleLjd2fKYF997OgpFiE9/CoKSDqL rdCCOaLpZU0KS9sj9lO2mlceD3wk+YVpCDKO677d1P28LID8ZKjREeoVmCtJgqz7UL79Ht7js 5ZgOG9YrU2zX2Zxlp29tAWWVANRkNhS8WYGFWdIooHo/qTrLP6k8mFQXsqIXAkhjp2L0NYjpT oLCZbjHk97YARi8IvuFBBk8NKLUPDFRnK0vOWjiFBZz58frPIUF36qw5WnDk2SeLqWyXSvEl7 D4bjsAnJn4QjRWC94EmWvq95iBFdvffM2t+wN1mfTzflPlr/4JUgjxcS0S0vCWUgjFm+jsDfr JPcLd+wnwfus3je792d+3R4ZaqIFOhb4qelwIs+M1wfS732QysWZZcZmxnQ2BU6xKKYOvdGPp hCqVgPboL+4ND/tHP3BC2zQka5rG+OrmutJQrYvIZ4JLmkLXTNcGWFmRxSO30/8465qKU2qxZ 4UN0JfY+VNfShVeiUAQaUm8Pjwxo/LuK4N+urnl1kOWr/6oHmHqxCMjXrgdIFw8ncd71H1lC 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:128353 Archived-At: > (make-frame '((left . 0) (top . 0))) > launches a new frame on the top-left corner of the *lower* screen, > the position and the size are: > ((top . 0) (left . 0) (width . 80) (height . 36)) > It varies to > ((top + -1076) (left + -258) (width . 80) (height . 36)) > after moving it to the top-left corner of the upper screen. > I feel it a very good behavior. Does this imply that GTK cannot handle Windows' multiple monitors? Can you invoke =E2=80=98display-monitor-attributes-list=E2=80=99 for both dis= plays and on the native and the cygwin builds? > As for the eclipse of the bottom of an Emacs frame by the task- > bar, it doesn't happen by default. However, it seems to be due > to the size of the default font. The default font is somewhat > small to me, so I tried: > > (add-to-list > 'default-frame-alist > '(font > . "-outline-Arial Unicode MS-normal-normal-normal-mono-16-*-*-*-p-= *-iso8859-1")) > > After that, a new frame got too tall, This is a consequence of Emacs' attitude to keep the number of lines of a frame unchanged when changing a frame's default font size (see the corresponding calls to adjust_frame_size in x_new_font). You should be able to avoid this by setting =E2=80=98frame-inhibit-implied-resize=E2=80= =99 to t. > so I think I still need > a workaround like this: > > (defadvice make-frame (after shrink-frame-height activate) > "Shrink the height of a new frame." > (sit-for 0) > (if (> (frame-parameter ad-return-value 'height) 30) > (modify-frame-parameters ad-return-value '((height . 30))))) Then why don't you use 30 lines in the first place? In any case, you should be able to get the size of the workarea of any of your displays via the above mentioned =E2=80=98display-monitor-attributes-list=E2=80=99= and, using =E2=80=98set-frame-position=E2=80=99 and =E2=80=98set-frame-size=E2=80=99= , be able to fine-tune the positioning of your frame in a way that it doesn't overlap the taskbar. martin