|
From: | Lennart Borgman |
Subject: | bug#6915: Please consider making left-margin-width etc buffer local instead of major mode local |
Date: | Thu, 26 Aug 2010 00:59:01 +0200 |
I just got a bug report for nXhtml (https://bugs.launchpad.net/nxhtml/+bug/619587) that seems to be caused by that left-margin-width is major mode local. I can protect this from getting changed in mumamo.el, but I wonder whether this variable and some other variables at the same place in buffer.c should be made buffer local instead of major mode local. (I.e. I wonder whether they should be have the property permanent-local set to t.) To me it looks like it is more likely that it is used as a buffer local variable (cf linum-mode for example) than a major mode local variable. And when it is a major mode local variable (as it is today) it has to be overriden by multi major modes (since the margin width is per buffer and you do not want it to change while moving in the buffer). So I suggest that those variables should be made buffer local.
[Prev in Thread] | Current Thread | [Next in Thread] |