From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: How to keep window margins after switching buffers? Date: Sun, 25 Apr 2021 19:12:00 +0200 Message-ID: <626fa175-c417-9999-afa6-8f65cfa9ac7f@gmx.at> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8733"; mail-complaints-to="usenet@ciao.gmane.io" To: Jean Louis , Help GNU Emacs Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 25 19:13:35 2021 Return-path: Envelope-to: ged-emacs-devel@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 1laiK6-0002At-T3 for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Apr 2021 19:13:34 +0200 Original-Received: from localhost ([::1]:50736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laiK4-0004oI-42 for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Apr 2021 13:13:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laiJA-0003z5-17 for emacs-devel@gnu.org; Sun, 25 Apr 2021 13:12:36 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:54231) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laiJ8-0005Tq-Bh for emacs-devel@gnu.org; Sun, 25 Apr 2021 13:12:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619370721; bh=4tRGn/nIOggGiNVHt1T8730fw7VSDp6cw3oLis6V3XY=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=WmXf6hsroh0YzT/BaIuW2HcSmkmlFqcZ8Ld8gxu4hy8KXjRL7/8P9R/EJARDrn6v3 aq09utplw+qScF9ulbiLFlXsuo6a51+qZZj/2u4V4pQFo8JKRh9hIbkrysYXRKBOTQ eg0EAjz372UiY4Fx3gmBDZDbk5kAlH1qQYmKJB/Q= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.118]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MBUqF-1lkrhm1Xe3-00D1OX; Sun, 25 Apr 2021 19:12:01 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:JWLmUkWdrRFGRPIJfBrRM65xL8tUdI98BSCaDHBXJH/pencPo+u bW5+PN/fVdHmeZo9oQydMdf4OemA9j9fO3DRb9bhDOT5pi69JA/QQTFK6tnymHWFXbRF9oS 6ks+61XTdv9IF8Z28A2ikM4KXLCBb6K44Nmg4MYIU1HxUc8vRgsl22Aa4LWnQvfoydhhfLh P67ZIcwvLrtCR7wOQpfjg== X-UI-Out-Filterresults: notjunk:1;V03:K0:dxtI+C3cGvo=:MQayyOU9E6Br3onlS8RBw+ AnBaMdx5tQUGFgxtTR40ja1vTDnH44SjyoLUPJSwY6y4GzAgWjJWH5pd4U7VREtpinyKcfcBR oHOQ+dvwGp8HZVu01omIkAtVuxUr4ngd47SgTPjC1ZvYkKLlxNs1claVYeCWHn4u2+60LRVQp EH+aBU9Bl7FA9AkRi6TSSmEeLDoQRxwetjUs8SR4vQQl8DJh67KcTUTOIuNKQ19PC/BqDopQC 6OY2en4KVfNlC9PvwbIx3OhiJRanw2S7C1vhvy2upwwZDVBso/uHQZ7nbbqpPe/t4viA6enf5 7+eOsSCOU1N/Bm6e1BzZsJZXVVH93LwS6tx2auEEyFMZ0f2MWwpgnTKpSQMVtUoe++BR/J3+H g6VFTukM0HRxQytg/yfTaHJWXVYShPXcsqTjoe1BHVRAslICAWvk3kEm0Nx3jQN+AMgVzBF3K aEgbSNolJhbnLA79sRYDIhhktmvKUaTJdBEyn8r52LY7FXouww+GmujZHwTmNK7LXLO/Y1yn8 8lDxrrdw5MZsWNzHhIpXdiVesQYyI5FBez9W4onmjD5+Mj6jHCeiR+RW0Vhk3VGvdfPhJo5gk G4cYU5rRsjDde/WwDLIlc5ltmBW/Lqj46oELGuaLFsVRjX7zlq5DduLD4cjN8DwGsB8g3Nl22 wG+Y/UF0TMpVhHiAystLZKdGljhorAYFl8oKpveMangRWfQTM+EKRnLEe3hgvE6PONse75D30 tLwfSeUbGu1G5FWc5cEXFvhhb3238OO4+7AYt4QSAnUHXud1abqgP8ddHZRfu7JBT48cXnh/ Received-SPF: pass client-ip=212.227.17.21; envelope-from=rudalics@gmx.at; 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268396 Archived-At: > I have rather aesthetical need to have window margins, I use it as: > > (set-window-margins (get-buffer-window) 10 10) > > But when I switch to other buffer and come back margins disappea. > > Would there any way to keep margins for specific buffer even after > switching? I suppose you want to set `left-margin-width' and `right-margin-width' for that buffer instead. martin