[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defvar -> defcustom
From: |
Reiner Steib |
Subject: |
Re: defvar -> defcustom |
Date: |
Sun, 10 Oct 2004 15:09:47 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
On Sun, Oct 10 2004, Richard Stallman wrote:
> is there an Emacs function to turn defvars into defcustoms (semi-)
> automatically similar to `checkdoc'? Such a function would be a nice
> addition to `checkdoc.el'.
>
> How could this be possible? A program cannot figure out what :type
> and :group options to use.
Surely a program cannot cover everything and the user has to go
through the changes and fix some stuff manually. Or there should be a
"Enter recursive Edit" functionality as in `checkdoc'.
It cannot figure out the :type for all defvars, but I think 80% could
be guessed heuristically (e.g. if value is t or nil, take 'boolean).
The custom :group could be asked once per buffer.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/