unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to make-variable-buffer-local using only defcustom?
@ 2005-04-21 18:10 Drew Adams
  0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2005-04-21 18:10 UTC (permalink / raw)


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)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to make-variable-buffer-local using only defcustom?
       [not found] <mailman.2443.1114107256.2895.help-gnu-emacs@gnu.org>
@ 2005-04-21 19:00 ` David Kastrup
  2005-04-21 20:09   ` Drew Adams
  2005-05-01 23:51 ` Stefan Monnier
  1 sibling, 1 reply; 4+ messages in thread
From: David Kastrup @ 2005-04-21 19:00 UTC (permalink / raw)


"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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: how to make-variable-buffer-local using only defcustom?
  2005-04-21 19:00 ` how to make-variable-buffer-local using only defcustom? David Kastrup
@ 2005-04-21 20:09   ` Drew Adams
  0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2005-04-21 20:09 UTC (permalink / raw)


    > Is there a way, using only defcustom, to `make-variable-buffer-local'?

    Why?

I'm just asking if there is already such a thing (keyword); I'm not
suggesting there should be. If there is, I'll use it, to do everything
inside the defcustom; if there is not, that's fine with me.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to make-variable-buffer-local using only defcustom?
       [not found] <mailman.2443.1114107256.2895.help-gnu-emacs@gnu.org>
  2005-04-21 19:00 ` how to make-variable-buffer-local using only defcustom? David Kastrup
@ 2005-05-01 23:51 ` Stefan Monnier
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2005-05-01 23:51 UTC (permalink / raw)


> Is there a way, using only defcustom, to `make-variable-buffer-local'?

No.  Especially not with defcustom since Custom handles buffer-local
variables very poorly as of now,


        Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-01 23:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2443.1114107256.2895.help-gnu-emacs@gnu.org>
2005-04-21 19:00 ` how to make-variable-buffer-local using only defcustom? David Kastrup
2005-04-21 20:09   ` Drew Adams
2005-05-01 23:51 ` Stefan Monnier
2005-04-21 18:10 Drew Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).