From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#5294: 23.1; unload-feature disable minor-mode Date: Mon, 4 Jan 2010 00:12:55 +0100 Message-ID: References: <87aawwp631.fsf@blah.blah> <87tyv4njo7.fsf@blah.blah> <87bpha7ptb.fsf@blah.blah> Reply-To: Juanma Barranquero , 5294@debbugs.gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1262560784 28603 80.91.229.12 (3 Jan 2010 23:19:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jan 2010 23:19:44 +0000 (UTC) Cc: 5294@debbugs.gnu.org To: Kevin Ryde Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 04 00:19:37 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NRZjR-0003EY-Vt for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jan 2010 00:19:34 +0100 Original-Received: from localhost ([127.0.0.1]:38228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRZjS-0007ja-C7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jan 2010 18:19:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NRZjN-0007jE-2U for bug-gnu-emacs@gnu.org; Sun, 03 Jan 2010 18:19:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NRZjD-0007fK-9I for bug-gnu-emacs@gnu.org; Sun, 03 Jan 2010 18:19:28 -0500 Original-Received: from [199.232.76.173] (port=53592 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRZjD-0007fD-3C for bug-gnu-emacs@gnu.org; Sun, 03 Jan 2010 18:19:19 -0500 Original-Received: from [140.186.70.43] (port=49397 helo=debbugs.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NRZjC-0004VB-M7 for bug-gnu-emacs@gnu.org; Sun, 03 Jan 2010 18:19:18 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NRZe6-0002rm-GK; Sun, 03 Jan 2010 18:14:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: Juanma Barranquero , 5294@debbugs.gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jan 2010 23:14:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5294 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5294-submit@debbugs.gnu.org id=B5294.126256040111002 (code B ref 5294); Sun, 03 Jan 2010 23:14:02 +0000 Original-Received: (at 5294) by debbugs.gnu.org; 3 Jan 2010 23:13:21 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NRZdR-0002rP-Bj for submit@debbugs.gnu.org; Sun, 03 Jan 2010 18:13:21 -0500 Original-Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NRZdP-0002rG-Sj for 5294@debbugs.gnu.org; Sun, 03 Jan 2010 18:13:20 -0500 Original-Received: by bwz8 with SMTP id 8so9340079bwz.39 for <5294@debbugs.gnu.org>; Sun, 03 Jan 2010 15:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=tRkx9zfT9doo8tnpWjacnccpZD7eEW3q5YqAIwCViSQ=; b=caPR87UVeicTKDnw/KgGrhpJ/co4LD+E8zPc0TwDRWlQUYkzYhaubNJ+hK8zBh0urN t0DWsuPDakJzMZ4Z3tbCFi847MXNRWcZetzAyCtfzy2sy4SMADYmN86KD3+FSvB3SFsw OROAu2koWMnGllCRw12kZguW2NHKV1Hl7R/ec= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=ooVv8CKzE4iToEiBCs4KhAyrTwtJClYoVplQ8ZKdsj2Imk9UjBuVYaqRjDYcfGFjew ND3dmiQNwCngd0up+BltDDFpoAl008VIo00pp2RDV6qHRawfBb963F/XaBRLY5BUOqil mhu6k+vci6keAp4gp5t6CE5bzc5/yVkrWlt8I= Original-Received: by 10.204.8.151 with SMTP id h23mr3092385bkh.194.1262560395130; Sun, 03 Jan 2010 15:13:15 -0800 (PST) In-Reply-To: <87bpha7ptb.fsf@blah.blah> X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.7 (--) Resent-Date: Sun, 03 Jan 2010 18:14:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33911 Archived-At: On Mon, Jan 4, 2010 at 00:04, Kevin Ryde wrote: > Though I wonder that an add-on might want to slip in > after the FOO-unload-function has reported whether the "normal" unload > actions should be performed. You can use an around advice, and have almost complete control. > Mind you, I wonder if unload-feature is slightly doomed in general, > ie. unless a given package has thought rather carefully about the > consequences! =C2=A0:-) Well, certainly unloading can have consequences; that's why I insist that the best place to define what should do for any package is in the package itself. Even an add-on to a package should just define its own feature, and FOO-unload-function for itself, IMO. If you don't use the FORCE argument, a package cannot be unloaded before unloading its dependencies, so it is safe to unload the add-ons before. Juanma