GNU bug report logs - #37213
Execute set-window-margins. left-margin-width remains 0.

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Alan Mackenzie <acm <at> muc.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 37213 <at> debbugs.gnu.org
Subject: bug#37213: Execute set-window-margins. left-margin-width remains 0.
Date: Sun, 1 Sep 2019 10:26:35 +0200
> 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'.

> 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"?

martin




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.