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

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).