From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Maximize frame does not work correctly in .emacs on MS Windows with CVS Emacs Date: Thu, 9 Dec 2004 18:23:05 +0100 Message-ID: <002e01c4de15$73ded780$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1102613775 30025 80.91.229.6 (9 Dec 2004 17:36:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2004 17:36:15 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 09 18:36:10 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CcSD3-0004cY-00 for ; Thu, 09 Dec 2004 18:36:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcSMy-0005Z0-6u for ged-emacs-devel@m.gmane.org; Thu, 09 Dec 2004 12:46:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CcSMW-0005N8-AT for emacs-devel@gnu.org; Thu, 09 Dec 2004 12:45:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CcSMU-0005M4-Dx for emacs-devel@gnu.org; Thu, 09 Dec 2004 12:45:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcSMU-0005Lj-9c for emacs-devel@gnu.org; Thu, 09 Dec 2004 12:45:54 -0500 Original-Received: from [81.228.11.107] (helo=av1-1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CcSCT-00056K-EE for emacs-devel@gnu.org; Thu, 09 Dec 2004 12:35:33 -0500 Original-Received: by av1-1-sn1.fre.skanova.net (Postfix, from userid 502) id 763A837E7E; Thu, 9 Dec 2004 18:35:32 +0100 (CET) Original-Received: from smtp3-2-sn1.fre.skanova.net (smtp3-2-sn1.fre.skanova.net [81.228.11.164]) by av1-1-sn1.fre.skanova.net (Postfix) with ESMTP id 6823A37E6A for ; Thu, 9 Dec 2004 18:35:32 +0100 (CET) Original-Received: from sedrcw11488 (t1o58p160.telia.com [62.20.164.160]) by smtp3-2-sn1.fre.skanova.net (Postfix) with SMTP id 8C86337E54 for ; Thu, 9 Dec 2004 18:35:31 +0100 (CET) Original-To: "Emacs Devel" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30941 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30941 I have in .emacs: (defun w32-maximize-frame () "Maximize the current frame" (interactive) (w32-send-sys-command 61488)) (defun w32-hook-frame-maximize (frame) ;;(server-trace "ENTERING w32-hook-frame-maximize") ;;(sleep-for 2) (when window-system (select-frame frame) (if w32-feeling-max-frames (w32-maximize-frame))) ;;(server-trace "EXITING w32-hook-frame-maximize") ) (add-hook 'after-make-frame-functions 'w32-hook-frame-maximize) (w32-maximize-frame) In CVS Emacs this first maximizes the frame (window in w32 parlor) and then shrinks it. Some of the time both height and width are shrinked, but often only the height is changed. The small icon in the upper right corner still looks the way it does when the window is maximized. The size of the window in this strange state is not the same as when the window is "Restored" from the upper left system-menu. This works as it should in current Emacs. If I use (w32-maximize-frame) later in CVS Emacs it also works as it should (i e it maximize the window). - Lennart