From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Ren=E9?= Kyllingstad Newsgroups: gmane.emacs.devel Subject: Re: Proposal for a new API to fullscreen Date: Tue, 19 Aug 2008 10:11:45 -0100 Message-ID: References: <87wsidphul.fsf@kanis.fr> <200808191131.07032.tassilo@member.fsf.org> <200808191226.33688.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1219144366 23415 80.91.229.12 (19 Aug 2008 11:12:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Aug 2008 11:12:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 19 13:13:38 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KVP91-0002Nv-SI for ged-emacs-devel@m.gmane.org; Tue, 19 Aug 2008 13:13:00 +0200 Original-Received: from localhost ([127.0.0.1]:59644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVP84-00084E-IA for ged-emacs-devel@m.gmane.org; Tue, 19 Aug 2008 07:12:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVP7y-00082O-I0 for emacs-devel@gnu.org; Tue, 19 Aug 2008 07:11:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVP7w-00081I-QQ for emacs-devel@gnu.org; Tue, 19 Aug 2008 07:11:53 -0400 Original-Received: from [199.232.76.173] (port=40174 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVP7w-00081F-Hk for emacs-devel@gnu.org; Tue, 19 Aug 2008 07:11:52 -0400 Original-Received: from mail2.esmertec.com ([212.249.37.45]:45008 helo=postie.esmertec.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KVP7w-0003lP-Cs for emacs-devel@gnu.org; Tue, 19 Aug 2008 07:11:52 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by postie.esmertec.com (Postfix) with ESMTP id 84F3B31BD8; Tue, 19 Aug 2008 13:11:47 +0200 (CEST) Original-Received: from postie.esmertec.com ([127.0.0.1]) by localhost (postie.esmertec.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22575-07; Tue, 19 Aug 2008 13:11:47 +0200 (CEST) Original-Received: from mail.esmertec.com (unknown [10.10.10.10]) by postie.esmertec.com (Postfix) with ESMTP id 398CE1BA5A; Tue, 19 Aug 2008 13:11:47 +0200 (CEST) Original-Received: from BARBUDA ([10.10.9.60]) by mail.esmertec.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 19 Aug 2008 13:11:46 +0200 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) X-OriginalArrivalTime: 19 Aug 2008 11:11:46.0958 (UTC) FILETIME=[5EB4B2E0:01C901EC] X-Virus-Scanned: amavisd-new at esmertec.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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: news.gmane.org gmane.emacs.devel:102642 Archived-At: * Tassilo Horn: > On Tuesday 19 August 2008 11:58:51 Ren=E9 Kyllingstad wrote: >=20=20 > Hi Ren=E9, >=20=20 > > What if you live in Emacs, and use the same config on many window > > managers and platforms? Then it's nice to configure it once in Emacs. >=20=20 > Ok, I see. Then this command probably does what you and the OP want. >=20=20 > --8<---------------cut here---------------start------------->8--- > (defun toggle-frame-fullscreen () > "Toggle the fullscreen status of the current frame." > (interactive) > (if (eq (frame-parameter nil 'fullscreen) 'fullboth) > (set-frame-parameter nil 'fullscreen nil) > (set-frame-parameter nil 'fullscreen 'fullboth))) > --8<---------------cut here---------------end--------------->8--- As the OP said, it isn't implemented as fullscreen on win32. I didn't find a list of what frame-parameters are recognized, and which values, but fullboth indicates to me that we're actually talking about maximize, and the options are horizontal, vertical, both, in classic X11 VM style. This is AFAICT the ambiguity the OP was wanted to address. How would you request maximize if fullboth is fullscreen? A maximize frame parameter? -- Ren=E9