From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.bugs Subject: bug#19075: `toggle-frame-maximized' and `toggle-frame-fullscreen' on Windows Date: Mon, 17 Nov 2014 09:13:56 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c35086598ef20508098f4d X-Trace: ger.gmane.org 1416212119 4198 80.91.229.3 (17 Nov 2014 08:15:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2014 08:15:19 +0000 (UTC) To: 19075@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 09:15:11 2014 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 1XqHSo-0001lp-NK for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 09:15:10 +0100 Original-Received: from localhost ([::1]:46609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqHSo-0003YN-8l for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 03:15:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqHSk-0003Vq-Iq for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 03:15:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqHSi-00069M-Fb for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 03:15:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqHSi-00068l-DF for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 03:15:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XqHSi-00077V-2J for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 03:15:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alexander Shukaev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Nov 2014 08:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.141621204527166 (code B ref -1); Mon, 17 Nov 2014 08:15:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Nov 2014 08:14:05 +0000 Original-Received: from localhost ([127.0.0.1]:35730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XqHRk-000743-SD for submit@debbugs.gnu.org; Mon, 17 Nov 2014 03:14:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34059) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XqHRj-00073s-4n for submit@debbugs.gnu.org; Mon, 17 Nov 2014 03:14:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqHRh-0005xB-Rf for submit@debbugs.gnu.org; Mon, 17 Nov 2014 03:14:02 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqHRh-0005x6-Pk for submit@debbugs.gnu.org; Mon, 17 Nov 2014 03:14:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqHRg-0002kv-EG for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 03:14:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqHRe-0005wC-FL for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 03:14:00 -0500 Original-Received: from mail-lb0-x231.google.com ([2a00:1450:4010:c04::231]:40961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqHRe-0005vh-3Q for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 03:13:58 -0500 Original-Received: by mail-lb0-f177.google.com with SMTP id z12so8490640lbi.8 for ; Mon, 17 Nov 2014 00:13:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=F9m1XwWJ7th5W+c2ydwekpxammgY+92B4/RXf1GvqBU=; b=X568JWLv791b65Y160R+m8VxhuNM2dIc9MXEauERRRFBxNBWb+KlWqYCOaieY+fCpB xcjb+yeqMpQrHQlzKjTcQqXDlNlcQifZHdBdNrCJxoIkzXRc4pID7LpCE92PX5KG9IRo ferbwf81NTFMu5Cywc1rIliB+WEv6vRyFofYL3JXZ7u3n51yxDwQTOwVnSxDQ6sbDw0q RaTI8tRUD64uIPEHTFEXn9rOoDjw9LXXifZLWxUpXicstXK/+HZJyaroDtfN7GNe+asO 9lC5dpHdICuGnNx270BlVnn5Pt3aEtjV/+GDDEF4UcQIDJVBxodsKDPSx+kkVKfUmGvb gcAQ== X-Received: by 10.152.42.172 with SMTP id p12mr25488794lal.11.1416212036290; Mon, 17 Nov 2014 00:13:56 -0800 (PST) Original-Received: by 10.112.202.106 with HTTP; Mon, 17 Nov 2014 00:13:56 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96144 --001a11c35086598ef20508098f4d Content-Type: text/plain; charset=UTF-8 `init.el': (add-hook 'window-setup-hook 'toggle-frame-maximized t) (add-hook 'window-setup-hook 'toggle-frame-fullscreen t) does not work as expected. Emacs goes fullscreen indeed. However, running manually `(toggle-frame-fullscreen)' once again after Emacs loaded, does not bring Emacs into maximized state, it rather returns to a small initial frame (of the default size, `emacs -q' to remind yourself how it looks like). Changing `init.el' to: (add-to-list 'default-frame-alist '(fullscreen . maximized)) (add-hook 'window-setup-hook 'toggle-frame-fullscreen t) does not help either. One could think that somehow `maximized' parameter is not set, but if one has in `init.el' only: (add-to-list 'default-frame-alist '(fullscreen . maximized)) or (add-hook 'window-setup-hook 'toggle-frame-maximized t) then Emacs is loaded into maximized state indeed (*). On the other hand in `emacs -q', if one runs (toggle-frame-maximized) (toggle-frame-fullscreen) manually, and then runs `(toggle-frame-fullscreen)' manually once again, then Emacs is brought to maximized state. All this makes me think that there is some problem with memorizing `maximized' parameter during `window-setup-hook', but note that this actually contradicts (*) what makes this problem even more confusing. It's Emacs 24.4.50 on Windows. --001a11c35086598ef20508098f4d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
`init.el':

(add-hook = 9;window-setup-hook 'toggle-frame-maximized t)
(add-hook '= ;window-setup-hook 'toggle-frame-fullscreen t)

does not work as expected. Emacs goes fullscreen indeed. However, running = manually `(toggle-frame-fullscreen)' once again after Emacs loaded, doe= s not bring Emacs into maximized state, it rather returns to a small initia= l frame (of the default size, `emacs -q' to remind yourself how it look= s like). Changing `init.el' to:

(add-to-l= ist 'default-frame-alist '(fullscreen . maximized))
(add-hook 'window-setup-hook 'toggle-frame-fullscreen t)
=

does not help either.

One coul= d think that somehow `maximized' parameter is not set, but if one has i= n `init.el' only:

(add-to-list 'default-fr= ame-alist '(fullscreen . maximized))

or

(add-hook 'window-setup-hook 'toggle-frame-m= aximized t)

then Emacs is loaded into maximize= d state indeed (*).

On the other hand in `emacs -q= ', if one runs

(toggle-frame-maximized)
(toggle-frame-fullscreen)

manually, an= d then runs `(toggle-frame-fullscreen)' manually once again, then Emacs= is brought to maximized state.

All this makes me = think that there is some problem with memorizing `maximized' parameter = during `window-setup-hook', but note that this actually contradicts (*)= what makes this problem even more confusing.

It&#= 39;s Emacs 24.4.50 on Windows.
--001a11c35086598ef20508098f4d--