From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: unload-feature questions and thoughts Date: Tue, 16 Oct 2007 10:15:05 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1192522550 13660 80.91.229.12 (16 Oct 2007 08:15:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2007 08:15:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 16 10:15:41 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 1IhhaC-00034b-QA for ged-emacs-devel@m.gmane.org; Tue, 16 Oct 2007 10:15:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ihha5-0000XP-S3 for ged-emacs-devel@m.gmane.org; Tue, 16 Oct 2007 04:15:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ihha1-0000Vg-Oe for emacs-devel@gnu.org; Tue, 16 Oct 2007 04:15:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IhhZz-0000U6-9o for emacs-devel@gnu.org; Tue, 16 Oct 2007 04:15:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhhZz-0000U3-3X for emacs-devel@gnu.org; Tue, 16 Oct 2007 04:15:07 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.224]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IhhZy-00079Z-Qn for emacs-devel@gnu.org; Tue, 16 Oct 2007 04:15:06 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s7so1780284wxc for ; Tue, 16 Oct 2007 01:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=zbVqEtCmiglahnRXOZVbrK5NXRH+xdF43MgiE1vUKpQ=; b=ngXVXxLQbI6iAnPBJprmSDZKvUmS9B8uhwopMGBC91WlTVxPkLwtTThtBkI6tgEwxNodqpjiJCQpMcZfmCu2RAA7UobvSak4sHn5OhNOnOtPz3blJCibjMOEHUr/cwjpkC6jIv7hqj/udTnu9QNWc4SwU6u25U29U0nyrqAKC+A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=k8+bU7N5uuDA+xTwJMaopBdJM1fzC7IX8jrqmTN9X5d7i/OSSfLbHKrtl2s/Vkrl9VGOgOHPDd74mNSxJLI+wAZz0i73kXQ93pHGOerCGLOB3l9JqY7GVx+thgrc4lY1M89VUENNoWMzZYkrUBwv+8w3y555Q2pbZYESArUx6ps= Original-Received: by 10.90.116.6 with SMTP id o6mr10248926agc.1192522505695; Tue, 16 Oct 2007 01:15:05 -0700 (PDT) Original-Received: by 10.90.103.8 with HTTP; Tue, 16 Oct 2007 01:15:05 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:80999 Archived-At: On 10/16/07, Richard Stallman wrote: > That's the idea, though for finer-grained control > FEATURE-unload-function can always modify `unload-hook-features-list' > before returning the "continue the standard processing" flag back to > `unload-feature'. > > How would that be useful? What problem could it solve? Well, that's how `unload-hook-features-list' is used right now, according to docstrings. >From `unload-hook-features-list': This is meant to be used by FEATURE-unload-hook hooks, see the documentation of `unload-feature' for details. >From `unload-feature': 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. It has access to the package's feature list (before anything is unbound) in the variable `unload-hook-features-list' and could remove features from it in the event that the package has done something strange, such as redefining an Emacs function. Juanma