From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: how to make-variable-buffer-local using only defcustom? Date: Thu, 21 Apr 2005 21:00:17 +0200 Organization: Organization?!? Message-ID: <85hdi0oszi.fsf@lola.goethe.zz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114110085 328 80.91.229.2 (21 Apr 2005 19:01:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2005 19:01:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 21 21:01:23 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOguY-0003ot-V9 for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Apr 2005 21:00:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOgzK-0004rX-Il for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Apr 2005 15:05:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!noris.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:0g2ogIEys4C+Aotha679CyNpMyY= Original-Lines: 22 Original-NNTP-Posting-Date: 21 Apr 2005 21:00:31 MEST Original-NNTP-Posting-Host: 8b8f87da.newsread2.arcor-online.net Original-X-Trace: DXC=[MWOFQVd=6hGnN95NbAh:aQ5U85hF6f; djW\KbG]kaMh:cmYYm_h3\cd_ZcKFmL4_iQ1Yo0:e7@Pkc[Wn>\JAZH`Ec?`[F:Wf@lS0Z7P_VSZcb Original-X-Complaints-To: abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:130329 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25901 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25901 "Drew Adams" 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