unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Mario Valencia <mariovalspi@gmail.com>, 20110@debbugs.gnu.org
Subject: bug#20110: maximize emacs at startup
Date: Sun, 15 Mar 2015 20:20:06 +0100	[thread overview]
Message-ID: <5505DB66.3090703@gmx.at> (raw)
In-Reply-To: <CA+3HrJV2om831Ax-D9Ww4OF+6ra+d70+A1ZV6u1tuyCFsD0t=w@mail.gmail.com>

 > The following, taken from the emacs faq, doesn't work:
 > (add-hook 'emacs-startup-hook
 >                 (lambda () (w32-send-sys-command ?\xF030)))
 >
 > I ran emacs with only this code in the init file. It appears to maximize
 > the window then resizes it again.
 >
 >
 > But the following does work:
 > (add-hook 'emacs-startup-hook 'toggle-frame-maximized)
 >
 > This is on windows 8 with version
 > *GNU Emacs 24.4.1 (i686-pc-mingw32)*
 > * of 2014-10-24 on LEG570*
 >
 > I also tried window-setup-hook. Didn't work. Note that the code that uses
 > w32-send-sys-command works fine if i evaluate it with C-x C-e.

Thank you very much.  I updated the manual accordingly.  Using the
--maximized command-line option should work as well.  Hence, Emacs
should behave on Windows just like on GNU/Linux.

martin





      reply	other threads:[~2015-03-15 19:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-15 14:53 bug#20110: maximize emacs at startup Mario Valencia
2015-03-15 19:20 ` martin rudalics [this message]

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=5505DB66.3090703@gmx.at \
    --to=rudalics@gmx.at \
    --cc=20110@debbugs.gnu.org \
    --cc=mariovalspi@gmail.com \
    /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).