unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman" <lennart.borgman.073@student.lu.se>
Subject: Maximize frame does not work correctly in .emacs on MS Windows with CVS Emacs
Date: Thu, 9 Dec 2004 18:23:05 +0100	[thread overview]
Message-ID: <002e01c4de15$73ded780$0200a8c0@sedrcw11488> (raw)

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

                 reply	other threads:[~2004-12-09 17:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002e01c4de15$73ded780$0200a8c0@sedrcw11488' \
    --to=lennart.borgman.073@student.lu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).