From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Make fullscreen with margins Date: Sun, 22 Nov 2020 15:25:47 +0100 Message-ID: References: <87sg91h3si.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23286"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 22 15:28:08 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kgqLY-0005y7-3k for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 15:28:08 +0100 Original-Received: from localhost ([::1]:54782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgqLV-0007tM-DZ for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 09:28:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgqJL-0007tC-Iw for help-gnu-emacs@gnu.org; Sun, 22 Nov 2020 09:25:51 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:52513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgqJJ-0001V2-QY for help-gnu-emacs@gnu.org; Sun, 22 Nov 2020 09:25:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606055148; bh=Eewfye0uOb2QqRpXh02++A3p6DXwiPjGyGq6XKTcWjU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=atmemb3oxYs93XgEKBTNTmg2HHq9xCSwGQbJU9wsKotoYFN3TmFUNHy82+a1OKxOw KulpI4cfsVujnu0zB92SqKzPWNelYVp+Lt500EpqjY4Lin11iEvahWgctz0pKiL3eR kJ593aAiaHMaMPGYShbOQyZ5GI2EAPRAnO+e/yyc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs11.server.lan [172.19.170.179]) (via HTTP); Sun, 22 Nov 2020 15:25:47 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87sg91h3si.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:F8dj/R6UUV6VAtp3QzKgETrmSPafrU1y2TlPzQlnjL4LRyN7joDqxBF7YyZUBhWlpVRL1 mAtoHsAcN39mU09MbBn5rixv8ngaAo6NqkHrquLDYqxL/O2qwaW6OfQP1rGZGV2qxNh92JLwXU1C ouiaY8nuEqxOxd+m4oo24Xze4zWykKboLSpjnPIBJuxXLFo2m7z0eXhiTA8djZcxga1gmPrzfCn3 4TQoS0yeYb6PQojDa/uijlkmwZwjktGrAnnm/PLtM7EGJPSvPoxgjN73WMQR1XKNfMzGLFCtJyGL Kc= X-UI-Out-Filterresults: notjunk:1;V03:K0:8Jt5ARn0qd0=:nBYl5vI6pAxGBQWaVEranX CjJ4ALFGKzswIbNMsxiU1tWcpDXXmxx7SMIfXsY+3Onow4UXUpHyCCwh3rGAkGinZuGHMqxtf FTS0yFP4trtNpxT63K3m4k2gE9Y4Q0EchJz/PTACOuTg/ORnDczAWTReYJZddK/QwIWbWhbCT DElu6ROIHS58Ya9ifQ8zWQle00kkKWs2KRQA+TDx4ZK4BNpErj4GJU62ZNNGvfZSi5rUAneNO giUEryBAIht+lMUthjIVY+PG3QCEoO+aURDXmDKiaWXC8DE5E60GMBMEbSdizhb+gxHf1/ihi cozlz9Oq0EqX81ghVtageWDGy+2lTC+++aXKWZKKoEOFMx8pjAsAQ36gxg/ZTqCB5TFE9SBDL eV3Xi1e53bS1tzQ4IGWexxCzKZ4gN+AP8UhNDezV09LEzO6Hu9JMfgr8Ijsyu8X/G/R+tFF9r 4Og4+J5hPlqoTpa+fc8rB87lOgIBkzFyWn6/qMVqkluqeBdmnAQJoUPRfAwO8e2iKkiZYCiSX 2NJZheuJSr5tFqZY67ialFHU1bm7qTAukj9j7RQC/jRHQlQRL7a8G8YMlg9omNc47P5oanm7d ldrPrOoWwtmGw= Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125472 Archived-At: I actually used (if (one-window-p) Here is the code. Would you be so kind to comment if this can be improved= ? (defun fullscreen-toggle () "Toggles to fullscreen" (interactive) (if (eq (frame-parameter nil 'fullscreen) 'fullboth) (if (one-window-p) (progn (margined-buffer 0) (disable-fullscreen)) (disable-fullscreen)) (if (one-window-p) (progn (margined-buffer) (enable-fullscreen)) (enable-fullscreen)) )) > Sent: Sunday, November 22, 2020 at 3:19 PM > From: "Michael Heerdegen" > To: help-gnu-emacs@gnu.org > Subject: Re: Make fullscreen with margins > > Christopher Dimech writes: > > > I have the following code for getting to full screen Have made buffer-= margins > > that sets a margin on either side of buffer. Bet I would like that th= e > > margins are only set when there is only one buffer in the frame. > > AFAIU you want a test like (cdr (window-list)). > > > >