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: redefining/re-evaluating a defcustom [was: Modifying many function calls] Date: Wed, 27 Oct 2010 07:24:45 -0700 Message-ID: References: <4CC7DEB0.8040401@easy-emacs.de> <4CC80856.9050605@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1288191098 17873 80.91.229.12 (27 Oct 2010 14:51:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2010 14:51:38 +0000 (UTC) To: "=?iso-8859-1?Q?'Andreas_R=F6hler'?=" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 27 16:51:35 2010 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 1PB7Le-0006zP-Qg for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Oct 2010 16:51:33 +0200 Original-Received: from localhost ([127.0.0.1]:57082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PB7LY-0003BN-Ke for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Oct 2010 10:51:24 -0400 Original-Received: from [140.186.70.92] (port=50937 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PB70F-0004Yd-8l for help-gnu-emacs@gnu.org; Wed, 27 Oct 2010 10:30:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PB6zU-00018c-4F for help-gnu-emacs@gnu.org; Wed, 27 Oct 2010 10:29:19 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:50213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PB6zT-00018R-Vd for help-gnu-emacs@gnu.org; Wed, 27 Oct 2010 10:28:36 -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 o9RESNK9024085 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 27 Oct 2010 14:28:24 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o9RDmMhZ020767; Wed, 27 Oct 2010 14:28:19 GMT Original-Received: from abhmt003.oracle.com by acsmt355.oracle.com with ESMTP id 722471951288189503; Wed, 27 Oct 2010 07:25:03 -0700 Original-Received: from dradamslap1 (/10.159.221.25) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 27 Oct 2010 07:25:01 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4CC80856.9050605@easy-emacs.de> Thread-Index: Act1x4m9oYFCaqQURSm6cPwWgXJZ9wAGtF7Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:75255 Archived-At: > > why I can't redefine a variable with defcustom? I mean if I do > > > > (defcustom x 1) then I want to change it > > and I write and evaluate (defcustom x 2) > > > > then even if I set it to nil and the reevaluate again still > > it doesn't care. Is that normal? > > AFAIK yes. It's little bit like with `defvar', but not that strictly, > rather unpredictable. I think it's completely predictable. Yes, it's like `defvar'. > Use `setq' ... to make sure the new value is taken. Interactively, you can just put point inside the defcustom somewhere and hit `C-M-x'.