From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: `define-globalized-minor-mode': why the need for a separate TURN-ON function? Date: Fri, 06 Apr 2012 23:56:01 -0400 Message-ID: References: <792A96A59B454A7596A0A1676765A152@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333770971 2361 80.91.229.3 (7 Apr 2012 03:56:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 Apr 2012 03:56:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 07 05:56:11 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SGMl0-0000ql-Tv for ged-emacs-devel@m.gmane.org; Sat, 07 Apr 2012 05:56:11 +0200 Original-Received: from localhost ([::1]:52316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGMl0-0004Qm-05 for ged-emacs-devel@m.gmane.org; Fri, 06 Apr 2012 23:56:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGMkw-0004Qh-P3 for emacs-devel@gnu.org; Fri, 06 Apr 2012 23:56:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGMkv-0007QT-4F for emacs-devel@gnu.org; Fri, 06 Apr 2012 23:56:06 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:45726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGMkv-0007QK-0I for emacs-devel@gnu.org; Fri, 06 Apr 2012 23:56:05 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q373u1Jm032125; Fri, 6 Apr 2012 23:56:02 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id AE1D7AE08C; Fri, 6 Apr 2012 23:56:01 -0400 (EDT) In-Reply-To: <792A96A59B454A7596A0A1676765A152@us.oracle.com> (Drew Adams's message of "Thu, 5 Apr 2012 08:44:42 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4184=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4184> : streams <744569> : uri <1096867> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149448 Archived-At: > I've only looked briefly at this, and am no doubt not noticing > something. Anyway, why for `define-globalized-minor-mode' must one > define a separate TURN-ON function to turn the mode on, but using the > (local) minor-mode function suffices to turn it off? As the docstring says: "try to turn MODE on if applicable for that buffer". That's different to MODE itself which should turn it in if at all possible. Stefan