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: Redundant (harmful) duplication of run-hooks in define-globalized-minor-mode [patch-2] Date: Fri, 01 Feb 2013 11:28:00 -0500 Message-ID: References: <20130113192854.GA4853@acm.acm> <20130114163003.GC3274@acm.acm> <20130115140855.GA3430@acm.acm> <20130117175159.GA3114@acm.acm> <20130131110404.GA3459@acm.acm> <20130201154453.GA23075@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1359736088 19685 80.91.229.3 (1 Feb 2013 16:28:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2013 16:28:08 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org, Leo Liu , =?iso-8859-1?Q?Jo=E3o_T=E1vora?= To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 01 17:28:27 2013 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 1U1JTW-00071r-Dn for ged-emacs-devel@m.gmane.org; Fri, 01 Feb 2013 17:28:26 +0100 Original-Received: from localhost ([::1]:52123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1JTE-0002wR-53 for ged-emacs-devel@m.gmane.org; Fri, 01 Feb 2013 11:28:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1JTA-0002vY-Sq for emacs-devel@gnu.org; Fri, 01 Feb 2013 11:28:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1JTA-0003hI-22 for emacs-devel@gnu.org; Fri, 01 Feb 2013 11:28:04 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:17261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1JT8-0003go-8v; Fri, 01 Feb 2013 11:28:02 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFLd/iW/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFFLd/iW/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="206940" Original-Received: from 75-119-248-150.dsl.teksavvy.com (HELO pastel.home) ([75.119.248.150]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Feb 2013 11:28:01 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id B924A58F88; Fri, 1 Feb 2013 11:28:00 -0500 (EST) In-Reply-To: <20130201154453.GA23075@acm.acm> (Alan Mackenzie's message of "Fri, 1 Feb 2013 15:44:53 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:156765 Archived-At: > I'm not so sure about this. These complicated structures of macros and > hooks and generated functions are making my head hurt. ;-( Are you > sure there are no ways of invoking this which won't bypass > kill-all-local-variables? (That's a real question, not a rhetorical > one.) Any major mode will have to call kill-all-local-variables, so it's pretty sure. Stefan