From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: is it bad to have both org and org-plus-contrib installed? Date: Tue, 24 Jan 2017 15:19:15 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cW1wR-00074E-N3 for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 09:19:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cW1wN-0001AN-Iy for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 09:19:23 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:58099) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cW1wN-00019c-96 for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 09:19:19 -0500 In-Reply-To: (Kaushal Modi's message of "Tue, 24 Jan 2017 12:14:36 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Kaushal Modi Cc: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2017-01-24 12:14, Kaushal Modi writes: > I don't recall facing the issue like yours when org gets > auto-installed as dependency. But I found it annoying to wait for org > to get installed as dependency magically when some package having that > as dependency got updated. So I would delete it manually, some package > would get updated, and it would get installed again. Unfortunately I cannot deleting it without deleting all the packages that depend on it :( > So eventually I came up with this and this has worked fine: > > ;; http://emacs.stackexchange.com/a/26513/115 > (defun modi/package-dependency-check-ignore (orig-ret) > "Remove the `black listed packages' from ORIG-RET. > Packages listed in the let-bound `pkg-black-list' will not be auto-instal= led > even if they are found as dependencies. > It is known that this advice is not effective when installed packages > asynchronously using `paradox'. Below is effective on synchronous > package installations." > (let ((pkg-black-list '(org)) > new-ret > pkg-name) > (dolist (pkg-struct orig-ret) > (setq pkg-name (package-desc-name pkg-struct)) > (if (member pkg-name pkg-black-list) > (message (concat "Package `%s' will not be installed. " > "See `modi/package-dependency-check-ignore'.") > pkg-name) > ;; (message "Package to be installed: %s" pkg-name) > (push pkg-struct new-ret))) > new-ret)) > (advice-add 'package-compute-transaction :filter-return #'modi/package-de= pendency-check-ignore) Thank you for the suggestion, but I use Spacemacs, which in turn uses paradox. Why couldn't there be an org-contrib package, depending on org? So that way org would not be duplicated in two packages. Thanks again, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82, Mauna Loa Obs. 2016-12: 404.48, 2015-12: = 401.85 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYh2JkAAoJEAQNCjtO0uXHugEH/iMYgmOlE08EXsQQ06q00q24 d6aYC92kWZibIz3oeT4syqxHa9T+5Z4v++xSckagMRpQy/waqYbxMxWaLfARzpbn EBGHj2aeSXVzqcfp7dMO0n3GBpLEQyH01OZq645/waD5DCsB3pYUW2ANM2ZIMPiZ 3hB+p0xigXBxLSEBgwH5LjDHGDVTbFMlYsyuaWhLxfvUxzaVHernOt27XYu6oEy2 UPqXy7AR/zzTYbcVdYG88+fNcIun57419XX/UtivUdkpCKRrVlbfqFyMwQD/Yz3Q LIHhYtNn5TfCsuOt9M3PN8jyBSkrhQTC06u0M18llt/rxNytmUohr7Xt1ld0hd4= =36O2 -----END PGP SIGNATURE----- --=-=-=--