From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: feature/integrated-elpa 4f6df43 15/23: README added Date: Wed, 19 Oct 2016 21:24:03 +0100 Message-ID: <87shrs6qak.fsf@russet.org.uk> References: <20160916203414.25203.87032@vcs.savannah.gnu.org> <87mvi5spl9.fsf@Rainer.invalid> <83mvi51y3b.fsf@gnu.org> <87instslxu.fsf@russet.org.uk> <83inst1vut.fsf@gnu.org> <87eg3ekjz2.fsf@russet.org.uk> <83vawpx677.fsf@gnu.org> <87h989ixxd.fsf@russet.org.uk> <83mvi1ww6m.fsf@gnu.org> <87wph5fw0w.fsf@russet.org.uk> <838ttlwodt.fsf@gnu.org> <878ttl3342.fsf@Rainer.invalid> <8360opwjs2.fsf@gnu.org> <8760oosrn8.fsf@russet.org.uk> <83shrsvj3g.fsf@gnu.org> <86twc8r8gw.fsf@realize.ch> <83r37cvfo6.fsf@gnu.org> <86oa2gr7jb.fsf@realize.ch> <86k2d4r5y5.fsf@realize.ch> <87bmygfjso.fsf@russet.org.uk> <86bmygqh49.fsf@realize.ch> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1476908791 28568 195.159.176.226 (19 Oct 2016 20:26:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2016 20:26:31 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: Eli Zaretskii , Stromeko@nexgo.de, emacs-devel@gnu.org To: Alain Schneble Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 19 22:26:27 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwxRM-0005xD-2y for ged-emacs-devel@m.gmane.org; Wed, 19 Oct 2016 22:26:20 +0200 Original-Received: from localhost ([::1]:51096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwxRO-0000QN-6d for ged-emacs-devel@m.gmane.org; Wed, 19 Oct 2016 16:26:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwxPS-0007Ka-IO for emacs-devel@gnu.org; Wed, 19 Oct 2016 16:24:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwxPR-0008OT-Nq for emacs-devel@gnu.org; Wed, 19 Oct 2016 16:24:22 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:45134) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bwxPP-0008NM-VD; Wed, 19 Oct 2016 16:24:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:References:Message-ID :Date:In-Reply-To:Subject:Cc:To:From; bh=8Y1JhsKebt0Rpr9dqAJJke5f/G2GqZadxsEzQuZvWp0=; b=QChetXlXuRd47vNeJIJySOgNJc w/y7TZVKXiZH8nUpMzCItsq6eKgUMl8Ibt217Z69mQtv+clSR2VA9PBwqrfpuvDN+37lUeVOo7Huc nyGgDip9SvUvGfp73/xwXx+lInw+iCvwBrmn0OP7I777oI1rUd4QmDXxti5PRcsyPyYxCf1D9wIEL dm1aqHzGCPKpHkQPjC32T93nRax6vlNa5O6+t+YNtNI+rJXbF2mQUTw3c48p/2FVl7q66S+XwHcN7 IZttGFdLPBFFw4GD8L1sUiymWhAHcqlLC7+z0VWyMsdYNvolS1tP945lrCWkjvm+Cf74+ePu3RuRT /t6D5UCw==; Original-Received: from cpc14-benw10-2-0-cust305.16-2.cable.virginm.net ([92.234.125.50]:34488 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_1) (envelope-from ) id 1bwxPO-004N7x-Od; Wed, 19 Oct 2016 21:24:18 +0100 In-Reply-To: <86bmygqh49.fsf@realize.ch> (Alain Schneble's message of "Wed, 19 Oct 2016 21:21:58 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 31.216.48.48 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:208502 Archived-At: Alain Schneble writes: > phillip.lord@russet.org.uk (Phillip Lord) writes: >> (error "org-html is now deprecated") >> (provide 'org-html) >> >> >> Yes, that would work, but does not provide a good solution to my mind. > > Yes, that is one approach. The other I proposed is using > after-load-alist: > > Extract the example in the attached file. > > > > - emacs -Q > > - Eval the following fragment, after having replaced [path-to] to the > proper path where the example was extracted to: > > (push "[path-to]/deprecated-feature-example/foo-package-1.0" load-path) > (push "[path-to]/deprecated-feature-example/foo-package-2.0" load-path) > (require 'foo-old) > => an error will be signaled "foo-old is no longer supported..." > > But don't get me wrong. I really don't think this will be the usual > case. In most if not all packages, accounting for such misuses won't be > required at all. I just wanted to prove it's not an unsolvable problem. I like this, and it gives a nice error message of deprecation, and I think that is good. But this is a solution which requires package developers to explicitly support declarations of deprecation. Just removing "food-package-1.0" from `load-path` gives a less nice error message, but it still fails fast, and requires no developer support Phil