From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#25511: 26.0.50; modify-frame-parameters modifies undesignated parameter? Date: Tue, 24 Jan 2017 07:54:29 +0900 Organization: Emacsen advocacy group Message-ID: 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 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1485212130 32394 195.159.176.226 (23 Jan 2017 22:55:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Jan 2017 22:55:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (i686-pc-cygwin) Cc: 25511@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 23 23:55:22 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 1cVnW7-0006xD-1Z for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jan 2017 23:55:15 +0100 Original-Received: from localhost ([::1]:45039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVnW7-0002nU-6z for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jan 2017 17:55:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVnVx-0002lF-85 for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2017 17:55:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVnVu-0003Ec-60 for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2017 17:55:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41332) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cVnVu-0003EX-3E for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2017 17:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cVnVt-0006de-Nw for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2017 17:55:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Jan 2017 22:55:01 +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.148521208125484 (code B ref 25511); Mon, 23 Jan 2017 22:55:01 +0000 Original-Received: (at 25511) by debbugs.gnu.org; 23 Jan 2017 22:54:41 +0000 Original-Received: from localhost ([127.0.0.1]:39531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cVnVZ-0006cy-BE for submit@debbugs.gnu.org; Mon, 23 Jan 2017 17:54:41 -0500 Original-Received: from mail-hampton.hostforweb.net ([205.234.186.191]:51746 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cVnVX-0006ck-1g for 25511@debbugs.gnu.org; Mon, 23 Jan 2017 17:54:39 -0500 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cVnVO-0048zw-IG; Mon, 23 Jan 2017 16:54:31 -0600 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Cancel-Lock: sha1:LlpjS6j9lKgR1D6zW5C5kEN8Fac= X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: 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:128346 Archived-At: On Mon, 23 Jan 2017 11:28:14 +0100, martin rudalics wrote: > Try to avoid =E2=80=98modify-frame-parameters=E2=80=99 wherever it's poss= ible. There > might be still cases left where we have to use it because some frame > parameters cannot be processed on an invisible frame. That's enough > trouble. The main reason I use modify-frame-parameters is that a new frame protrudes beyond the task-bar (placed at the bottom of the lower screen) and so, I can't see the modeline and can't access the mini-buffer on Cygwin, i.e., +----------------+ | +-------+ | | | | | | | Emacs | | | | frame | | | | | | +----------------+ | Task-bar | +----------------+ Possible solutions to help it would be to make the task-bar hidden automatically, to shrink the height of a new Emacs frame by some sort of means, or to move a new frame upward... Instead of dragging it manually I use: (defadvice make-frame (after adjust-frame-height-and-position activate) "Shrink the height of a new frame and move it upward." (if (ad-get-arg 0) nil (sit-for 0) ;; Added for new Emacs 26 (modify-frame-parameters ad-return-value '((height . 32) (top . 1112))))) > Can you try this with a native Windows build and compare the behaviors? Ok, I'll try the binary distribution. > What does a specification like > (make-frame '((left . (+ -8)) (top . (+ -32)))) > give here? No difference with (make-frame). The new frame appears on the lower screen, mode-line and minibuffer is hidden, and `frame-parameters' shows: ((top . 1137) (left . 292) (width . 80) (height . 36))