From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Proposal for a new API to fullscreen Date: Tue, 19 Aug 2008 12:26:33 +0200 Message-ID: <200808191226.33688.tassilo@member.fsf.org> References: <87wsidphul.fsf@kanis.fr> <200808191131.07032.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 1219142635 17688 80.91.229.12 (19 Aug 2008 10:43:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Aug 2008 10:43:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 19 12:44:48 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 1KVOhf-0001Ji-3y for ged-emacs-devel@m.gmane.org; Tue, 19 Aug 2008 12:44:43 +0200 Original-Received: from localhost ([127.0.0.1]:44631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVOgh-0002bL-MZ for ged-emacs-devel@m.gmane.org; Tue, 19 Aug 2008 06:43:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVORn-0006RI-9h for emacs-devel@gnu.org; Tue, 19 Aug 2008 06:28:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVORk-0006QY-Ta for emacs-devel@gnu.org; Tue, 19 Aug 2008 06:28:18 -0400 Original-Received: from [199.232.76.173] (port=45448 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVORk-0006Q6-8G for emacs-devel@gnu.org; Tue, 19 Aug 2008 06:28:16 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:8804) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KVORj-0001Ly-T6 for emacs-devel@gnu.org; Tue, 19 Aug 2008 06:28:16 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 56E9678940F7 for ; Tue, 19 Aug 2008 12:28:15 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07468-02 for ; Tue, 19 Aug 2008 12:28:14 +0200 (CEST) X-CHKRCPT: Envelopesender vrfy tassilo@member.fsf.org Original-Received: from thinkpad.localnet (unknown [141.26.67.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id AD5D178940BA for ; Tue, 19 Aug 2008 12:28:14 +0200 (CEST) User-Agent: KMail/1.10.0 (Linux/2.6.26-gentoo-r1; KDE/4.1.62; x86_64; ; ) In-Reply-To: Content-Disposition: inline X-Virus-Scanned: amavisd-new at uni-koblenz.de 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:102639 Archived-At: On Tuesday 19 August 2008 11:58:51 Ren=E9 Kyllingstad wrote: Hi Ren=E9, > 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. Ok, I see. Then this command probably does what you and the OP want. =2D-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))) =2D-8<---------------cut here---------------end--------------->8--- Bye, Tassilo