From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Maximize frame Date: Thu, 14 May 2009 15:25:08 +0200 Message-ID: References: <7c63g3c18x.fsf@pbourguignon.anevia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1242307560 24014 80.91.229.12 (14 May 2009 13:26:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 May 2009 13:26:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Pascal J. Bourguignon" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 14 15:25:50 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M4awN-00049e-HH for geh-help-gnu-emacs@m.gmane.org; Thu, 14 May 2009 15:25:39 +0200 Original-Received: from localhost ([127.0.0.1]:50743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4awM-0006FJ-VO for geh-help-gnu-emacs@m.gmane.org; Thu, 14 May 2009 09:25:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4avx-0006FE-Mh for help-gnu-emacs@gnu.org; Thu, 14 May 2009 09:25:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4avt-0006EX-Hl for help-gnu-emacs@gnu.org; Thu, 14 May 2009 09:25:13 -0400 Original-Received: from [199.232.76.173] (port=48317 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4avt-0006EN-EC for help-gnu-emacs@gnu.org; Thu, 14 May 2009 09:25:09 -0400 Original-Received: from mail-fx0-f169.google.com ([209.85.220.169]:38991) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M4avt-0000EL-0f for help-gnu-emacs@gnu.org; Thu, 14 May 2009 09:25:09 -0400 Original-Received: by fxm17 with SMTP id 17so1381351fxm.42 for ; Thu, 14 May 2009 06:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xP657SGrQxhqG92KVX+2JN7dZXAB0dhnW/J0Ao63Lo4=; b=Cok/oennMDcVtngy8H6FTgY4RWPQJhtslKrPmUGQGDuvEI/hiYYLL9t5AlirEm4sbG MdaoL7EkIeh5wWZ/YtXgC5xSJciwUbQuoIOXZiSu20WbzkTPjUIMbP8akT+nXxLtJc+8 ikBLhi5+dDDa37737LDmlJkOVMjNnih2vM2YM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WmXZ19wRbWNthBJAtnzbZSl9ZfoCCC+Rg59W6xV+u5pXuL1k8MqYH4tIGsYFzOKFBZ eHj2xjkjYPS6fUA0bpTl0ikyHJpvNqpSzG/s5euDO4hVyVSU+dt64aHagzMsetXdtqb/ m9V0cPjdy5mVw7wIjAcseMfv5b05K+lXXfugU= Original-Received: by 10.223.107.68 with SMTP id a4mr1592058fap.104.1242307508153; Thu, 14 May 2009 06:25:08 -0700 (PDT) In-Reply-To: <7c63g3c18x.fsf@pbourguignon.anevia.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64427 Archived-At: On Thu, May 14, 2009 at 2:33 PM, Pascal J. Bourguignon wrote: > Lennart Borgman writes: > >> On Thu, May 14, 2009 at 12:32 PM, Decebal wrote= : >>> On 14 mei, 10:49, Nurullah Akkaya wrote: >>>> Decebal wrote: >>>> > I would like to maximize my Emacs on startup. I did find: >>>> > =C2=A0 (defun fullscreen () >>>> > =C2=A0 =C2=A0 (interactive) >>>> > =C2=A0 =C2=A0 (x-send-client-message nil 0 nil "_NET_WM_STATE" 32 >>>> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 '(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! =C2=A0Obviously, the function > =C2=A0 (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).