emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Emacs sees the directory with the new org-mode version, but loads the old version
@ 2015-08-06 12:53 Meir Goldenberg
  2015-08-10  1:40 ` Grant Rettke
  0 siblings, 1 reply; 3+ messages in thread
From: Meir Goldenberg @ 2015-08-06 12:53 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

The version of org-mode that came with my version of Emacs (24.5.2) is
8.2.10. I have installed version 8.3.1 from ELPA and added this to my init
file:

(add-to-list 'load-path "~/.emacs.d/org-20150803")
(require 'org)

When I check the version of org in Emacs, it says:

Org-mode version 8.2.10 (release_8.2.10 @
/home/meir/.emacs.d/elpa/org-20150803/)

That is, it reports the old version and the new directory... (the built-in
version is located in /usr/local/share/emacs/24.5/lisp/org)

Here is the relevant portion of my init file (there is nothing before this
portion):

(require 'cl)

;; Org-mode that was shipped with Emacs
(setq load-path (remove-if (lambda (x) (string-match-p "org$" x))
load-path))
;; ELPA
(setq load-path (remove-if (lambda (x) (string-match-p "org-20" x))
load-path))

(add-to-list 'load-path "~/.emacs.d/org-20150803")

(require 'package)
(add-to-list 'package-archives
             '("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)

(require 'org)

How do I get Emacs to load the new version of org-mode?

[-- Attachment #2: Type: text/html, Size: 1576 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs sees the directory with the new org-mode version, but loads the old version
  2015-08-06 12:53 Emacs sees the directory with the new org-mode version, but loads the old version Meir Goldenberg
@ 2015-08-10  1:40 ` Grant Rettke
  2015-08-10  6:28   ` Meir Goldenberg
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Rettke @ 2015-08-10  1:40 UTC (permalink / raw)
  To: Meir Goldenberg; +Cc: emacs-orgmode@gnu.org

Create a init file with only the contents and use that to start EMACS

(add-to-list 'load-path "~/.emacs.d/org-20150803")
(require 'org)

And check the `org-version'. It ought to be what you expect. Did you
get that from a ZIP? Did you follow the directions to generate the
autoloads and stuff?

Depending upon where and how you load 'org, another MELPA package
could be requiring org-mode transitively, before your load call. It is
very easy to have that happen.
Grant Rettke
--
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
“All creativity is an extended form of a joke.” --Kay
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Thu, Aug 6, 2015 at 7:53 AM, Meir Goldenberg <mgoldenbe@gmail.com> wrote:
> The version of org-mode that came with my version of Emacs (24.5.2) is
> 8.2.10. I have installed version 8.3.1 from ELPA and added this to my init
> file:
>
> (add-to-list 'load-path "~/.emacs.d/org-20150803")
> (require 'org)
>
> When I check the version of org in Emacs, it says:
>
> Org-mode version 8.2.10 (release_8.2.10 @
> /home/meir/.emacs.d/elpa/org-20150803/)
>
> That is, it reports the old version and the new directory... (the built-in
> version is located in /usr/local/share/emacs/24.5/lisp/org)
>
> Here is the relevant portion of my init file (there is nothing before this
> portion):
>
> (require 'cl)
>
> ;; Org-mode that was shipped with Emacs
> (setq load-path (remove-if (lambda (x) (string-match-p "org$" x))
> load-path))
> ;; ELPA
> (setq load-path (remove-if (lambda (x) (string-match-p "org-20" x))
> load-path))
>
> (add-to-list 'load-path "~/.emacs.d/org-20150803")
>
> (require 'package)
> (add-to-list 'package-archives
>              '("melpa" . "http://melpa.milkbox.net/packages/") t)
> (package-initialize)
>
> (require 'org)
>
> How do I get Emacs to load the new version of org-mode?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs sees the directory with the new org-mode version, but loads the old version
  2015-08-10  1:40 ` Grant Rettke
@ 2015-08-10  6:28   ` Meir Goldenberg
  0 siblings, 0 replies; 3+ messages in thread
From: Meir Goldenberg @ 2015-08-10  6:28 UTC (permalink / raw)
  To: Grant Rettke; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 2489 bytes --]

Ah, I apologize for not posting an update. The problem has been solved:
http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio
Thank you very much for the reply!

On Mon, Aug 10, 2015 at 4:40 AM, Grant Rettke <gcr@wisdomandwonder.com>
wrote:

> Create a init file with only the contents and use that to start EMACS
>
> (add-to-list 'load-path "~/.emacs.d/org-20150803")
> (require 'org)
>
> And check the `org-version'. It ought to be what you expect. Did you
> get that from a ZIP? Did you follow the directions to generate the
> autoloads and stuff?
>
> Depending upon where and how you load 'org, another MELPA package
> could be requiring org-mode transitively, before your load call. It is
> very easy to have that happen.
> Grant Rettke
> --
> gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
> “Wisdom begins in wonder.” --Socrates
> “All creativity is an extended form of a joke.” --Kay
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson
>
>
> On Thu, Aug 6, 2015 at 7:53 AM, Meir Goldenberg <mgoldenbe@gmail.com>
> wrote:
> > The version of org-mode that came with my version of Emacs (24.5.2) is
> > 8.2.10. I have installed version 8.3.1 from ELPA and added this to my
> init
> > file:
> >
> > (add-to-list 'load-path "~/.emacs.d/org-20150803")
> > (require 'org)
> >
> > When I check the version of org in Emacs, it says:
> >
> > Org-mode version 8.2.10 (release_8.2.10 @
> > /home/meir/.emacs.d/elpa/org-20150803/)
> >
> > That is, it reports the old version and the new directory... (the
> built-in
> > version is located in /usr/local/share/emacs/24.5/lisp/org)
> >
> > Here is the relevant portion of my init file (there is nothing before
> this
> > portion):
> >
> > (require 'cl)
> >
> > ;; Org-mode that was shipped with Emacs
> > (setq load-path (remove-if (lambda (x) (string-match-p "org$" x))
> > load-path))
> > ;; ELPA
> > (setq load-path (remove-if (lambda (x) (string-match-p "org-20" x))
> > load-path))
> >
> > (add-to-list 'load-path "~/.emacs.d/org-20150803")
> >
> > (require 'package)
> > (add-to-list 'package-archives
> >              '("melpa" . "http://melpa.milkbox.net/packages/") t)
> > (package-initialize)
> >
> > (require 'org)
> >
> > How do I get Emacs to load the new version of org-mode?
>

[-- Attachment #2: Type: text/html, Size: 3657 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-10  6:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-06 12:53 Emacs sees the directory with the new org-mode version, but loads the old version Meir Goldenberg
2015-08-10  1:40 ` Grant Rettke
2015-08-10  6:28   ` Meir Goldenberg

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).