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: Make fullscreen with margins Date: Sat, 21 Nov 2020 21:13:41 +0100 Message-ID: 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="22181"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 21 21:16:13 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 1kgZIq-0005f9-1f for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Nov 2020 21:16:12 +0100 Original-Received: from localhost ([::1]:60354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgZIo-0007kA-QL for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Nov 2020 15:16:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgZGY-0007jJ-QE for help-gnu-emacs@gnu.org; Sat, 21 Nov 2020 15:13:50 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:59465) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgZGS-0006F1-Rj for help-gnu-emacs@gnu.org; Sat, 21 Nov 2020 15:13:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605989621; bh=C03wHDwdRWk/BpcxOiElUbv1Cq3GmCxMyJ7esgwILEc=; h=X-UI-Sender-Class:From:To:Subject:Date; b=dAFetYt5BKRxP3Q5pDNPU4f2KiofdbYc6wooQNt+8qEG4MFaUA0VMaAw/XMJx43kF p1znpCdvd0fVcp6d/FNkraaWR9QGcz5pOIkA8FiEHSVrDshHZDNLSWSKQlvr4n4ffN R6lcMtUzsLJJuKoIkGJKZw4qX06PpGwB5uVG+Ao8= 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); Sat, 21 Nov 2020 21:13:41 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:vlxXIPZJoyRBIKASvhrc4R/oy4GjGGglSEEVM9RvZ2KpqhbZK6v5GZgS8+cVWfIV2V7JF /cEV+pMjCsXCuFQMg8n5ramr2IOqI0GRPSRyyu++YQb8UuyzEWdzuqjgnHApT1FgqmZqhcsJ3z/b tZo8DgwAUQ2tCLeXJm44LHNsI/mrdEe8Un3VEvLtSEt01YZk7/9qMQQgXrqrx0UyzR6ViVtByDuo r1lREZGbRt9TdR7EHAJR1pWw1ZwlYNjmh/4hdCFiPDu29MMke4DaKCqkTHqQTRdvJf5/KCk3fP6p LE= X-UI-Out-Filterresults: notjunk:1;V03:K0:jk1brUou0iw=:Wb0FIKlx2ssJLLxSk9L5+b t92QR2uNxx3xPKIFfECYXiPrY2s2+XP2EiDt7vUmWrjq/fDX57MV4qw3q3uUci9jBi1yTT4Rb xA1AZsAuFhgLKkfkqpeVqw3QnUoC+BXzzfVCzId0Kcnwe7vWA1Atspm0RMLaCnOPBMDBaD/vw Pe8Q+wf2u2P/7q0wOv8dmRnnPRNQ0Jso9AAc1FvYPQkNt/J/wDBhW2/1Br+fxEVpbOn+Hunye Yphzti11I2CuHm59oiJdc9WJpZvT4jsYr776fvQvJUxycA84OYKGF55yG6HAC6h9NQV1+7TH3 /NMsK3Pm1u6GY9qiX3R49JwDjrdY3NTpyJFbAMOERvIjmiXUyyWggrKKJY9idFYRTi+oOyLuW jndLZK6qXEeuZKhNCgd7qZUF9veyYDU37NK0lEkKnUfVTVK9GjSDOrUApkvE9dMy+uXtjQdZm yn7Tu156MLb8i4aGsjSeKrimoP3Vgd5jcaAE/3SOcEkl84Tc+UIQJl7OBZafQYLpxtIpEvFy5 P6SfFk4sbi1Ne8PqIsTEqlwwiiF+f+lHDd0Xq9Yn2HoWT4i2vIWW0I7Xjz97n+/UZib/b70sj 7/Dpgrcbhg5zc= Received-SPF: pass client-ip=212.227.17.20; 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:125453 Archived-At: I have the following code for getting to full screen Have made buffer-marg= ins that sets a margin on either side of buffer. Bet I would like that the margins are only set when there is only one buffer in the frame. (defun fullscr-cycle () "Toggles Fullscreen Mode" (interactive) (if (eq (frame-parameter nil 'fullscreen) 'fullboth) (progn (buffer-margins 0) (disable-fullscr)) (progn (buffer-margins) ! Defaults margins to width of 3 (enable-fullscr)) ))