GNU bug report logs -
#37213
Execute set-window-margins. left-margin-width remains 0.
Previous Next
Reported by: Alan Mackenzie <acm <at> muc.de>
Date: Wed, 28 Aug 2019 18:54:01 UTC
Severity: normal
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
Message #40 received at 37213 <at> debbugs.gnu.org (full text, mbox):
Hello, Martin.
On Sun, Sep 01, 2019 at 10:26:35 +0200, martin rudalics wrote:
> > Is the read value well-defined? Never having set it, the value it has
> > seems always to be 0.
> All margin-related values are zero by default.
> > But even if it is well-defined, is it useful for
> > anything?
> To keep you informed about the sizes of the margins of a window
> whenever the buffer will be shown in it via 'set-window-buffer'.
OK. It seems there are two alternative strategies for manipulating a
window's margins. One is to use set-window-margins together with
window-margins, the other is to use left/right-margin-width and
set-window-buffer.
> > Yes, that's the thing. We don't have "window local variables" in Emacs,
> > so anything specific to a window needs a function interface with the
> > window being one of the parameters.
> Right. Windows behave like frames in this regard.
> > I've proposed a simple amendment to the "Display Margins" page of the
> > elisp manual, saying "don't use these variables to ....!". This would
> > solve the misunderstanding I experienced earlier.
> Hmm... What is the "current width of the left or right margin"?
I'm not sure I understand the question. In a given window with a left
margin, there will be a maximum length of string which can be displayed
in that margin. That is its "current width". The same for a right
margin. What are you getting at, here?
> martin
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 5 years and 325 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.