unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6915: Please consider making left-margin-width etc buffer local instead of major mode local
@ 2010-08-25 22:59 Lennart Borgman
  2010-08-26  3:58 ` MON KEY
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Lennart Borgman @ 2010-08-25 22:59 UTC (permalink / raw)
  To: 6915

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.





^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-04-17 13:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-25 22:59 bug#6915: Please consider making left-margin-width etc buffer local instead of major mode local Lennart Borgman
2010-08-26  3:58 ` MON KEY
2010-08-26  9:19   ` Lennart Borgman
2010-08-26 12:16     ` Juanma Barranquero
2010-08-26 12:40       ` Lennart Borgman
2010-08-26 13:05         ` Juanma Barranquero
2010-08-26 20:01           ` Lennart Borgman
2010-08-26 22:20           ` MON KEY
2010-08-26 23:30             ` Lennart Borgman
2010-08-27  2:59               ` MON KEY
2010-08-27  8:39                 ` Lennart Borgman
2010-08-28  3:49                   ` MON KEY
2010-08-28  6:26                     ` Lennart Borgman
2010-08-30  0:45                       ` Ken Hori
2010-08-30  0:55                         ` Lennart Borgman
2010-08-26 22:51 ` Stefan Monnier
2010-08-27  3:47 ` bug#6915: Please consider making left-margin-width etc buffer local inst MON KEY
2022-04-17 13:55 ` bug#6915: Please consider making left-margin-width etc buffer local instead of major mode local Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).