GNU bug report logs - #6915
Please consider making left-margin-width etc buffer local instead of major mode local

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Wed, 25 Aug 2010 22:59:02 UTC

Severity: wishlist

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: MON KEY <monkey <at> sandpframing.com>
To: 6915 <at> debbugs.gnu.org
Subject: bug#6915: Please consider making left-margin-width etc buffer local instead of major mode local
Date: Wed, 25 Aug 2010 23:58:52 -0400
> 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.

I have a better solution.

Please, consider adding a mumamo-hook that makes all mumamo related
vars permanent-local by default..

> And when it is a major mode local variable (as it is today)
> it has to be overriden by multi major modes

Well, there you go.

> (since the margin width is per buffer and you do not want it to
>  change while moving in the buffer).

Says who?

> So I suggest that those variables should be made buffer local.

You've only mentioned _one_ variable `left-margin-width' in this report.
The remainder are (I assume) made implicit with your &rest etc. e.g.:

(defun lennart-needs-pl (variable-isnt-local &rest etc\.)
  (when (or affects-mumamo-p causes-lennart-grief-p)
    (file-bug-report variable-isnt-local)
    (when (and etc\. (listp etc\.)
               (mapc #'file-bug-report etc\.)))))

(lennart-needs-pl 'left-margin-width
                  'some 'more 'unamed 'variables 'from 'buffer\.c)

Run with it.

--
/s_P\




This bug report was last modified 3 years and 96 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.