unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Schroeder <alex@emacswiki.org>
Cc: Reiner Steib <Reiner.Steib@gmx.de>, emacs-devel@gnu.org
Subject: Re: defvar -> defcustom
Date: Sun, 10 Oct 2004 15:10:26 +0200	[thread overview]
Message-ID: <87fz4men25.fsf@emacswiki.org> (raw)
In-Reply-To: <E1CGV4E-0003vH-Rv@fencepost.gnu.org> (Richard Stallman's message of "Sun, 10 Oct 2004 00:12:18 -0400")

Richard Stallman <rms@gnu.org> writes:

>     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.

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.

Not that I even mass-converted defvars to defgroups...

Alex.
-- 
.O.  http://www.emacswiki.org/alex/
..O  Schroeder's fifth law:
OOO  Never accept more work than you can handle in one night of hacking.

  parent reply	other threads:[~2004-10-10 13:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-09 13:24 defvar -> defcustom Reiner Steib
2004-10-10  4:12 ` Richard Stallman
2004-10-10 13:09   ` Reiner Steib
2004-10-10 23:29     ` Luc Teirlinck
2004-10-10 13:10   ` Alex Schroeder [this message]
2004-10-11  6:17     ` Richard Stallman
2004-10-11  0:58 ` Luc Teirlinck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fz4men25.fsf@emacswiki.org \
    --to=alex@emacswiki.org \
    --cc=Reiner.Steib@gmx.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).