From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type functions Date: Sun, 04 Apr 2010 13:36:56 -0400 Message-ID: References: <50365.130.55.132.97.1270318658.squirrel@webmail.lanl.gov> <622A6B6A-AC87-4229-B40D-CCD28A3B5C25@mit.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: dough.gmane.org 1270402737 5422 80.91.229.12 (4 Apr 2010 17:38:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 4 Apr 2010 17:38:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chad Brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 04 19:38:53 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NyTmf-0001O4-3o for ged-emacs-devel@m.gmane.org; Sun, 04 Apr 2010 19:38:53 +0200 Original-Received: from localhost ([127.0.0.1]:54629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyTme-0005NZ-H5 for ged-emacs-devel@m.gmane.org; Sun, 04 Apr 2010 13:38:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NyTko-0003tn-MO for emacs-devel@gnu.org; Sun, 04 Apr 2010 13:36:58 -0400 Original-Received: from [199.232.76.173] (port=47007 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyTko-0003tO-5B for emacs-devel@gnu.org; Sun, 04 Apr 2010 13:36:58 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NyTkn-0001sz-63 for emacs-devel@gnu.org; Sun, 04 Apr 2010 13:36:57 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:51623) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NyTkm-0001st-TH for emacs-devel@gnu.org; Sun, 04 Apr 2010 13:36:57 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NyTkm-0006sO-Di; Sun, 04 Apr 2010 13:36:56 -0400 In-reply-to: <622A6B6A-AC87-4229-B40D-CCD28A3B5C25@mit.edu> (message from Chad Brown on Sat, 3 Apr 2010 12:43:51 -0700) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123170 Archived-At: 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))))