Subject: Re: bug#5627: 23.1.90; outline-regexp ignores customization

From: Andreas Röhler <[email-masked]>
Date: Wed, 24 Feb 2010 21:20:20 +0100

Stefan Monnier wrote:
>> customization of this var is the way adapting it at changing needs.
>> A defvar seems rather worst.
> 
> No, as you have noticed, this variable is major-mode dependent, so
> there's no point customizing it with Custom since Custom only knows how
> to manipulate default (aka global) settings.
> 

Probably I ignore something: should't a globally set variable work in a mode also?

> If/when Custom is improved to handle mode-dependent settings, we can
> revisit this, but for now it makes no sense to me to provide it as
> a defcustom.
> 
> 
>         Stefan
> 

A clean solution in my eyes would be to remove the mode-setting - rather retain the global variable here.
As it's name says, its mode-oriented anyway.

Andreas