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: Sat, 13 Oct 2007 12:03:33 +0200 Message-ID: References: <55463.128.165.123.18.1192035787.squirrel@webmail.lanl.gov> <55585.128.165.123.18.1192038971.squirrel@webmail.lanl.gov> <858x6atas5.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1192269845 18053 80.91.229.12 (13 Oct 2007 10:04:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2007 10:04:05 +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 Sat Oct 13 12:03:54 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 1IgdqU-000593-Lz for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2007 12:03:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgdqO-0003XL-4E for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2007 06:03:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IgdqK-0003Wq-SV for emacs-devel@gnu.org; Sat, 13 Oct 2007 06:03:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IgdqJ-0003WK-Dt for emacs-devel@gnu.org; Sat, 13 Oct 2007 06:03:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgdqJ-0003WH-Az for emacs-devel@gnu.org; Sat, 13 Oct 2007 06:03:35 -0400 Original-Received: from hs-out-0708.google.com ([64.233.178.243] helo=hs-out-2021.google.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IgdqI-0004cL-VF for emacs-devel@gnu.org; Sat, 13 Oct 2007 06:03:35 -0400 Original-Received: by hs-out-2021.google.com with SMTP id 55so76951hsc for ; Sat, 13 Oct 2007 03:03:33 -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=OWyF+MnlVi92MQqzg4iFQ5+2IbHLmkvunz4u2QxkSW4=; b=KdL/gPHzcnUH63pYAxnwjf1zruLIR+FSNrCJltV45IkfF6WTut7wLvNK1kUbR8b6pTjylHD+oQbCRYkeXgV3hcIgmZGM7jWu6fnt0JahPK3krFRlJSY48eCLSLdoWVdw+p1/l13o52KToKnzLti878xkaizh0lo7BniRFvCfebc= 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=jJ25e+24dOP6/9+r+H0FZKaJ4alUKXMQ7XiECrRuHzxiEl8yu7tqByva/d6fcre/1wIogsVVX+l6eSGdC293s43SezQOhkOdYl2H6H9uLEi+y/1P5U+SkwuBZk33vyA+eTvUw/7OHFZ2OhsbPPF4e2x/XBQ8yi9vYEv2aDcTZvM= Original-Received: by 10.90.90.16 with SMTP id n16mr6068036agb.1192269813663; Sat, 13 Oct 2007 03:03:33 -0700 (PDT) Original-Received: by 10.90.103.8 with HTTP; Sat, 13 Oct 2007 03:03:33 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 (Google crawlbot) 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:80782 Archived-At: On 10/13/07, Richard Stallman wrote: > I don't know why you say it "only substitutes for part of that > processing". Maybe it is a misunderstanding. unload-feature does this: - Remove functions from hooks (those in `unload-feature-special-hook') and from `auto-mode-alist'. - Remove ELP stuff - Remove feature names - Restores autoloads - Kills local variables - (f)?makunbound's symbols - Kills timers - Deletes the load-history element for the file A package-defined FEATURE-unload-hook is run as an alternative to just *the first* of these items; the rest are done irregardless of the existence of FEATURE-unload-hook (though it can affect them in part by modifying `unload-hook-features-list'). > That is gratuitous breakage. No thanks. Well, you don't want to get rid of FEATURE-unload-hook, and you don't want to add FEATURE-unload-function and have two similar mechanisms. What is the alternative: retain FEATURE-unload-hook and make it do something else? Because, if I'm understanding you right, what you propose is turning the above list of unloading effects into one or several functions that can be called from FEATURE-unload-hook, and that is IMHO a hack. Juanma