help-gnu-emacs
[Top][All Lists]
Advanced

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

how to make-variable-buffer-local using only defcustom?


From: Drew Adams
Subject: how to make-variable-buffer-local using only defcustom?
Date: Thu, 21 Apr 2005 11:10:08 -0700

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)





reply via email to

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