[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to make-variable-buffer-local using only defcustom?
From: |
David Kastrup |
Subject: |
Re: how to make-variable-buffer-local using only defcustom? |
Date: |
Thu, 21 Apr 2005 21:00:17 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Drew Adams" <drew.adams@oracle.com> writes:
> Is there a way, using only defcustom, to `make-variable-buffer-local'?
>
> That is, instead of doing a defcustom plus a make-variable-buffer-local, is
> there a keyword (:local perhaps?) or some other way to indicate to defcustom
> that the variable is to always be buffer-local? For example, instead of
> this:
>
> (defcustom foo t "*If nil, then..."
> :type 'boolean :group 'foobar)
> (make-variable-buffer-local 'setnu+-fit-frame)
>
> can you do something like this:
>
> (defcustom foo t "*If nil, then..."
> :type 'boolean :local t :group 'foobar)
Why?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum