From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#5293: 23.1; unload-feature on buffer-local hooks Date: Fri, 15 Jul 2011 18:20:35 +0200 Message-ID: References: <87hbr4p67t.fsf@blah.blah> <871uxsl778.fsf@blah.blah> <87oc0wdiy9.fsf@gmail.com> <87k4bjedb9.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310749747 10029 80.91.229.12 (15 Jul 2011 17:09:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2011 17:09:07 +0000 (UTC) Cc: Kevin Ryde , 5293@debbugs.gnu.org To: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 15 19:09:03 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Qhlss-0001ZO-Iv for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jul 2011 19:09:02 +0200 Original-Received: from localhost ([::1]:49520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhlsr-0007uU-CI for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jul 2011 13:09:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhlAO-0002tK-AL for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2011 12:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhlAN-0001ml-23 for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2011 12:23:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhlAM-0001mf-KA for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2011 12:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QhlAL-0000gS-Uq; Fri, 15 Jul 2011 12:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2011 16:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5293 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5293-submit@debbugs.gnu.org id=B5293.13107469292563 (code B ref 5293); Fri, 15 Jul 2011 16:23:01 +0000 Original-Received: (at 5293) by debbugs.gnu.org; 15 Jul 2011 16:22:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qhl9Q-0000fC-Hj for submit@debbugs.gnu.org; Fri, 15 Jul 2011 12:22:09 -0400 Original-Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qhl8m-0000da-Fk for 5293@debbugs.gnu.org; Fri, 15 Jul 2011 12:21:56 -0400 Original-Received: by pvh18 with SMTP id 18so1401651pvh.3 for <5293@debbugs.gnu.org>; Fri, 15 Jul 2011 09:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=h4hq7HKJOddDQOC5DmsZQ0+E9xaVOPcUt1RMMG3jhJ0=; b=Tzup1yqKCD/KfUeJSu0bXD2YoSJ10SlzOWbQjIP+60GwpSs7mEjRDX2Uh4bvIzCzxj qJhmiburtkQqDajjXs1W5sgZZ5/fuYPkXaN48dx8jJZj1olpaHVP45VLeBnA6ZoFE8cM 7ph2xbzrA0iciwhSMg+k/8tbOChyCFkg9/z6M= Original-Received: by 10.142.234.3 with SMTP id g3mr1543113wfh.423.1310746875128; Fri, 15 Jul 2011 09:21:15 -0700 (PDT) Original-Received: by 10.142.144.4 with HTTP; Fri, 15 Jul 2011 09:20:35 -0700 (PDT) In-Reply-To: <87k4bjedb9.fsf@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 15 Jul 2011 12:23:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49182 Archived-At: On Fri, Jul 15, 2011 at 18:08, =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec wrote: > Note I omitted the "major" part, i.e., it's not uncommon for minor modes > to make global hook additions. Sorry if that's not really related to the > problem at hand. Currently, minor modes are not automatically turned off; packages that define minor modes *need* a FEATURE-unload-function. See allout.el, hi-lock.el, hl-line.el, linum.el, etc. Turning off the minor mode should remove these hooks. > The important thing is that the documentation needs to > describe what actually happens, so whatever you decide to do about this, > please update the documentation (which, as you confirmed, needs to be > done anyway). I agree that the documentation should better reflect what unload-feature actually does, but I won't be the one writing it. I suck at that. =C2=A0 =C2=A0 Juanma