[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why is make-variable-buffer-local interactive?
From: |
Toby Allsopp |
Subject: |
Re: Why is make-variable-buffer-local interactive? |
Date: |
Sat, 22 Mar 2008 07:39:46 +1300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Toby Allsopp wrote:
>> 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.
On Fri, Mar 21 2008, Lennart Borgman (gmail) wrote:
> Yes, probably. There is of course also make-local-variable which is
> less drastic (but does not help very much in .emacs ... ;-)
On Sat, Mar 22 2008, Stefan Monnier wrote:
> 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).
Ah, thanks, make-local-variable sounds like exactly what I actually
want. Something like set-var-locally would be pretty handy, but I can
easily define one in my .emacs.
Regards,
Toby.