From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#37213: Execute set-window-margins. left-margin-width remains 0. Date: Thu, 29 Aug 2019 09:46:34 +0200 Message-ID: <77150b42-bc15-89ff-bf67-f2c938ac6b5c@gmx.at> References: <20190828185352.GA4530@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="237313"; mail-complaints-to="usenet@blaine.gmane.org" To: Alan Mackenzie , 37213@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 29 09:54:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i3FG1-000zX5-Qd for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Aug 2019 09:54:14 +0200 Original-Received: from localhost ([::1]:46616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3FG0-0007su-Go for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Aug 2019 03:54:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49421) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3F95-0004Cm-UZ for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 03:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3F94-0002Bh-VX for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 03:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42717) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3F94-0002BZ-SA for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 03:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3F94-0004ml-Na for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 03:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Aug 2019 07:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37213 X-GNU-PR-Package: emacs Original-Received: via spool by 37213-submit@debbugs.gnu.org id=B37213.156706480618364 (code B ref 37213); Thu, 29 Aug 2019 07:47:02 +0000 Original-Received: (at 37213) by debbugs.gnu.org; 29 Aug 2019 07:46:46 +0000 Original-Received: from localhost ([127.0.0.1]:51538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3F8m-0004m5-Pa for submit@debbugs.gnu.org; Thu, 29 Aug 2019 03:46:45 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:40987) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3F8k-0004lj-RI for 37213@debbugs.gnu.org; Thu, 29 Aug 2019 03:46:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1567064794; bh=2aMb0OzmU6QXQhTcgH+pn9/grXO2YdmG+9T82T8uGpc=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=gVxI/sfnyLvtDOTCDi4O9wfFga1Im8AZ5Ie7ZMdd7kkRek2etE+RlkOaDOhOepoLb qJf6Kx8xfWXsgCz4oX8TgiZNPRD1sccjIjJRGzcJ+aQkj1MYlZSXG8Kyvduu0/jKdj oL14miQu5qK311ZyjborWfdcxe2LL/igSx5AJ2hY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.63]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LqE5k-1igigU2hnM-00dr2b; Thu, 29 Aug 2019 09:46:34 +0200 In-Reply-To: <20190828185352.GA4530@ACM> Content-Language: de-DE X-Provags-ID: V03:K1:PfO/oieHgbUOiEPD+KeqcukvgW3+MavYWRcfeog52JqhqvVuxwA tLY3T05NSNXa3b2adf9veW96IfZkeCQuxSpFPrMc5uoZvutu/tvtrC0xLyrH7fVJvlTmAw6 Jz9sN81a5XulNXdNyX7nWyTkngq85CPd8pbaptgehZKtpzoY9HNKPJ9gqEwQALd+0wLyKZZ X0+1pOlsGwKk0suP7KniA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ma5Volcz89c=:pF4/885dn311FGy76Q8W/j YsLKTJCjrTtckB8zsSt6JtlN09ZqIshPEL41xM7dMAkzhSHkus/cn9Rm+RBU4oDa/zrfBTeMX AqWT2x6KMOXloM2lsCjFWxP1jGpnGN+vzi3j3yrivIh+ziMZyRjDvmCGTQUgDoiIaYBMXvhcT HE1RCxAF0Jg68FjUgEpiiiwjAhQIA2jEBpe7/6e9n3L5KWxwi84MPpXAQuLdsMsLmxtvC3z+Q a82HDnQXGoNXQaZcFUP4s4MK0pgod6Tdvyr0oOmDiCUNi4DMDoR9ItWB9Uh4g9xpm9W+Ssq6z Q2LHPo0gNIcP3ayPAWz9cvpcSdSHonqlEqgxWVxGppsYAFfEKFPlU1Qu1aB/PCzntpREdpkBx qeNFYPLD+dj28w7eH0HW5mbjxfIEEW7XKS9BIbuMcDMepiUo2qVAEXYr488b/k9oMeTF/CtiL ZdIWWpsdOCO/P6cXD1koyBd+KahbDOu1nOvkeZ1SpJfBaklb7+lgvRPirh1SMjy/MDgCijHYL bL1QEqvkT0eJ/XXRVEWBWSqX+Gi4fFD1T78VBnHViUhb6BttJHspCRyKvLFAXiGIJmC/ERPWg Kx0fJJ0E1bCjggCN6z2qc0kGI0iHYC0ED4JJWru4md9mgWoQc4E8a5d7KKZB7gE6x7WrUaFV2 atveJwM6p8qYBoQxJt9zIgxw8qqDsnS9flXIk3iH6/Iix1DWXw3PeXwj7wgOoM9t9Lx/sMI34 X3kxW/I6XI9i+I1VxpaLll67pyiN1R88cNfcuAUSdKMbDWLtbebVCbvNrnRMPENWOQQr6539 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166038 > Hello, Emacs. Hello, Alan. > In Emacs-27, recent master branch, do: > > emacs -Q > M-: (set-window-margins (selected-window) 2) ; This works. In which sense? > M-: left-margin-width. > > The result is that left-margin-width is still at zero, although the > value should be 2. This is a bug. Neither of the last two statements is correct. 'set-window-margins' sets the margin widths of its WINDOW argument (the selected window in your case) and triggers an update of the display. If WINDOW's buffer is currently displayed in another window as well, the margins of that other window remain unaffected. You can verify that by splitting your window before invoking 'set-window-margins'. 'left-margin-width' is the buffer-local value of the left margin for showing that buffer in a window. That value is put into effect only when 'set-window-buffer' has a window display that buffer. You can verfiy this by setting 'left-margin-width' to some different value before splitting the window as suggested above. Concludingly, you've been comparing apples and oranges here. If the doc-strings or the manual made you do so, please consider adjusting their texts appropriately. Gladly, your questions was about margins only; with fringes we would even have a frame parameter to take into account here ... Thanks, martin