From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; Feature request: eval-defun on defcustom :initialize / :set Date: Fri, 04 Apr 2008 11:28:12 -0400 Message-ID: <47F6490C.5050409@gnu.org> References: Reply-To: emacs-pretest-bug@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207322931 19364 80.91.229.12 (4 Apr 2008 15:28:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 15:28:51 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Reiner Steib Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 04 17:29:23 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jhnql-000140-Co for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2008 17:29:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jhnq8-0005yw-M4 for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2008 11:28:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jhnq4-0005y8-CP for emacs-devel@gnu.org; Fri, 04 Apr 2008 11:28:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jhnq0-0005vO-EV for emacs-devel@gnu.org; Fri, 04 Apr 2008 11:28:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jhnq0-0005vL-7N for emacs-devel@gnu.org; Fri, 04 Apr 2008 11:28:20 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jhnq0-0005LK-4F for emacs-devel@gnu.org; Fri, 04 Apr 2008 11:28:20 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jhnpz-0004BY-JJ for emacs-pretest-bug@gnu.org; Fri, 04 Apr 2008 11:28:19 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Jhnpw-0005KQ-DL for emacs-pretest-bug@gnu.org; Fri, 04 Apr 2008 11:28:19 -0400 Original-Received: from [66.155.124.107] (helo=smtp.janestcapital.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jhnpw-0005KI-41 for emacs-pretest-bug@gnu.org; Fri, 04 Apr 2008 11:28:16 -0400 Original-Received: from [172.25.131.105] [38.96.172.125] by janestcapital.com with ESMTP (SMTPD-9.10) id A90F0130; Fri, 04 Apr 2008 11:28:15 -0400 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) Original-Newsgroups: gmane.emacs.pretest.bugs Original-Followup-To: gmane.emacs.devel In-Reply-To: X-Enigmail-Version: 0.95.6 X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94340 gmane.emacs.pretest.bugs:21862 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Reiner Steib wrote: | | I think `eval-defun' (C-M-x) on a defcustom which has should evaluate | the :initialize or :set function. | | Real-life example: Changing the list of regexps in | `smiley-regexp-alist' and doing `C-M-x' has no effect. I modified and | evaluated the defcustom several times until I noticed that I need to | eval `(smiley-update-cache)' as well before my change does anything. it is not obvious that this is correct. defcustom is similar to defvar which does not set the the variable if it is already defined. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH9kkMPp1Qsf2qnMcRApnPAJ9fX7UhyrWmOBrNJlxlmp01EEBt0wCfbp1R FB1CV3xsb8dOrQMgI+IPGHY= =LvsH -----END PGP SIGNATURE-----