From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: bug#5293: 23.1; unload-feature on buffer-local hooks Date: Fri, 15 Jul 2011 10:26:51 +1000 Message-ID: <871uxsl778.fsf@blah.blah> References: <87hbr4p67t.fsf@blah.blah> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310689713 504 80.91.229.12 (15 Jul 2011 00:28:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2011 00:28:33 +0000 (UTC) Cc: 5293@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 15 02:28:28 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 1QhWGa-0003tQ-KH for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jul 2011 02:28:28 +0200 Original-Received: from localhost ([::1]:45663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhWGZ-0001TG-TU for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jul 2011 20:28:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhWGF-0001S1-0o for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2011 20:28:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhWGD-0000Iv-Rb for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2011 20:28:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhWGD-0000Il-NO for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2011 20:28:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QhWGD-00072a-5j; Thu, 14 Jul 2011 20:28:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Ryde 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 00:28:04 +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.131068968327054 (code B ref 5293); Fri, 15 Jul 2011 00:28:04 +0000 Original-Received: (at 5293) by debbugs.gnu.org; 15 Jul 2011 00:28:03 +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 1QhWGA-00072H-7o for submit@debbugs.gnu.org; Thu, 14 Jul 2011 20:28:02 -0400 Original-Received: from mailout2-6.pacific.net.au ([61.8.2.229] helo=mailout2.pacific.net.au) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhWG7-000722-Oe for 5293@debbugs.gnu.org; Thu, 14 Jul 2011 20:28:00 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id 233102BDFC4; Fri, 15 Jul 2011 10:27:53 +1000 (EST) Original-Received: from blah.blah (unknown [203.26.175.98]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id C1F022741C; Fri, 15 Jul 2011 10:27:46 +1000 (EST) Original-Received: from gg by blah.blah with local (Exim 4.72) (envelope-from ) id 1QhWF1-00064H-8A; Fri, 15 Jul 2011 10:26:51 +1000 In-Reply-To: (Juanma Barranquero's message of "Wed, 13 Jul 2011 22:28:02 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 14 Jul 2011 20:28:05 -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:49101 Archived-At: Juanma Barranquero writes: > > but I'm not sure that looking in every buffer-local > variable of every live buffer No, just the hooks. If it makes sense to remove unloaded funcs from hook global values then surely the same rationale applies to remove them from the buffer-local values too. Or conversely, it's undesirable to leave behind an unbound func in a hook, and the same undesirability as to a buffer-local value as a global value.