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: A criticism of `make-minor-mode' Date: Tue, 06 Sep 2011 09:37:06 -0400 Message-ID: References: <20110904160624.GA10950@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315316249 29013 80.91.229.12 (6 Sep 2011 13:37:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2011 13:37:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 06 15:37:25 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R0vq9-000533-No for ged-emacs-devel@m.gmane.org; Tue, 06 Sep 2011 15:37:25 +0200 Original-Received: from localhost ([::1]:45614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0vq9-0004wE-2S for ged-emacs-devel@m.gmane.org; Tue, 06 Sep 2011 09:37:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0vq1-0004ug-9Y for emacs-devel@gnu.org; Tue, 06 Sep 2011 09:37:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0vps-00062J-D8 for emacs-devel@gnu.org; Tue, 06 Sep 2011 09:37:17 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:6011 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0vpr-00060P-V0 for emacs-devel@gnu.org; Tue, 06 Sep 2011 09:37:08 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EACchZk64rwMJ/2dsb2JhbABCqAB5gUYBAQQBViMFCwsOJhIUGA0kiAa6QoZqBKAXhEA X-IronPort-AV: E=Sophos;i="4.68,338,1312171200"; d="scan'208";a="134695248" Original-Received: from 184-175-3-9.dsl.teksavvy.com (HELO ceviche.home) ([184.175.3.9]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 06 Sep 2011 09:37:06 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 98B0766246; Tue, 6 Sep 2011 09:37:06 -0400 (EDT) In-Reply-To: <20110904160624.GA10950@acm.acm> (Alan Mackenzie's message of "Sun, 4 Sep 2011 16:06:24 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 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:143779 Archived-At: > There's a bug which has been bugging me quite some time, namely > gpm-mouse-mode's argument is the other way round. i.e., if you evaluate > (gpm-mouse-mode 1) > , the mode is turned off and the message area says it's enabled. If you > evaluate In which sense is it "turned off"? Is gpm-mouse-mode nil or are the mouse events not caught by Emacs? > (gpm-mouse-mode 0) > , the mode is turned on and the message area says it's disabled. Can you reproduce it from "emacs -Q"? > Can we not somehow eschew this sort of complexity? Only at the cost of other complexity: the fact that every minor mode would then behave is slightly different ways and that changing the behavior of all minor modes would be pretty much impossible. That's what we used to have and I didn't like it. I suspect your problem has to do with the ":init-value t" (just because I know this part is basically wrong tho it works OK in the "main" use case). Stefan