From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Getting more info on a variable in Customize buffers Date: Mon, 03 Jan 2005 08:51:36 +0100 Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1104738843 23720 80.91.229.6 (3 Jan 2005 07:54:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Jan 2005 07:54:03 +0000 (UTC) Cc: Reiner Steib , Drew Adams , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 03 08:53:53 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ClN2H-0006XW-00 for ; Mon, 03 Jan 2005 08:53:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ClNDP-0004PC-K4 for ged-emacs-devel@m.gmane.org; Mon, 03 Jan 2005 03:05:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1ClNDB-0004Mj-Bg for emacs-devel@gnu.org; Mon, 03 Jan 2005 03:05:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1ClND8-0004Lc-4O for emacs-devel@gnu.org; Mon, 03 Jan 2005 03:05:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ClND7-0004LS-Rv for emacs-devel@gnu.org; Mon, 03 Jan 2005 03:05:05 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ClN07-0004SZ-77 for emacs-devel@gnu.org; Mon, 03 Jan 2005 02:51:39 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1ClMtw-0006wF-2v; Mon, 03 Jan 2005 02:45:16 -0500 Original-To: Stefan In-Reply-To: (Stefan's message of "Sun, 02 Jan 2005 19:35:44 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) 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:31721 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31721 Stefan writes: >> - You need to load `cus-edit.el' to see this variable (not a >> great problem, but it would be good to have it autoloaded). > > Most variables are only visible once the corresponding package is loaded. > That's normal. > >> What about 1) having click-a-name-to-toggle-its-display-type, as I just >> mentioned, and 2) display a message in the echo area when you do this, >> saying that you can use `custom-unlispify-tag-names' to set the custom >> display type globally. Finding this (oddly named) option would then be >> fairly easy and common. > > The problem is that custom's "variables" aren't the same as > Elisp variables. They look very much alike, and they usually are exactly > the same, but that's not always the case. > The :get, :set, and :init thingies allow you to define a custom setting > "foo-bar" which controls "toto" rather than the variable "foo-bar". AFAIR, set-variable by now obeys the :set function. So everything that is user-visible behaves consistent. `setq' OTOH is "low-level". Perhaps we should warn people in the introduction to writing .emacs that setq or setq-default might not do the trick for user-settable variables. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum