From mboxrd@z Thu Jan 1 00:00:00 1970 From: Meir Goldenberg Subject: Re: Emacs sees the directory with the new org-mode version, but loads the old version Date: Mon, 10 Aug 2015 09:28:52 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3330e662644051cef197c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOgZr-0000Qr-60 for emacs-orgmode@gnu.org; Mon, 10 Aug 2015 02:28:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOgZp-0001My-M6 for emacs-orgmode@gnu.org; Mon, 10 Aug 2015 02:28:55 -0400 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:33223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOgZp-0001Mg-GE for emacs-orgmode@gnu.org; Mon, 10 Aug 2015 02:28:53 -0400 Received: by obbhe7 with SMTP id he7so20730110obb.0 for ; Sun, 09 Aug 2015 23:28:52 -0700 (PDT) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Grant Rettke Cc: "emacs-orgmode@gnu.org" --001a11c3330e662644051cef197c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ah, I apologize for not posting an update. The problem has been solved: http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-t= he-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 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/ > =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates > =E2=80=9CAll creativity is an extended form of a joke.=E2=80=9D --Kay > ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) > =E2=80=9CLife has become immeasurably better since I have been forced to = stop > taking it seriously.=E2=80=9D --Thompson > > > On Thu, Aug 6, 2015 at 7:53 AM, Meir Goldenberg > 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? > --001a11c3330e662644051cef197c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank y= ou very much for the reply!=C2=A0

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/
=E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates
=E2=80=9CAll creativity is an extended form of a joke.=E2=80=9D --Kay
((=CE=BB (x) (x x)) (=CE=BB (x) (x x)))
=E2=80=9CLife has become immeasurably better since I have been forced to st= op
taking it seriously.=E2=80=9D --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 buil= t-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&qu= ot; x))
> load-path))
>
> (add-to-list 'load-path "~/.emacs.d/org-20150803")
>
> (require 'package)
> (add-to-list 'package-archives
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '("melpa"= ; . "http://melpa.milkbox.net/packages/") t)
> (package-initialize)
>
> (require 'org)
>
> How do I get Emacs to load the new version of org-mode?

--001a11c3330e662644051cef197c--