From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Documentation for custom-file - is not (load custom-file) needed? Date: Mon, 6 Dec 2004 12:34:11 -0600 (CST) Message-ID: <200412061834.iB6IYBu20015@raven.dms.auburn.edu> References: <075b01c4d9a4$52799460$0200a8c0@sedrcw11488> <00bb01c4daee$5eb81350$0200a8c0@sedrcw11488> <200412051733.iB5HXIX13206@raven.dms.auburn.edu> <000001c4db1a$8d3770f0$0200a8c0@sedrcw11488> <200412060046.iB60kZj15003@raven.dms.auburn.edu> <003e01c4db31$e45a2550$0200a8c0@sedrcw11488> <200412060402.iB6421q15173@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1102358227 16382 80.91.229.6 (6 Dec 2004 18:37:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2004 18:37:07 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, jpw@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 06 19:36:52 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CbNjA-0007uT-00 for ; Mon, 06 Dec 2004 19:36:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbNsv-00065m-1A for ged-emacs-devel@m.gmane.org; Mon, 06 Dec 2004 13:46:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CbNsT-00063V-DB for emacs-devel@gnu.org; Mon, 06 Dec 2004 13:46:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CbNsS-00063J-QE for emacs-devel@gnu.org; Mon, 06 Dec 2004 13:46:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbNsS-00063G-ML for emacs-devel@gnu.org; Mon, 06 Dec 2004 13:46:28 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CbNiJ-0000iW-E4; Mon, 06 Dec 2004 13:35:59 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id iB6IZqFu027815; Mon, 6 Dec 2004 12:35:52 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id iB6IYBu20015; Mon, 6 Dec 2004 12:34:11 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: monnier@iro.umontreal.ca In-reply-to: (message from Stefan on Mon, 06 Dec 2004 08:04:40 -0500) 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: main.gmane.org gmane.emacs.devel:30758 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30758 Stefan Monnier wrote: You might be right. It does seem however that the :get and :set functions don't need to do anything special. The problem with setting the variable with setq instead of through `custom-set-variables' is that various standard things like: (put 'custom-file 'saved-value '("~/mycustomfile")) and (custom-push-theme 'theme-value 'custom-file 'user 'set '("~/mycustomfile")) would not get done, unless you write them in .emacs. But the things you have to write into .emacs may change over time, because Custom may change over time. So you need a function that you have to update, when needed. There may be other problems we would have to think very carefully about. Why bother when `custom-set-variables' does everything correctly for you? The person using Custom to set an option should be able to rely on all the features that customizing through Custom usually implies. It is OK if the user sets `custom-file' using setq in his .emacs, if the user does not care about these features. Those features are not necessary (it would be a bug if they were), but they can be a convenience. I am talking about various things, customize-saved, customize-customized, a correct "State" message in Custom buffers, as well other things I can not immediately think of and possibly future features. Sincerely, Luc.