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: Sat, 06 Aug 2011 11:20:41 +1000 Message-ID: <87aabnnxna.fsf@blah.blah> References: <87hbr4p67t.fsf@blah.blah> <871uxsl778.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 1312593743 2523 80.91.229.12 (6 Aug 2011 01:22:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 6 Aug 2011 01:22:23 +0000 (UTC) Cc: Juanma Barranquero , 5293@debbugs.gnu.org To: control@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 06 03:22:19 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 1QpVal-0001sF-06 for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Aug 2011 03:22:19 +0200 Original-Received: from localhost ([::1]:51574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpVak-0005FZ-ID for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Aug 2011 21:22:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:32825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpVah-0005FI-Mr for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2011 21:22:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpVag-0007EU-HM for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2011 21:22:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpVag-0007EQ-C4 for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2011 21:22:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QpVbS-0004nV-3A; Fri, 05 Aug 2011 21:23:02 -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: Sat, 06 Aug 2011 01: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.131259374618396 (code B ref 5293); Sat, 06 Aug 2011 01:23:01 +0000 Original-Received: (at 5293) by debbugs.gnu.org; 6 Aug 2011 01:22:26 +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 1QpVas-0004md-5q for submit@debbugs.gnu.org; Fri, 05 Aug 2011 21:22:26 -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 1QpVao-0004mQ-1M; Fri, 05 Aug 2011 21:22:23 -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 AE7222C09B0; Sat, 6 Aug 2011 11:21:31 +1000 (EST) Original-Received: from blah.blah (unknown [203.26.175.151]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 7DC9527419; Sat, 6 Aug 2011 11:21:25 +1000 (EST) Original-Received: from gg by blah.blah with local (Exim 4.72) (envelope-from ) id 1QpVZB-00052r-5r; Sat, 06 Aug 2011 11:20:41 +1000 In-Reply-To: (Stefan Monnier's message of "Sat, 16 Jul 2011 14:50:54 -0400") 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: Fri, 05 Aug 2011 21:23:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:49920 Archived-At: reopen 5293 thanks Stefan Monnier writes: > >> 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. > > Agreed. Someone would have to try it out to see if it can be > done efficiently. Reopened for that, or failing that then for clarifying the docstring. I imagine there's not normally many hooks or many buffers, or many buffer-local variables, whichever one of those was the efficient way to scan ... and unload-feature isn't used very much anyway. (Actually the way unload-feature seems not much used and not getting much attention from packages makes me wonder if it's worth bothering. But if unload-feature did a little more then it would increase its usefulness, perhaps to the point where it would be used more :-)