From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: unload-feature questions and thoughts Date: Thu, 11 Oct 2007 08:39:38 +0200 Message-ID: <858x6atas5.fsf@lola.goethe.zz> References: <86r6t5qdbo.fsf@lola.quinscape.zz> <861wl5q7al.fsf@lola.quinscape.zz> <54853.128.165.123.18.1192027947.squirrel@webmail.lanl.gov> <55463.128.165.123.18.1192035787.squirrel@webmail.lanl.gov> <55585.128.165.123.18.1192038971.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1192084756 9155 80.91.229.12 (11 Oct 2007 06:39:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2007 06:39:16 +0000 (UTC) Cc: Juanma Barranquero , Emacs Devel To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 11 08:39:14 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IfrhR-0003QR-G5 for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 08:39:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfrhL-0005q8-57 for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 02:39:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfrhH-0005mg-0v for emacs-devel@gnu.org; Thu, 11 Oct 2007 02:39:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfrhF-0005kq-HK for emacs-devel@gnu.org; Thu, 11 Oct 2007 02:39:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfrhF-0005kn-Bf for emacs-devel@gnu.org; Thu, 11 Oct 2007 02:39:01 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfrhF-0001J7-4X for emacs-devel@gnu.org; Thu, 11 Oct 2007 02:39:01 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfrgF-00033z-EF; Thu, 11 Oct 2007 02:37:59 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 1898F1C1F3DC; Thu, 11 Oct 2007 08:39:38 +0200 (CEST) In-Reply-To: <55585.128.165.123.18.1192038971.squirrel@webmail.lanl.gov> (Davis Herring's message of "Wed\, 10 Oct 2007 10\:56\:11 -0700 \(PDT\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80589 Archived-At: "Davis Herring" writes: > So I think that the evidence is for the intuitively obvious > statement that no one knows how to use the hook. I found no > examples where the normal heuristics would break anything, although > neither did I find any examples where the unload-hook actually broke > things by suppressing the "normal heuristics". So I think treating > it as a bug is probably the right thing to do for simplicity: just > do the heuristics regardless, and let the rare hooks that really > need to suppress them kill the variable bound for that purpose. Have you checked AUCTeX's loadup/startup sequence? It uses the unload hooks in order to offer a way of selectively disabling autoloaded parts. While the "no one knows" is somewhat accurate (it was a combination of reverse engineering and trial and error to make me understand the implications), it is likely not true that nothing will break by changes in that area where external packages are concerned. And it is mostly external packages that will use those kinds of hooks. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum