all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Reiner.Steib@gmx.de, emacs-devel@gnu.org
Subject: Re: Remove toggling behavior of minor modes when called from elisp
Date: Mon, 07 Jan 2008 06:31:34 -0500	[thread overview]
Message-ID: <E1JBqCc-0005MF-7H@fencepost.gnu.org> (raw)
In-Reply-To: <jwv4pdqu2mm.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sun, 06 Jan 2008 15:22:41 -0500)

    Of course.  I think it's the main part of the TODO item.  For most minor
    modes, the right thing to do is to make it use define-minor-mode.

For any minor modes, it is very desirable for the variable's value
to control the entire functionality.
For the old minor modes, that was always the case.

define-minor-mode offers the option to provide forms to be executed
when you turn the mode on or off.  If that feature is used, the minor
mode can no longer be controlled by binding the variable.

Converting an existing minor mode to use define-minor-mode offers the
opportunity to take this step backward.  We need to remember to avoid
that.

      reply	other threads:[~2008-01-07 11:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-09 18:53 Remove toggling behavior of minor modes when called from elisp Reiner Steib
2008-01-05 13:40 ` Reiner Steib
2008-01-06  8:09   ` Richard Stallman
2008-01-06  8:53     ` Reiner Steib
2008-01-06 18:09       ` Richard Stallman
2008-01-06 18:21         ` Reiner Steib
2008-01-06 20:22         ` Stefan Monnier
2008-01-07 11:31           ` Richard Stallman [this message]

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=E1JBqCc-0005MF-7H@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=Reiner.Steib@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.