|
From: | Christian Wittern |
Subject: | Re: [O] Preventing Org from being installed by elpa |
Date: | Thu, 22 Dec 2016 08:06:07 +0900 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
On 12/21/2016 10:25 PM, Karl Voit wrote:
* Christian Wittern <address@hidden> 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/<user>/.emacs.d/elpa/org-30000101/org-autoloads") load("/home/<user>/.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: <quote> On 2016-01-28 12:33, Karl Voit <address@hidden> 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 </quote>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
[Prev in Thread] | Current Thread | [Next in Thread] |