From: Lennart Borgman <lennart.borgman@gmail.com>
To: "Pascal J. Bourguignon" <pjb@informatimago.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Maximize frame
Date: Thu, 14 May 2009 15:25:08 +0200 [thread overview]
Message-ID: <e01d8a50905140625h20d7cb4pd7b20542be0f3de5@mail.gmail.com> (raw)
In-Reply-To: <7c63g3c18x.fsf@pbourguignon.anevia.com>
On Thu, May 14, 2009 at 2:33 PM, Pascal J. Bourguignon
<pjb@informatimago.com> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> On Thu, May 14, 2009 at 12:32 PM, Decebal <CLDWesterhof@gmail.com> wrote:
>>> On 14 mei, 10:49, Nurullah Akkaya <nurul...@nakkaya.com> wrote:
>>>> Decebal wrote:
>>>> > I would like to maximize my Emacs on startup. I did find:
>>>> > (defun fullscreen ()
>>>> > (interactive)
>>>> > (x-send-client-message nil 0 nil "_NET_WM_STATE" 32
>>>> > '(2 "_NET_WM_STATE_FULLSCREEN" 0)))
>>>>
>>>> > But that does a fullscreen, which loses the taskbar. Is there a way to
>>>> > do a maximize instead of a fullscreen?
>>
>> Unfortunately there is no function in Emacs to make a frame
>> fullscreen. What platform do you use Emacs on?
>
> This is a little strong a statement! Obviously, the function
> (lambda () (full-frame))
> is a function in emacs to make a frame full screen (given my
> full-frame function whose URI I mentionned previously), and it exists!
Maybe I should have written "maximize"? Emacs have no built in
functions to handle maximize. And you can not really add them from
elisp.
On w32 you can maximize a frame from within Emacs, but there is no way
to check if the frame is maxmized (since there is no built in function
for that) and the maximizing happens asynchronously (since you send a
w32 message to the w32 window manager and you can not wait in Emacs
for that message to be handled).
next prev parent reply other threads:[~2009-05-14 13:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-14 7:44 Maximize frame Decebal
2009-05-14 8:36 ` Pascal J. Bourguignon
2009-05-14 10:30 ` Decebal
2009-05-14 8:49 ` Nurullah Akkaya
[not found] ` <mailman.7143.1242291118.31690.help-gnu-emacs@gnu.org>
2009-05-14 10:32 ` Decebal
2009-05-14 11:26 ` Lennart Borgman
[not found] ` <mailman.7148.1242300429.31690.help-gnu-emacs@gnu.org>
2009-05-14 12:07 ` Decebal
2009-05-14 12:33 ` Pascal J. Bourguignon
2009-05-14 13:25 ` Lennart Borgman [this message]
2009-05-14 11:39 ` Michael Heerdegen
2009-05-14 12:03 ` Decebal
2009-05-14 12:14 ` Decebal
2009-05-14 12:37 ` Pascal J. Bourguignon
2009-05-14 13:52 ` Richard Riley
2009-05-14 13:20 ` Decebal
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=e01d8a50905140625h20d7cb4pd7b20542be0f3de5@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=pjb@informatimago.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.
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).