Gnus development mailing list
 help / color / mirror / Atom feed
From: Bill Wohler <wohler@newt.com>
Cc: emacs-devel@gnu.org, ding@gnus.org
Subject: Re: defcustom :version
Date: Sat, 11 Mar 2006 12:40:54 -0800	[thread overview]
Message-ID: <9584.1142109654@olgas.newt.com> (raw)
In-Reply-To: <200603110447.k2B4lbt10750@raven.dms.auburn.edu>

Luc Teirlinck <teirllm@dms.auburn.edu> wrote:

> `M-x customize-changed RET 21.4 RET' is supposed to show the user all
> defcustoms that were added, or whose standard value changed, in Emacs
> 22.1.  That is the main purpose of the :version keyword.  Of course,
> the fact that you get a 2811 line long Custom buffer limits the
> usefulness of this feature.  Once upon a time, when Emacs releases
> used to be much more frequent than they are now, `M-x customize-changed'
> was one of the most useful things to do when a new Emacs version came out.

Thanks for telling me about customize-changed, Luc. I wasn't aware of
its presence, and yes, I would find it extremely useful with a new
version (of whatever).

I currently use some Perl to generate a list for MH-E's release notes,
but the algorithm probably isn't perfect (grep for defcustom before and
after, grab the second word, and diff).

Taking a quick look at the customize-changed code, it occurred to me
that the following would make sense and be fairly easy to implement
(although I am not suggesting we do it before the release):

1. Create a :package-version customize keyword.
2. Bind it to a custom-package-version symbol.
3. Refactor customize-changed to accept two new optional arguments which is
   the prefix of the package and the version symbol to use
   ('custom-version by default).
4. Add a customize-package-changed function which would call
   (customize-changed since-version prefix 'custom-package-version)

Note that #3 would address your concerns about the copious output from
the current implementation. You could say (customize-changed nil
"custom") to limit the output to changes in customize.

If this seems like a good idea, I would suggest we do make
:package-version a valid keyword (by safely adding a single line to the
cond in custom-handle-keyword) so that I can add it to MH-E before the
release so that it is there for future use.

-- 
Bill Wohler <wohler@newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.



  reply	other threads:[~2006-03-11 20:40 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-11  3:18 Bill Wohler
2006-03-11  4:47 ` Luc Teirlinck
2006-03-11 20:40   ` Bill Wohler [this message]
2006-03-12 12:47     ` Richard Stallman
2006-03-12 20:30       ` Bill Wohler
2006-03-13 12:55         ` Richard Stallman
2006-03-14  2:58           ` Bill Wohler
2006-03-29  1:45           ` Bill Wohler
2006-03-29 23:02             ` Richard Stallman
2006-03-30  2:43               ` Bill Wohler
2006-03-30  3:11                 ` Luc Teirlinck
2006-03-30 17:28                   ` Bill Wohler
2006-03-31 17:28                     ` Richard Stallman
2006-03-31 18:11                       ` Bill Wohler
2006-04-01 13:46                         ` Richard Stallman
2006-04-11  0:10                           ` Bill Wohler
2006-04-01 14:23                         ` Eli Zaretskii
2006-03-31  3:10                   ` Richard Stallman
2006-03-30 19:53                 ` Wolfram Fenske
2006-03-30 21:18                   ` Bill Wohler
2006-04-07 18:44               ` Bill Wohler
2006-04-08 16:17                 ` Richard Stallman
2006-04-10 23:49                   ` Bill Wohler
2006-03-12 12:47   ` Richard Stallman
2006-03-12 14:54     ` Luc Teirlinck
2006-03-13  1:26       ` Richard Stallman
2006-03-14  3:26         ` Luc Teirlinck
2006-03-14  3:37           ` Luc Teirlinck
2006-03-14 16:09           ` Richard Stallman
2006-03-14 17:49             ` Bill Wohler
2006-03-15 20:20               ` Richard Stallman
2006-03-15 20:25                 ` Bill Wohler
2006-03-14 23:32             ` Luc Teirlinck
2006-03-15  0:06               ` Bill Wohler
2006-03-15  1:36                 ` Luc Teirlinck
2006-03-15  2:09                   ` Bill Wohler
2006-03-17 16:32                   ` Richard Stallman
2006-03-15 20:21               ` Richard Stallman
2006-03-11  5:02 ` Luc Teirlinck
2006-03-11 13:57 ` Reiner Steib
2006-03-11 23:57   ` Bill Wohler
2006-03-11 23:46 ` Richard Stallman

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

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

  git send-email \
    --in-reply-to=9584.1142109654@olgas.newt.com \
    --to=wohler@newt.com \
    --cc=ding@gnus.org \
    --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.
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 NNTP newsgroup(s).