From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Per Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: Customize Rogue Date: Fri, 07 Mar 2003 09:03:20 +0100 Organization: The Church of Emacs Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20030306101038.6330.LEKTU@terra.es> <20030306164300.633F.LEKTU@terra.es> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047024320 2300 80.91.224.249 (7 Mar 2003 08:05:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2003 08:05:20 +0000 (UTC) Cc: emacs-custom@sunsite.dk Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Mar 07 09:05:18 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18rCr0-0000ax-00 for ; Fri, 07 Mar 2003 09:05:18 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18rDBi-0004qF-00 for ; Fri, 07 Mar 2003 09:26:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rCpd-00041Z-07 for emacs-devel@quimby.gnus.org; Fri, 07 Mar 2003 03:03:53 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18rCpL-0003sj-00 for emacs-devel@gnu.org; Fri, 07 Mar 2003 03:03:35 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18rCpH-0003n7-00 for emacs-devel@gnu.org; Fri, 07 Mar 2003 03:03:32 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rCp8-0003TB-00 for emacs-devel@gnu.org; Fri, 07 Mar 2003 03:03:23 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18rCoa-0000T1-00 for ; Fri, 07 Mar 2003 09:02:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18rCoa-0000Sr-00 for ; Fri, 07 Mar 2003 09:02:48 +0100 Original-Lines: 46 Original-X-Complaints-To: usenet@main.gmane.org X-Face: +kRV2]2q}lixHkE{U)mY#+6]{AH=yN~S9@IFiOa@X6?GM|8MBp/ User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (sparc-sun-solaris2.8) Cancel-Lock: sha1:sQrmgBsMVhm+QBnpkDOEQSe7pgo= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12134 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12134 Juanma Barranquero writes: > I reacted to the word "transition"**, Does the word have any special positive or negative connotations? > 1.- Not getting the "modified outside of customize" messages that I get > the odd time I use it. They are there for a reason. > If the value is right, I don't see the point of > knowing i.e. if I set custom-file to ".emacs.custom" via setq or through > M-x customize-variable; the message makes me wonder if anything's wrong... Which is good, because if you have set it with setq and you try to save it with customize, the customize save will be overwritten by the setq. custom-file probably should not have been declared with defcustom, as it make no sense to change it throug customize. > 2.- Using the customized initialization/setting/getting/whatever code > for those variables that have special needs. I'd like to do > > (custom-setq variable value) ; or whatever > > and get customize to check the value against the type spec, etc. customize-set-value only make type-checks when used interactively, when used from Lisp is works just like setq. customize-set-variable will tell customize the variable has been set interactively, and call any speciel ":set" functions. The first property means it should never be called from ".emacs", but the second could be generally useful. Maybe we should have a function that does the second (obey :set) without doing the first. I'm not a Common Lisp programmer, but I suspect it would be natural to use setf for that purpose. This way we could do things like (setf menu-bar-mode nil) and it would just work.