Re: [O] Preventing Org from being installed by elpa
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-3101/org-pkg.el» with: (define-package "org" "3101" "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-3101/org-autoloads") load("/home//.emacs.d/elpa/org-3101/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: 3101 >> >> () >> >> ;;; 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
Re: [O] Preventing Org from being installed by elpa
Karl Voit writes: > * Phillip Lord wrote: >> Karl Voit writes: >> >>> I got the tipp of creating «~/.emacs.d/elpa/org-3101/org-pkg.el» >>> with: >>> (define-package "org" "3101" "Dummy org mode package" 'nil) >> >> >> You could probably do something with package-pinned-packages also. > > Hm. > > I'm not an expert in package.el or package managers in general but > isn't "pinning" something different? I thought that pinning is > "install a package and prevent it from being updated". > > Whereas I want to avoid a package to be installed in the first > place. Pinning is to say "I want this package to come from this place". In this case, you want to say "I want this package to come from the file system". It seems a related issue. It's not going to happen unless someone codes it or reports it, though. Phil
Re: [O] Preventing Org from being installed by elpa
* Phillip Lord wrote: > Karl Voit writes: > >> I got the tipp of creating «~/.emacs.d/elpa/org-3101/org-pkg.el» >> with: >> (define-package "org" "3101" "Dummy org mode package" 'nil) > > > You could probably do something with package-pinned-packages also. Hm. I'm not an expert in package.el or package managers in general but isn't "pinning" something different? I thought that pinning is "install a package and prevent it from being updated". Whereas I want to avoid a package to be installed in the first place. -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] Preventing Org from being installed by elpa
* Christian Wittern wrote: > On 12/21/2016 05:07 AM, Karl Voit wrote: >> I got the tipp of creating «~/.emacs.d/elpa/org-3101/org-pkg.el» >> with: >> (define-package "org" "3101" "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-3101/org-autoloads") >load("/home//.emacs.d/elpa/org-3101/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. -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] Preventing Org from being installed by elpa
Karl Voit writes: > * Eric Abrahamsen wrote: >> >> Actually, I have a third: the plain old Org package from the >> package repos, because I've installed other packages that require >> it. (Another gripe: why isn't the loading of a file containing >> (provide 'org) enough to tell the package manager not to install >> another one?) > > I got the tipp of creating «~/.emacs.d/elpa/org-3101/org-pkg.el» > with: > (define-package "org" "3101" "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). You could probably do something with package-pinned-packages also. This is probably something that package.el should support, so when not submit a bug report?
Re: [O] Preventing Org from being installed by elpa
On 12/21/2016 05:07 AM, Karl Voit wrote: I got the tipp of creating «~/.emacs.d/elpa/org-3101/org-pkg.el» with: (define-package "org" "3101" "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-3101/org-autoloads") load("/home//.emacs.d/elpa/org-3101/org-autoloads" nil t) Is there a way to avoid this? All the best, Christian -- Christian Wittern, Kyoto
[O] Preventing Org from being installed by elpa (was: Remove Org from Emacs repository?)
* Eric Abrahamsen wrote: > > Actually, I have a third: the plain old Org package from the > package repos, because I've installed other packages that require > it. (Another gripe: why isn't the loading of a file containing > (provide 'org) enough to tell the package manager not to install > another one?) I got the tipp of creating «~/.emacs.d/elpa/org-3101/org-pkg.el» with: (define-package "org" "3101" "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). HTH -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github