From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: unload-feature questions and thoughts Date: Mon, 05 Feb 2007 19:16:39 -0500 Message-ID: References: <85bqk9db9a.fsf@lola.goethe.zz> <851wl5d9b2.fsf@lola.goethe.zz> <86r6t5qdbo.fsf@lola.quinscape.zz> <861wl5q7al.fsf@lola.quinscape.zz> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1170721141 8654 80.91.229.12 (6 Feb 2007 00:19:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Feb 2007 00:19:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 06 01:18:56 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 1HEE2x-0002ZR-9Q for ged-emacs-devel@m.gmane.org; Tue, 06 Feb 2007 01:18:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HEE2w-0007Jy-6P for ged-emacs-devel@m.gmane.org; Mon, 05 Feb 2007 19:18:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HEE1t-00068K-Cz for emacs-devel@gnu.org; Mon, 05 Feb 2007 19:17:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HEE1r-00066z-TF for emacs-devel@gnu.org; Mon, 05 Feb 2007 19:17:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HEE1r-00066j-Dj for emacs-devel@gnu.org; Mon, 05 Feb 2007 19:17:47 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HEE1r-00067F-AD for emacs-devel@gnu.org; Mon, 05 Feb 2007 19:17:47 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HEE0l-0004T8-6F; Mon, 05 Feb 2007 19:16:39 -0500 In-reply-to: (lekktu@gmail.com) 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:65978 Archived-At: the function), but I think this piece of docstring is a bit confusing This function tries to undo modifications made by the package to hooks. Packages may define a hook FEATURE-unload-hook that is called instead of the normal heuristics for doing this. Such a hook should undo all the relevant global state changes that may have been made by loading the package or executing functions in it. because if you miss the "to hooks" (two words), as I did in several readings, it seems like it is saying that either you define FEATURE-unload-hook, or else it uses "the normal heuristics". I agree, let's clarify this -- in the doc string and in the Lisp manual. Would someone like to try it?