From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: re-loading an elisp file Date: Thu, 24 Mar 2011 12:09:19 -0700 Message-ID: <13CE6AB41DE34088955029C4B450CBA8@us.oracle.com> References: <4D7253C7.2020502@mousecar.com><3954AA73E899435D9BC94337E64B9C78@us.oracle.com><4D726F50.3060808@mousecar.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300993914 14714 80.91.229.12 (24 Mar 2011 19:11:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Mar 2011 19:11:54 +0000 (UTC) To: "'David Combs'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 24 20:11:50 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2pwj-0003p4-NL for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Mar 2011 20:11:49 +0100 Original-Received: from localhost ([127.0.0.1]:44774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2pul-0003jV-NW for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Mar 2011 15:09:47 -0400 Original-Received: from [140.186.70.92] (port=52328 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2puN-0003gm-Rs for help-gnu-emacs@gnu.org; Thu, 24 Mar 2011 15:09:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2puM-0002km-PE for help-gnu-emacs@gnu.org; Thu, 24 Mar 2011 15:09:23 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:35672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2puM-0002ke-Gg for help-gnu-emacs@gnu.org; Thu, 24 Mar 2011 15:09:22 -0400 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p2OJ9JBf015230 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Mar 2011 19:09:21 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p2OJ9JWw001332 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Mar 2011 19:09:19 GMT Original-Received: from abhmt014.oracle.com (abhmt014.oracle.com [141.146.116.23]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p2OJ9I8G009389; Thu, 24 Mar 2011 14:09:18 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Mar 2011 12:09:18 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcvqUvKvsIu/qqtRT6Gb6wY6RxleAwAAwjkg X-Source-IP: acsmt357.oracle.com [141.146.40.157] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.4D8B96DF.017A,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 148.87.113.121 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:80408 Archived-At: > > And even in user init files, practice over the years has > > tended to reduce the habit of using setq in favor of > > taking advantage of Customize (defcustom). There are > > several reasons for that, including type-checking > > and initialization with side effects (i.e., initializing a > > variable can also call for other, related initialization > > operations). > > Customize -- hmmm -- interesting (though I've never used it, > always preferred edit-options kind of thing). > > But please say more about your suggested use of customize in this > situation. Thanks! Dunno what "this situation" is. And I don't have a suggested use of customize. I use `defcustom' to define variables that I expect general users to want to modify. That makes the variables into user options, which means their values can be changed using `M-x set-variable' or `M-x customize-option'. > Also, some more about its type checking, and its initialization > with side-effects. See the `defcustom' doc wrt :type, :init, and :set. (elisp) Variable Definitions (elisp) Customization Types > Maybe also some examples of how you use it in your code-writing. Check the Lisp sources that come with Emacs. Grep `:type' or `:set' or `:initialize'.