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: Sat, 13 Oct 2007 02:41:31 -0400 Message-ID: References: <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> <858x6atas5.fsf@lola.goethe.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 1192257962 23199 80.91.229.12 (13 Oct 2007 06:46:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2007 06:46:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 13 08:45:52 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 1Igakx-0004jC-9F for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2007 08:45:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Igakr-0003c8-1a for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2007 02:45:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Igagm-0000Jk-D7 for emacs-devel@gnu.org; Sat, 13 Oct 2007 02:41:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Igagl-0000JR-Se for emacs-devel@gnu.org; Sat, 13 Oct 2007 02:41:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Igagl-0000JL-MH for emacs-devel@gnu.org; Sat, 13 Oct 2007 02:41:31 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Igagl-0006ms-EY for emacs-devel@gnu.org; Sat, 13 Oct 2007 02:41:31 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Igagl-0001Tu-5P; Sat, 13 Oct 2007 02:41:31 -0400 In-reply-to: (lekktu@gmail.com) X-detected-kernel: by monty-python.gnu.org: 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:80774 Archived-At: > If we are not going to change the meaning of FEATURE-unload-hook, then > rather than create a second similar feature, I would rather move the > normal handling into a function that the hooks can call. IMHO this is a hack. `unload-feature' does quite a bit of things (and could conceivably do more, as Davis suggested: remove items from keymaps, for example). There's no need for a hook that only substitutes for part of that processing. I don't know why you say it "only substitutes for part of that processing". Maybe it is a misunderstanding. Let's get rid of FEATURE-unload-hook. It is used only when unloading packages, so in most cases the incompatibility won't cause big trouble (unless unloading packages is more common that I think). That is gratuitous breakage. No thanks.