From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Make fullscreen with margins Date: Sun, 22 Nov 2020 15:34:21 +0100 Message-ID: <87mtz9h34i.fsf@web.de> References: <87sg91h3si.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12041"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 22 15:34:57 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 1kgqS9-00030R-RR for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 15:34:57 +0100 Original-Received: from localhost ([::1]:60986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgqS8-0002QK-Rt for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 09:34:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgqRf-0002Q3-KX for help-gnu-emacs@gnu.org; Sun, 22 Nov 2020 09:34:27 -0500 Original-Received: from mout.web.de ([212.227.17.12]:40517) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgqRd-0004IF-Nd for help-gnu-emacs@gnu.org; Sun, 22 Nov 2020 09:34:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1606055663; bh=qZfQEs+oce/FAIOVxX5M7U5Z1LscCzVK3ao9OBJf4Kc=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Leq2dh+i0i0EkwKU6PYlZqob2pg4kRusSVLLtLOrnh8CVka8qrNBrnURxy91Q2xGd p8zjINFv6c9W8GV9t5XZOIeC72HE47AhQaEGf1Rz7dSNdqKrX/Jxzlqoh+Dc1DINah 6EHyECw0WBG4Ir0V8O/2/cW2IMyigRzQhSLxcyYQ= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.218.219.247]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M3T5g-1kPJWg3kjw-00r4LE; Sun, 22 Nov 2020 15:34:23 +0100 In-Reply-To: (Christopher Dimech's message of "Sun, 22 Nov 2020 15:25:47 +0100") X-Provags-ID: V03:K1:P7nUVespSyN8bbfoc8Zx2J84DDnwuoQJvn0af0etLVma6sMep6O pf9M/9JRSLzOybKFvNwrHEEFfY1MVoJ396+TVfGr6tcUzbXNQt1oLQUs/NhXvzA7+qyl/Vy gMjKAyVobQFmLDP6sRY7WXPJ72hy0dGmaNzBYU5OCjLs/NDR4D2p0fE+gSadyLCgRdAKnu9 9bcds4nLk+wP2HoWRVVDw== X-UI-Out-Filterresults: notjunk:1;V03:K0:cJMIpvQ+rKQ=:BeCmqxlNSBaESI2hTzIAre +Uc8jOy86hUiIU2BEFsvBpXZWRZo8g8Lqo/gvnJ7emo1f3iwSrBVbEsKGXvIpGoLzEb+xBekN Gpn67iENkFnIT6roShNzdKttBLb1Dy+doHrxpp3vRS2dlL7JWodo+q6gnQ8T/ug602NWE8L/Y g5sG3XlBzIsdTAqskXXLj8s8VrD3mMbJDI396zi7cGr8IzKx1jU2kgglVb5163Nm3+YHKNcYI +uqbtU6lkz5TchBl+/QNY1Gfc+lW/M5I4BS3g+nlX01gTQHxdyTmdUyq5aWbr5XV3obj1le7p 4dMIwl2HicpLbPY0zlE/WHLbvJ7xjWFz8HyoPd6IHqwgcc9z5X8KF5KY6aRnGoTLmSONHC6Cz Epo5EWbrtMdl1XWwQFc7EiFfMY278KrO8d72R27ZZFVnOFvWXAkGSrfeZz2VZ8fwSmkf9TJkN kG+eHoFc4cC4gPqoRV1eQsKgEXpbCRFqpbCpxQm2pb5Brk/+pqos+nkcs9Jq0PBDNw19pwDcJ yLZvUF57oq6UnhhdtvK2Qo/1U8aADd0HB3Nas6agDsHvJXFRn5uLyKLNgCk1rxjKygQn/TBq6 x1v8hW2QA0fLSUkMHCd+kzIIdhICfIV8/ZbwWMpSuJHGM3iyu0R7kU9t/XHyMfr+pBfdqFVWK bmiw5OKDKQNTWxJ4q2em3GVHPpbmXZ+c73kNJdqEorKMGT6Ohy5oeOiA61Ke7vhWmid3Gon2w JBCZXmAuF0OnD2t6ab2l1R4BSz/qCcw5//qu+4BVCzfj6+r1tFPw5Rm5gc1ZvhPkx8LmZvas Received-SPF: pass client-ip=212.227.17.12; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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:125473 Archived-At: Christopher Dimech writes: > I actually used > > (if (one-window-p) Should be ok, yes. > Here is the code. Would you be so kind to comment if this can be > improved? If you are happy with what it does, and `margined-buffer' is a function you defined, I think you can use that. If you intend to distribute your code, your function names should get an according prefix. If not, it's still better to use a prefix like "my-" or so, for the sake that it will later be obvious that that is your own function. That will prevent later confusion, for yourself, or if you post your code etc. Regards, Michael.