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:54 +0200 Message-ID: <263050b1-8a57-dd39-bd49-88913935f96e@gmx.at> References: <20190828185352.GA4530@ACM> <83r255ayq9.fsf@gnu.org> <20190828195706.GB4530@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="8014"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37213@debbugs.gnu.org To: Alan Mackenzie , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 29 10:01:47 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 1i3FNH-0001o0-6O for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Aug 2019 10:01:43 +0200 Original-Received: from localhost ([::1]:46686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3FNF-00035R-Ny for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Aug 2019 04:01:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49583) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3FA3-0004Sm-Ha for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 03:48:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3FA2-0002iS-GZ for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 03:48:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42721) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3FA2-0002iH-DU for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 03:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3FA2-0004oe-AT for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2019 03:48: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:48: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.156706482718431 (code B ref 37213); Thu, 29 Aug 2019 07:48:02 +0000 Original-Received: (at 37213) by debbugs.gnu.org; 29 Aug 2019 07:47:07 +0000 Original-Received: from localhost ([127.0.0.1]:51542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3F98-0004nD-W9 for submit@debbugs.gnu.org; Thu, 29 Aug 2019 03:47:07 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:34447) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3F97-0004mb-On for 37213@debbugs.gnu.org; Thu, 29 Aug 2019 03:47:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1567064815; bh=HXjcwbE07b7EyHlP+xhwvqo7565tdkyRlL73bY+0PeE=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=FQygZ7Koquurc/BTLru/gZpNj7FxAyQg2A1aUagtaweiW2kJYTEXGwLTm+WVoCPPq RbeAi1fiprUL/YcT2ZnW+bFqusI1ds+Ef9Dkc8LldQm+zWR5U7Ivht/EB4mKL9rby4 AiLlmHYQcALb5yE++GcBQVu+zJQd030tF/OrehNQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.63]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MUGiJ-1hc7bR3vpz-00RJPB; Thu, 29 Aug 2019 09:46:55 +0200 In-Reply-To: <20190828195706.GB4530@ACM> Content-Language: de-DE X-Provags-ID: V03:K1:82kACJGXQzQY/xdvGsKjkGZxHnvWqBeM3mEyqVrWys5FWs5QnmX eVLu/iAShRF4ivYWOPAC3rl5cSz3ZfQXsLqDCpZFgnGsiBTE1ymu99tlKmm9yzkL7jWFdBC cY+CYN+bMTlARHVp0DKvhLEYKKtRwNmfvpCcaaLmMw6Mggj0mSdHBrY0Hif+/sXHgE+3QNe g/wFtzYJttKOOTnjqOe3g== X-UI-Out-Filterresults: notjunk:1;V03:K0:fQJ3igHIvSI=:wHixI4ubCJ2RuMqSOd6Mqy VgMXSqsjVXpB0qzwDZREg2ieRfmDVkkPRoiGp0h02mRgSFgylWdc896Spi03QQ13J9Ete+mYc RT2GnUI5fE/9MW3qIHnESUPNtVT31HIedjOlSJ7wb1I0pIMcju+jBkVMbZz2hcH/BgNV+mHEL R4KVa5/vTGvFYYo7F/DhVrlHDz01R1VjfA2h+gZToKXifWPdXkTHfb6w2vGXzMCdaP51Vr7ri UYWp4DkX8XxyoE7sRZMebvwiIwzznUP6QYcaog74q4eY+AHkzUTezqfXNXyg9+MqVN0XTUsG4 TzZaVyjxtXWICwuYjVPNNdayTTeT+owPGneUJwI70epOgSF7N2nvKcFrNAKG5q9bMfSqiJZ0X z/vu0vRkIACquUW5TTrNDMgJ9IqzEz7yZrxpoI4Ws4rqYDmoeTggoG3wnFH3fInYVJDtcPPwn d/cVY7tryPzsYnlbKwvUEJ1H80nJt7wxizIalTShvDIEENYDvXDK+Z48tZlcSydKNbJAPp3BB ddQr/quONhJgDcHnX0ZmTWqwRYAjLD1NKjdCNJX+y4xcETSmetxsnV88+r2t6lr8jmIVgG0RL yEAmmCjTwG8s5LOyMLS+TqCgs0ggk4QdGf31mAMnbXkGyZgM2AKFfd3yHGjpFzHVfInrBHG0G nnQ5yThVyVTNbXc+1REJYbW6Y5/831vWQAZ5eaqOwdZVZTPZdTs5OSaIt3sObEzbiuok7Luj6 hn8vaiRYGwuYrKOYOfn2G5NtnYOYw1adB8u40FW4uORofrFAPxxMDPgLD1Y94RKElIUqLlRG 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:166039 Archived-At: > The documentation says "This variable specifies the width of the left > margin". As best, this is unclear. What you're saying is that the > variable ceases to specify that width, should the margin be altered by > other means. Eli didn't say that. > I maintain that this is either a bug in the documentation, or in the > code. > > If the former, it should explicitly state that the variable is > write-only, and its read value is undefined. It should say that the > function window-margins should be used instead. The variable is not write-only and its read value is well-defined. > But it might be easier just to amend the code. There appear to be just > two ways to set the width of the left margin (or the right margin), so > if it gets set the second way, why not just set that variable? Could > this do any harm? (Note: I haven't looked at the code, yet.) Please re-read the documentations of 'left-margin-width' and 'set-window-margins' having in mind that the same buffer may appear in different windows and the same window may show different buffers all with differing margins. Once you've done that, please look at the respective documentations for fringes and scroll bars which are even more complicated because they have to obey a frame parameter as well. Thanks, martin