From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: turn-on-*-mode Date: Tue, 16 May 2006 11:04:59 -0400 Organization: disorganization Message-ID: References: <4469D3B6.2040904@student.lu.se> Reply-To: sds@podval.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1147793649 7307 80.91.229.2 (16 May 2006 15:34:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 May 2006 15:34:09 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 16 17:34:05 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fg1M4-0002dK-UY for ged-emacs-devel@m.gmane.org; Tue, 16 May 2006 17:21:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fg1M4-0001Qh-By for ged-emacs-devel@m.gmane.org; Tue, 16 May 2006 11:21:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fg1Ls-0001Qa-7r for emacs-devel@gnu.org; Tue, 16 May 2006 11:20:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fg1Lq-0001QN-1g for emacs-devel@gnu.org; Tue, 16 May 2006 11:20:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fg1Lp-0001QK-Rp for emacs-devel@gnu.org; Tue, 16 May 2006 11:20:45 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fg1OU-0005Gy-Po for emacs-devel@gnu.org; Tue, 16 May 2006 11:23:31 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fg1As-0008Da-B0 for emacs-devel@gnu.org; Tue, 16 May 2006 17:09:26 +0200 Original-Received: from 209.213.205.130 ([209.213.205.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 May 2006 17:09:26 +0200 Original-Received: from sds by 209.213.205.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 May 2006 17:09:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 209.213.205.130 Mail-Copies-To: never X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:a0aqmvqEAGPHHMVFH9vxidIIybQ= 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:54583 Archived-At: > * Kim F. Storm [2006-05-16 16:52:51 +0200]: > > And for non-interactive use, doing (*-mode 1) and (*-mode -1) is the > preferred interface. > There are also a number of "toggle-" functions, which IMO is a much > better interface (just one function, with a simple common prefix). I think I should have been more clear about the background. Yes, in a program, (*-mode *) is better. Yes, interactively, M-x *-mode is better. The only situation where the turn-on-*-mode functions are really needed is hooks: (add-hook 'text-mode-hook 'turn-on-auto-fill) is much better than (add-hook 'text-mode-hook (lambda () (auto-fill-mode 1))) Maybe minor modes that are commonly enabled from hooks should have their turn-on-* versions? -- Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 (Bordeaux) http://jihadwatch.org http://iris.org.il http://palestinefacts.org http://pmw.org.il http://memri.org http://dhimmi.com http://ffii.org If you know that you know nothing, you know too much.