unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Chad Brown <yandros@MIT.EDU>
Cc: emacs-devel@gnu.org
Subject: Re: turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type functions
Date: Sun, 04 Apr 2010 13:36:56 -0400	[thread overview]
Message-ID: <E1NyTkm-0006sO-Di@fencepost.gnu.org> (raw)
In-Reply-To: <622A6B6A-AC87-4229-B40D-CCD28A3B5C25@mit.edu> (message from Chad Brown on Sat, 3 Apr 2010 12:43:51 -0700)

      I don't expect this to be the
    most common use case, so if we don't want to leave in/create more
    turn-off-minor-mode functions, we could perhaps provide explicit
    instructions for a turn-off in hook form in the documentation?

If advising people to write

  (add-hook hook (lambda () (foo-minor-mode 0))))

is not convenient enough, we could provide this function:

(defun hook-turn-off-minor-mode (hook minor-mode)
  (add-hook hook `(lambda () (,minor-mode 0))))




  parent reply	other threads:[~2010-04-04 17:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-03  1:23 turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type functions Dan Nicolaescu
2010-04-03  2:00 ` Stefan Monnier
2010-04-03 18:00 ` Richard Stallman
2010-04-03 18:17   ` Davis Herring
2010-04-03 19:43     ` Chad Brown
2010-04-04 14:26       ` Stefan Monnier
2010-04-04 16:19         ` Chad Brown
2010-04-04 18:53           ` Stefan Monnier
2010-04-05  2:29             ` Obsoleting end-user-functions [was: turn-on-* type functions] Stephen J. Turnbull
2010-04-05  3:11               ` Daniel Colascione
2010-04-05  7:19                 ` Drew Adams
2010-04-06  6:41                   ` Stephen J. Turnbull
2010-04-05 13:48               ` Obsoleting end-user-functions Stefan Monnier
2010-04-05 14:03                 ` Davis Herring
2010-04-05 15:52                 ` Chad Brown
2010-04-06  6:48                 ` Stephen J. Turnbull
2010-04-07  3:21                   ` Richard Stallman
2010-04-04 17:36       ` Richard Stallman [this message]
2010-04-03 19:23   ` turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type functions Dan Nicolaescu
2010-04-03 19:23   ` Stefan Monnier

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=E1NyTkm-0006sO-Di@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=yandros@MIT.EDU \
    /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).