From: Toby Allsopp <toby@mi6.gen.nz>
To: Emacs Devel <emacs-devel@gnu.org>
Cc: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>,
Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Why is make-variable-buffer-local interactive?
Date: Sat, 22 Mar 2008 07:39:46 +1300 [thread overview]
Message-ID: <87d4pnq5u5.fsf_-_@candyboy.here> (raw)
In-Reply-To: <47E394B0.8080101@gmail.com> (Lennart Borgman's message of "Fri, 21 Mar 2008 11:57:52 +0100, Fri, 21 Mar 2008 13:59:09 -0400")
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.
next prev parent reply other threads:[~2008-03-21 18:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-19 20:16 Why is make-variable-buffer-local interactive? Lennart Borgman (gmail)
2008-03-20 14:14 ` Stefan Monnier
2008-03-21 6:58 ` Toby Allsopp
2008-03-21 10:57 ` Lennart Borgman (gmail)
2008-03-21 18:39 ` Toby Allsopp [this message]
2008-03-21 17:59 ` Stefan Monnier
2008-03-21 18:36 ` Juanma Barranquero
2008-03-21 18:45 ` Stefan Monnier
2008-03-21 18:57 ` Toby Allsopp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d4pnq5u5.fsf_-_@candyboy.here \
--to=toby@mi6.gen.nz \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.