emacs-devel
[Top][All Lists]
Advanced

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

Re: Why is make-variable-buffer-local interactive?


From: Stefan Monnier
Subject: Re: Why is make-variable-buffer-local interactive?
Date: Fri, 21 Mar 2008 13:59:09 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> Does it really make sense to do such changes interactively? If you
>> know what you are doing when you call this function then surely you
>> know how to do it in elisp, or?

> FWIW, I use M-x make-variable-buffer-local quite often while editing
> Perl code using cperl-mode.  I find that I quite often want different
> values of `cperl-indent-level' in different buffers.  Perhaps this means
> I should just put (make-variable-buffer-local 'cperl-indent-level) in my
> .emacs.

This is not a good use case for make-variable-buffer-local.  It's a use
case for make-local-variable (or something along these lines: maybe
there should be a M-x set-var-locally).


        Stefan






reply via email to

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