emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on set-window-margins


From: Nicolas P. Rougier (inria)
Subject: Question on set-window-margins
Date: Tue, 02 Jan 2024 18:58:51 +0100
User-agent: mu4e 1.10.8; emacs 29.1


When I set margins on a window using 'set-window-margins', it works as expected until I switched to another buffer and margins are then reset to 0 on both sides. If I switch back to the original buffer, margins stay at 0. Does that mean that margins are not "attached" to the window nor to the buffer ?

The name of the function suggest it is attached to window (even though nothing is really specified in the documentation) but I wonder if the 'set-window-margins' is actually meant to be transient ?

To keep margins attached to a buffer, I'm using the 'window-state-change-hook' and a buffer local margin definition but maybe I missed a point.

Nicolas

--
Nicolas P. Rougier —— www.labri.fr/perso/nrougier
Institute of Neurodegenerative Diseases, Bordeaux



reply via email to

[Prev in Thread] Current Thread [Next in Thread]