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: Sun, 5 Dec 2004 20:56:56 -0600 (CST) Message-ID: <200412060256.iB62uu415095@raven.dms.auburn.edu> References: <075b01c4d9a4$52799460$0200a8c0@sedrcw11488> <006701c4da59$e9c36de0$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1102301950 4530 80.91.229.6 (6 Dec 2004 02:59:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2004 02:59:10 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 06 03:59:06 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 1Cb95d-00077C-00 for ; Mon, 06 Dec 2004 03:59:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cb9FM-00059o-RE for ged-emacs-devel@m.gmane.org; Sun, 05 Dec 2004 22:09:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cb9F5-000595-0M for emacs-devel@gnu.org; Sun, 05 Dec 2004 22:08:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cb9F3-000584-My for emacs-devel@gnu.org; Sun, 05 Dec 2004 22:08:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cb9F3-000581-KF for emacs-devel@gnu.org; Sun, 05 Dec 2004 22:08:49 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cb95C-0001Hd-0b; Sun, 05 Dec 2004 21:58:38 -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 iB62wbFu023429; Sun, 5 Dec 2004 20:58:37 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id iB62uu415095; Sun, 5 Dec 2004 20:56:56 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Sun, 05 Dec 2004 16:52:07 -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:30742 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30742 When I previously replied, I had not seen your latest version. That version takes care of one of the problems I mentioned. The version in the patch below takes care of the two others. It also fixes some other things: 1. It says when the file is loaded if you do not do it yourself. There are situations where that can matter. 2. The current docstring does not make clear that you do not need to set `custom-file' in your init file, if you set it through Custom and explicitly load it in your init file, which to me seems somewhat cleaner anyway, if you set it with a defcustom elsewhere. 3. It explains why it is _not_ outright silly to set it through Custom, even though you have to edit .emacs anyway. I can install if desired. ===File ~/cus-edit.el-diff================================== *** cus-edit.el 05 Dec 2004 19:05:44 -0600 1.200 --- cus-edit.el 05 Dec 2004 20:33:52 -0600 *************** *** 3677,3693 **** ;;;###autoload (defcustom custom-file nil "File used for storing customization information. ! The default is nil, which means to use your init file ! as specified by `user-init-file'. To make this feature work, ! you'll need to put something in your init file to specify ! the value of `custom-file'. Just customizing the variable ! won't suffice, because Emacs won't know which file to load ! unless the init file sets `custom-file'. When you change this variable, look in the previous custom file \(usually your init file) for the forms `(custom-set-variables ...)' and `(custom-set-faces ...)', and copy them (whichever ones you find) ! to the new custom file. This will preserve your existing customizations." :type '(choice (const :tag "Your Emacs init file" nil) file) :group 'customize) --- 3677,3701 ---- ;;;###autoload (defcustom custom-file nil "File used for storing customization information. ! The default is nil, which means to use your init file as specified by ! `user-init-file'. If non-nil, use an absolute file name. ! ! If you set this variable in your init file, Emacs automatically ! loads the file after your init file, if you did not load it earlier. ! If you set this variable through Custom, you have to put ! `(load \"CUSTOM-FILENAME\") in your init file. Certain features of ! Custom work better if you set all your user options through ! Custom. Thus, setting this variable through Custom makes sense, ! even though you still have to edit your init file. When you change this variable, look in the previous custom file \(usually your init file) for the forms `(custom-set-variables ...)' and `(custom-set-faces ...)', and copy them (whichever ones you find) ! to the new custom file. This will preserve your existing customizations. ! If you set this option through Custom, while your old custom file is ! loaded, Custom copies the forms for you, but also leaves them ! in the old file. You might want to delete them from the old file ! after checking that they got copied correctly." :type '(choice (const :tag "Your Emacs init file" nil) file) :group 'customize) ============================================================