From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: defvar -> defcustom Date: Mon, 11 Oct 2004 02:17:46 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <87fz4men25.fsf@emacswiki.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1097475565 11155 80.91.229.6 (11 Oct 2004 06:19:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Oct 2004 06:19:25 +0000 (UTC) Cc: Reiner.Steib@gmx.de, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 11 08:19:21 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 1CGtWj-0002Yb-00 for ; Mon, 11 Oct 2004 08:19:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGtde-0002I6-Fk for ged-emacs-devel@m.gmane.org; Mon, 11 Oct 2004 02:26:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CGtch-0001FG-PZ for emacs-devel@gnu.org; Mon, 11 Oct 2004 02:25:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CGtcf-0001CG-Dv for emacs-devel@gnu.org; Mon, 11 Oct 2004 02:25:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGtce-0001Al-Iz for emacs-devel@gnu.org; Mon, 11 Oct 2004 02:25:28 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CGtVD-0008Mc-GT for emacs-devel@gnu.org; Mon, 11 Oct 2004 02:17:47 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CGtVC-0005XV-GC; Mon, 11 Oct 2004 02:17:46 -0400 Original-To: Alex Schroeder In-reply-to: <87fz4men25.fsf@emacswiki.org> (message from Alex Schroeder on Sun, 10 Oct 2004 15:10:26 +0200) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28216 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28216 M-x customize-variable already does some guessing based on the variable name, so some sort of minimal guessing might be possible. Current conventions would also allow to search backwards from the defvar to the closest preceding defgroup and just assume it. You can give it a try if you want. But these heuristics are not reliable. For instance, many variables whose names suggest a value of t or nil in fact allow other values too. The only way to tell is to understand the doc string. Weighing the time that manual editing takes against the importance of getting the right answer, and considering that this conversion only needs to be done once in a while, I think doing it manually may be better.