unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: define-derived-mode
Date: Sun, 8 May 2005 12:48:17 -0500 (CDT)	[thread overview]
Message-ID: <200505081748.j48HmHm26026@raven.dms.auburn.edu> (raw)
In-Reply-To: <E1DUoOJ-0003Ef-UH@fencepost.gnu.org> (message from Richard Stallman on Sun, 08 May 2005 12:12:27 -0400)

Richard Stallman wrote:

   I don't follow the logic of this argument.  Whatever group is right
   for the move variable, isn't that right for the hook variable too?

I believe that we are misunderstanding each other, but since I changed
my mind on the issue in the meantime, this has become irrelevant.

   However, I am not sure we want defcustoms for *any* mode hooks.  How
   often would a user want to customize one with defcustom?  It seems to
   me that defcustoms for mode hooks are mostly useless clutter.

   What argument is there that they are useful and worth their cost?

When I originally proposed this (I no longer am), I was worrying about
consistency with `define-{minor,generic}-mode'.  I already pointed out
in my original message that I was less than enthused about these two
functions spewing out all these automatic defcustoms.

Customizing mode hooks through Custom is only convenient if an
:options keyword is used.  (Currently, customizing hooks through
Custom is not advisable to begin with because of several bugs we
discussed before.  We plan to fix these in Emacs 23 or 24.)

If I understood correctly, define-generic-mode only started
constructing automatic defcustoms recently, which was an incompatible
change.   In that case, it could easily be reversed, which would make
the two major mode defining functions consistent in this respect.

For define-minor-mode, the situation is more complex.  It already
defined defcustoms in 21.3.  So here, removing them would be an
incompatible change.  It is possible that some users already
customized these hooks through Custom.

Sincerely,

Luc.

  parent reply	other threads:[~2005-05-08 17:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-08  1:01 define-derived-mode Luc Teirlinck
2005-05-08  3:15 ` define-derived-mode Luc Teirlinck
2005-05-08 16:12   ` define-derived-mode Richard Stallman
2005-05-08 17:00     ` define-derived-mode Juanma Barranquero
2005-05-09  8:57       ` define-derived-mode Richard Stallman
2005-05-08 17:48     ` Luc Teirlinck [this message]
2005-05-09  8:57       ` define-derived-mode Richard Stallman
2005-05-09 10:13         ` define-derived-mode David Kastrup
2005-05-12 13:53         ` define-derived-mode Lute Kamstra
2005-05-17 15:58           ` define-derived-mode Lute Kamstra
2005-05-09 10:35       ` define-derived-mode Lute Kamstra
2005-05-10  0:07         ` define-derived-mode Luc Teirlinck
2005-05-10  8:47           ` define-derived-mode Lute Kamstra
2005-05-08 14:04 ` define-derived-mode 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=200505081748.j48HmHm26026@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --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).