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: turning on minor modes from hooks Date: Tue, 01 Sep 2009 08:16:29 -0400 Message-ID: References: <200908292125.n7TLPCdp005058@godzilla.ics.uci.edu> <87eiqui4yx.fsf@catnip.gol.com> <200908311130.50238.danc@merrillprint.com> <87my5foluj.fsf@thinkpad.tsdh.de> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1251807962 24574 80.91.229.12 (1 Sep 2009 12:26:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2009 12:26:02 +0000 (UTC) Cc: danc@merrillprint.com, miles@gnu.org, dann@ics.uci.edu, emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 01 14:25:54 2009 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.50) id 1MiSQr-0000Cv-Ln for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 14:25:53 +0200 Original-Received: from localhost ([127.0.0.1]:59954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiSQq-0003nZ-QD for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 08:25:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiSHu-0001Gw-Hj for emacs-devel@gnu.org; Tue, 01 Sep 2009 08:16:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiSHo-0001FW-NE for emacs-devel@gnu.org; Tue, 01 Sep 2009 08:16:37 -0400 Original-Received: from [199.232.76.173] (port=48459 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiSHn-0001FD-TD for emacs-devel@gnu.org; Tue, 01 Sep 2009 08:16:32 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:40970) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiSHn-0008AP-4k; Tue, 01 Sep 2009 08:16:31 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MiSHl-0002c5-MV; Tue, 01 Sep 2009 08:16:29 -0400 In-reply-to: <87my5foluj.fsf@thinkpad.tsdh.de> (message from Tassilo Horn on Mon, 31 Aug 2009 20:54:28 +0200) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:114944 Archived-At: > What about some kind of enable-minor-mode function? That's what a some minor modes already do, for example `turn-on-eldoc-mode', `turn-on-follow-mode', or `turn-on-gnus-dired-mode'. For some of them there's also a turn-off command. Maybe that's a good convention. If so, then probably things like `define-minor-mode' should generate those functions automatically. This approach defines functions in a profligate way. It would be much better to do something simpler and more elegant.