From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Wittern Subject: Re: Preventing Org from being installed by elpa Date: Thu, 22 Dec 2016 08:06:07 +0900 Message-ID: <64dde4d2-81c8-633f-27f3-5fa03a2a6d0e@gmail.com> References: <87h960wuq9.fsf@ericabrahamsen.net> <2016-12-20T21-04-43@devnull.Karl-Voit.at> <2016-12-21T14-24-35@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJpxf-0000Xj-7L for emacs-orgmode@gnu.org; Wed, 21 Dec 2016 18:06:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJpxb-0004Ha-RU for emacs-orgmode@gnu.org; Wed, 21 Dec 2016 18:06:15 -0500 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:33916) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cJpxb-0004HG-LO for emacs-orgmode@gnu.org; Wed, 21 Dec 2016 18:06:11 -0500 Received: by mail-pg0-x242.google.com with SMTP id b1so17798319pgc.1 for ; Wed, 21 Dec 2016 15:06:11 -0800 (PST) Received: from [192.168.0.15] (119-231-22-59f1.kyt1.eonet.ne.jp. [119.231.22.59]) by smtp.gmail.com with ESMTPSA id f3sm49630388pga.45.2016.12.21.15.06.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Dec 2016 15:06:08 -0800 (PST) In-Reply-To: <2016-12-21T14-24-35@devnull.Karl-Voit.at> 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: emacs-orgmode@gnu.org On 12/21/2016 10:25 PM, Karl Voit wrote: > * Christian Wittern wrote: >> On 12/21/2016 05:07 AM, Karl Voit wrote: >>> I got the tipp of creating «~/.emacs.d/elpa/org-30000101/org-pkg.el» >>> with: >>> (define-package "org" "30000101" "Dummy org mode package" 'nil) >>> >>> And this simulates the fulfilled dependency so that my git version >>> of Org-mode is the only one installed (besides maybe the default one >>> from Emacs). >> >> Hmm, this sounds like what I want. However, when I try this, Emacs tells me: >> >> (file-error "Cannot open load file" "no such file or directory" >> "/home//.emacs.d/elpa/org-30000101/org-autoloads") >> load("/home//.emacs.d/elpa/org-30000101/org-autoloads" nil t) >> >> Is there a way to avoid this? > > I'm sorry. > > Usually, I do keep detailed notes on things I do. But when I created > this pseudo-package, I did not write down a detailed howto for my > future me. > > But the input for this came from this mailing list. So please search > the archive and you might get the original instructions. > OK, I found the source in this message by Alan Schmitt, to which you replied: On 2016-01-28 12:33, Karl Voit writes: >> I’ve had issues with this in the past (I also use org for git). To >> make sure org is never installed with elpa, I manually install >> (`package-install-file') this org.el file: >> >> #+begin_src emacs-lisp >> ;;; org.el --- Dummy org mode package >> >> ;; Copyright (C) 2014 Alan Schmitt >> >> ;; Version: 30000101 >> >> () >> >> ;;; org.el ends here >> #+end_src > > There is no "(provide 'org)" or so? I have not found it necessary. I make sure I load org before initializing packages, and everything works. Alan Using this recipe, I get also a file org-autoloads.el produced by package.el and everything seems to work. Cheers, Christian -- Christian Wittern, Kyoto