From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: turning on minor modes from hooks Date: Tue, 01 Sep 2009 11:07:42 +0900 Message-ID: <8763c3v2mp.fsf@uwakimon.sk.tsukuba.ac.jp> References: <200908292125.n7TLPCdp005058@godzilla.ics.uci.edu> <87eiqui4yx.fsf@catnip.gol.com> <200908311130.50238.danc@merrillprint.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251770402 26579 80.91.229.12 (1 Sep 2009 02:00:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2009 02:00:02 +0000 (UTC) Cc: Miles Bader , dann@ics.uci.edu, rms@gnu.org, emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 01 03:59:55 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 1MiIf4-0001mr-Ec for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 03:59:54 +0200 Original-Received: from localhost ([127.0.0.1]:41887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiIf3-0000SO-Ud for ged-emacs-devel@m.gmane.org; Mon, 31 Aug 2009 21:59:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiIef-0000H3-Bh for emacs-devel@gnu.org; Mon, 31 Aug 2009 21:59:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiIea-0000FS-RL for emacs-devel@gnu.org; Mon, 31 Aug 2009 21:59:28 -0400 Original-Received: from [199.232.76.173] (port=44170 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiIea-0000FL-KU for emacs-devel@gnu.org; Mon, 31 Aug 2009 21:59:24 -0400 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]:45035) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiIeW-0000XF-0U; Mon, 31 Aug 2009 21:59:20 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id E16991537B5; Tue, 1 Sep 2009 10:59:16 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 1222B1A2EBB; Tue, 1 Sep 2009 11:07:43 +0900 (JST) In-Reply-To: <200908311130.50238.danc@merrillprint.com> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta29) "garbanzo" 891381effa11+ XEmacs Lucid (x86_64-unknown-linux) 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:114933 Archived-At: Daniel Colascione writes: > Isn't magically changing behavior between the interactive and > non-interactive cases a Bad Thing? No. XEmacs inverts the (boolean) prefix arg in some cases where experience shows that interactive usage by far favored the prefixed version. This was hotly opposed in theory, in practice everybody loved it immediately. It turned out that C-e and M-: (end-of-line) RET are not aliases in our minds (YMMV), but rather synonyms, and we don't have trouble making the subtle semantic distinction. (NB, the command in question isn't `end-of-line', but I don't remember which it is and a quick grep shows that "invert" isn't the word used in the docstring.) > What about some kind of enable-minor-mode function? If you mean a generic function that can enable specific minor modes, that will just cause proliferation of definitions like (defun turn-on-auto-fill () (enable-minor-mode 'auto-fill-mode)) (defun turn-off-auto-fill () (disable-minor-mode 'auto-fill-mode))