From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Everaert Subject: Re: Problem with org-mode after upgradiing to org 8 Date: Mon, 14 Jul 2014 13:05:00 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2cbaa269a8504fe254314 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6e48-0003wd-Is for emacs-orgmode@gnu.org; Mon, 14 Jul 2014 07:05:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6e45-0002bN-Mc for emacs-orgmode@gnu.org; Mon, 14 Jul 2014 07:05:04 -0400 Received: from mail-oa0-x236.google.com ([2607:f8b0:4003:c02::236]:33453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6e45-0002YJ-EB for emacs-orgmode@gnu.org; Mon, 14 Jul 2014 07:05:01 -0400 Received: by mail-oa0-f54.google.com with SMTP id n16so3989381oag.13 for ; Mon, 14 Jul 2014 04:05:00 -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: John Hendy Cc: emacs-orgmode --001a11c2cbaa269a8504fe254314 Content-Type: text/plain; charset=UTF-8 org-mode will makes me crazy. After a deep review (well rewrite my entire configuration based on norang's one) org-mode is working again, but its the version bundled with emacs that seems to be loaded and not the one I downloaded from the git repository. My emacs configuration is structured like so: ~/.emacs.d/init.el ~/.emacs.d/site-lisp/ --> contains alot of lisp codes including the directory of org. At the top of the init.el file I put the following: (let ((default-directory "~/.emacs.d/site-lisp/")) (normal-top-level-add-to-load-path '(".")) (normal-top-level-add-subdirs-to-load-path)) I, later, load a file containing all my org-mode configuration. That file is located in ~/.emacs.d/site-lisp/. I load that file in this way: (load-library "my-org-mode-config") At the top of that configuration file is written: (add-to-list 'load-path (expand-file-name "~/.emacs.d/site-lisp/org-mode/lisp")) (add-to-list 'load-path (expand-file-name "~/.emacs.d/site-lisp/org-mode/contrib/lisp")) (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$" . org-mode)) (require 'org) So I don't understand why M-x org-version gives me: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/) Any help welcomed, Roland. On Fri, Jul 4, 2014 at 4:21 PM, John Hendy wrote: > On Fri, Jul 4, 2014 at 5:55 AM, Roland Everaert > wrote: > > Hi, > > > > After further investigation, it is the call to the function > > (org-agenda-to-appt) inside the function bh/org-agenda-to-appt that is > > causing the error. > > > > The body of the function: > > > > ; Erase all reminders and rebuilt reminders for today from the agenda > > (defun bh/org-agenda-to-appt () > > (interactive) > > (setq appt-time-msg-list nil) > > (org-agenda-to-appt) > > ) > > I know approximately nothing about elisp... but my intuitive > interpretation is that it's setting the variable appt-time-msg-list to > the value nil. When I do M-x help RET appt-msg-[TAB], I don't get any > completions listed. Does that variable still exist? > > When googling that variable, I find evidence of people referring to > it, but I'm not sure it's built into emacs -- are you sure you don't > need to add something else, such as appt.el? > - http://www.emacswiki.org/emacs-en/appt.el > > > John > > > > > > > I will deactivate the call to bh/org-agenda-to-appt, so I can have a > normal > > life again and use emacs and org-mode without any problem. I will review > and > > clean my configuration when times permit. > > > > I am anyway curious to know why that function call generate such error. > > > > Thanks for your help, > > > > > > Roland. > > > > > > > > > > On Thu, Jul 3, 2014 at 10:10 AM, Roland Everaert > > wrote: > >> > >> Hi John, > >> > >> I am using Bernt's configuration (at least a part of it) for years > without > >> problems until I switch to org 8. > >> > >> I hame commented most of my init.el file and uncomment bits of > >> configuration lines one at a time. and I have found where is located the > >> problem. I have know to investigate why it is a problem. > >> > >> The offending line is (bh/org-agenda-to-appt), this is one of the > function > >> from the configuration of Bernt, so I have now to check my version > against > >> the one on his page to see if he doesn't update it. > >> > >> And to answer your question, the loaded version of org-mode is "Org-mode > >> version beta_8.3 (beta_8.3-16-g16c71d6 @ > >> /home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/)" > >> > >> I will also perform a "make clean > make" of my installation of org-mode > >> just in case some their is some garbage left from previous version. > >> > >> > >> Thanks for your help, > >> > >> > >> Roland. > >> > >> > >> > >> > >> > >> On Tue, Jul 1, 2014 at 5:55 PM, John Hendy wrote: > >>> > >>> On Tue, Jul 1, 2014 at 5:04 AM, Roland Everaert > >>> wrote: > >>> > I have upgraded using git on a Linux fedora 20 64 bit. > >>> > > >>> > I perform the following commands from the directory of org-mode: > >>> > > >>> > make clean > >>> > git pull > >>> > make > >>> > >>> I usually do git pull > make clean > make, but don't know if that > >>> makes a difference, so that's probably fine. > >>> > >>> > I have also read the following page: > >>> > http://orgmode.org/worg/org-8.0.html > >>> > > >>> > And search for all variables in my configuration that start with > >>> > org-export, > >>> > but I have none of them. > >>> > >>> Well, I'm interested in the original error, "Autoloading failed to > >>> define function org-element-cache-reset", not anything to do with > >>> org-export. You should be able to start emacs without any errors, and > >>> I think that's the primary thing to troubleshoot first. > >>> > >>> > My configuration is heavily inspired by this article: > >>> > http://doc.norang.ca/org-mode.html > >>> > >>> Bernt's page is one of the most advanced orgmode setups documented > >>> that I've ever seen. I wouldn't get too deep into that before figuring > >>> out what's going on at the basic level. > >>> > >>> > > >>> > I have quickly browsed it in case some specific changes needs to be > >>> > done, > >>> > but the only ones concernes the exporters that I have not configured > >>> > yet. > >>> > > >>> > Which lines from the my ~/.emacs.d/init.el, would you like to see? > >>> > >>> How are you telling Emacs where Orgmode lives? My suggestion would be > >>> the following: > >>> > >>> Create a minimal .emacs file with just the following (change path to > >>> wherever your orgmode git repo is): > >>> > >>> (add-to-list 'load-path "~/path/to/org.git/lisp/") > >>> > >>> From a command line, run: > >>> > >>> $ emacs -Q > >>> > >>> Then from Emacs, run: > >>> > >>> M-x load-file [press enter] /path/to/minimal-config/from/above [press > >>> enter] > >>> > >>> Then run: > >>> > >>> M-x org-version > >>> > >>> You should get something like this: > >>> > >>> Org-mode version 8.2.6 (release_8.2.6-950-ge599e8 @ > >>> /home/jwhendy/.elisp/org.git/lisp/) > >>> > >>> If you don't get any errors, close emacs, copy some lines from your > >>> "real" config into that minimal config, and repeat the process (emacs > >>> -Q -> M-x load-file...) until you get the error again. Then you'll > >>> know what's causing it. Doing it this way helps know that you've at > >>> least got the "right" Org-mode loaded (not the one built in to your > >>> Emacs), and from there we can track the issue. > >>> > >>> Once that's all set, getting exporters going is a pretty simple > >>> matter. I have this in my .emacs: > >>> > >>> (require 'ox-latex) > >>> (require 'ox-html) > >>> (require 'ox-beamer) > >>> (require 'ox-md) > >>> (require 'ox-odt) > >>> (require 'ox-taskjuggler) > >>> > >>> (add-to-list 'org-latex-classes > >>> '("beamer" > >>> "\\documentclass\[presentation\]\{beamer\}" > >>> ("\\section\{%s\}" . "\\section*\{%s\}") > >>> ("\\subsection\{%s\}" . "\\subsection*\{%s\}") > >>> ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}"))) > >>> > >>> That handles it all for me. > >>> > >>> Also, please keep cc'ing the Org list. They know much more than I do, > >>> and as you provide more information can probably help you better than > >>> I can as well. > >>> > >>> > >>> Good luck! > >>> John > >>> > >>> > >>> > > >>> > > >>> > Roland. > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > On Mon, Jun 30, 2014 at 1:39 PM, John Hendy > wrote: > >>> >> > >>> >> > >>> >> On Jun 30, 2014 4:48 AM, "Roland Everaert" > >>> >> wrote: > >>> >> > > >>> >> > Second part of the message: > >>> >> > > >>> >> > Information from M-x org-version: > >>> >> > > >>> >> > Org-mode version beta_8.3 (beta_8.3-16-g16c71d6 @ > >>> >> > /home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/) > >>> >> > > >>> >> > I have downloaded the last version using git. > >>> >> > >>> >> Can you elaborate on your exact procedure for upgrading as well as > >>> >> posting > >>> >> relevant lines from .emacs? > >>> >> > >>> >> John > >>> >> > >>> >> > > >>> >> > How can I switch to a stable branch instead of the last beta, to > >>> >> > check > >>> >> > if that solves the problem? > >>> >> > > >>> >> > > >>> >> > Thanks for your help. > >>> >> > > >>> >> > > >>> >> > > >>> >> > On Mon, Jun 30, 2014 at 11:24 AM, Roland Everaert > >>> >> > > >>> >> > wrote: > >>> >> >> > >>> >> >> Hi, > >>> >> >> > >>> >> >> I have recently upgraded to org-mode version 8. Each time I start > >>> >> >> emacs > >>> >> >> I see the folloinwg error: > >>> >> >> > >>> >> >> error "Autoloading failed to define function > >>> >> >> org-element-cache-reset" > >>> >> >> > >>> >> >> > >>> >> >> And some functionnality of org-mode doesn't seems to work > anymore. > >>> >> >> > >>> >> >> > >>> >> >> Informa > >>> >> > > >>> >> > > >>> > > >>> > > >> > >> > > > --001a11c2cbaa269a8504fe254314 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
org-mode will makes me crazy. Aft= er a deep review (well rewrite my entire configuration based on norang'= s one) org-mode is working again, but its the version bundled with emacs th= at seems to be loaded and not the one I downloaded from the git repository.=


My emacs configuration is structured like so:

~/= .emacs.d/init.el
~/.emacs.d/site-lisp/ --> contains alot of lis= p codes including the directory of org.


At the top of the = init.el file I put the following:

(let ((default-directory "~/.emacs.d/site-lisp/"))
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (normal-top-level-add-to-load-path '(".&q= uot;))
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (normal-top-level-add-subdirs-to-l= oad-path))


I, later, load a file containing all my org-mod= e configuration. That file is located in ~/.emacs.d/site-lisp/. I load that= file in this way:

(load-library "my-org-mode-config")

=C2=A0At the top o= f that configuration file is written:

(add-to-list 'load-path (e= xpand-file-name "~/.emacs.d/site-lisp/org-mode/lisp"))
(add-to= -list 'load-path (expand-file-name "~/.emacs.d/site-lisp/org-mode/= contrib/lisp"))
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$&q= uot; . org-mode))

(require 'org)


So I don't understand why M-x org-version gives me:

Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/2= 4.3/lisp/org/)


Any help welcomed,

Roland.

On Fri, Jul 4, 2014 at 4:21 PM, John H= endy <jw.hendy@gmail.com> wrote:
On Fri, Jul 4, 2014 at 5:55 = AM, Roland Everaert <reveatwork@= gmail.com> wrote:
> Hi,
>
> After further investigation, it is the call to t= he function
> (org-agenda-to-appt) inside the function bh/org-agenda-to-appt that is=
> causing the error.
>
> The body of the function:
>
> ; Erase all reminders and rebuilt reminders for today from the agenda<= br> > (defun bh/org-agenda-to-appt ()
> =C2=A0 (interactive)
> =C2=A0 (setq appt-time-msg-list nil)
> =C2=A0(org-agenda-to-appt)
> )

I know approximately nothing about elisp... but my intuitive
interpretation is that it's setting the variable appt-time-msg-list to<= br> the value nil. When I do M-x help RET appt-msg-[TAB], I don't get any completions listed. Does that variable still exist?

When googling that variable, I find evidence of people referring to
it, but I'm not sure it's built into emacs -- are you sure you don&= #39;t
need to add something else, such as appt.el?
- h= ttp://www.emacswiki.org/emacs-en/appt.el


John

>
>
> I will deactivate the call to bh/org-agenda-to-appt, so I can have a n= ormal
> life again and use emacs and org-mode without any problem. I will revi= ew and
> clean my configuration when times permit.
>
> I am anyway curious to know why that function call generate such error= .
>
> Thanks for your help,
>
>
> Roland.
>
>
>
>
> On Thu, Jul 3, 2014 at 10:10 AM, Roland Everaert <reveatwork@gmail.com>
> wrote:
>>
>> Hi John,
>>
>> I am using Bernt's configuration (at least a part of it) for y= ears without
>> problems until I switch to org 8.
>>
>> I hame commented most of my init.el file and uncomment bits of
>> configuration lines one at a time. and I have found where is locat= ed the
>> problem. I have know to investigate why it is a problem.
>>
>> The offending line is (bh/org-agenda-to-appt), this is one of the = function
>> from the configuration of Bernt, so I have now to check my version= against
>> the one on his page to see if he doesn't update it.
>>
>> And to answer your question, the loaded version of org-mode is &qu= ot;Org-mode
>> version beta_8.3 (beta_8.3-16-g16c71d6 @
>> /home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/)"
>>
>> I will also perform a "make clean > make" of my insta= llation of org-mode
>> just in case some their is some garbage left from previous version= .
>>
>>
>> Thanks for your help,
>>
>>
>> Roland.
>>
>>
>>
>>
>>
>> On Tue, Jul 1, 2014 at 5:55 PM, John Hendy <jw.hendy@gmail.com> wrote:
>>>
>>> On Tue, Jul 1, 2014 at 5:04 AM, Roland Everaert <reveatwork@gmail.com>
>>> wrote:
>>> > I have upgraded using git on a Linux fedora 20 64 bit. >>> >
>>> > I perform the following commands from the directory of or= g-mode:
>>> >
>>> > make clean
>>> > git pull
>>> > make
>>>
>>> I usually do git pull > make clean > make, but don't= know if that
>>> makes a difference, so that's probably fine.
>>>
>>> > I have also read the following page:
>>> > http://orgmode.org/worg/org-8.0.html
>>> >
>>> > And search for all variables in my configuration that sta= rt with
>>> > org-export,
>>> > but I have none of them.
>>>
>>> Well, I'm interested in the original error, "Autoload= ing failed to
>>> define function org-element-cache-reset", not anything to= do with
>>> org-export. You should be able to start emacs without any erro= rs, and
>>> I think that's the primary thing to troubleshoot first. >>>
>>> > My configuration is heavily inspired by this article:
>>> > http://doc.norang.ca/org-mode.html
>>>
>>> Bernt's page is one of the most advanced orgmode setups do= cumented
>>> that I've ever seen. I wouldn't get too deep into that= before figuring
>>> out what's going on at the basic level.
>>>
>>> >
>>> > I have quickly browsed it in case some specific changes n= eeds to be
>>> > done,
>>> > but the only ones concernes the exporters that I have not= configured
>>> > yet.
>>> >
>>> > Which lines from the my ~/.emacs.d/init.el, would you lik= e to see?
>>>
>>> How are you telling Emacs where Orgmode lives? My suggestion w= ould be
>>> the following:
>>>
>>> Create a minimal .emacs file with just the following (change p= ath to
>>> wherever your orgmode git repo is):
>>>
>>> (add-to-list 'load-path "~/path/to/org.git/lisp/"= ;)
>>>
>>> From a command line, run:
>>>
>>> $ emacs -Q
>>>
>>> Then from Emacs, run:
>>>
>>> M-x load-file [press enter] /path/to/minimal-config/from/above= [press
>>> enter]
>>>
>>> Then run:
>>>
>>> M-x org-version
>>>
>>> You should get something like this:
>>>
>>> Org-mode version 8.2.6 (release_8.2.6-950-ge599e8 @
>>> /home/jwhendy/.elisp/org.git/lisp/)
>>>
>>> If you don't get any errors, close emacs, copy some lines = from your
>>> "real" config into that minimal config, and repeat t= he process (emacs
>>> -Q -> M-x load-file...) until you get the error again. Then= you'll
>>> know what's causing it. Doing it this way helps know that = you've at
>>> least got the "right" Org-mode loaded (not the one b= uilt in to your
>>> Emacs), and from there we can track the issue.
>>>
>>> Once that's all set, getting exporters going is a pretty s= imple
>>> matter. I have this in my .emacs:
>>>
>>> (require 'ox-latex)
>>> (require 'ox-html)
>>> (require 'ox-beamer)
>>> (require 'ox-md)
>>> (require 'ox-odt)
>>> (require 'ox-taskjuggler)
>>>
>>> (add-to-list 'org-latex-classes
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'("be= amer"
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"\= \documentclass\[presentation\]\{beamer\}"
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("= \\section\{%s\}" . "\\section*\{%s\}")
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("= \\subsection\{%s\}" . "\\subsection*\{%s\}")
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("= \\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))
>>>
>>> That handles it all for me.
>>>
>>> Also, please keep cc'ing the Org list. They know much more= than I do,
>>> and as you provide more information can probably help you bett= er than
>>> I can as well.
>>>
>>>
>>> Good luck!
>>> John
>>>
>>>
>>> >
>>> >
>>> > Roland.
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > On Mon, Jun 30, 2014 at 1:39 PM, John Hendy <jw.hendy@gmail.com> wrote:
>>> >>
>>> >>
>>> >> On Jun 30, 2014 4:48 AM, "Roland Everaert" = <reveatwork@gmail.com> >>> >> wrote:
>>> >> >
>>> >> > Second part of the message:
>>> >> >
>>> >> > Information from M-x org-version:
>>> >> >
>>> >> > Org-mode version beta_8.3 (beta_8.3-16-g16c71d6 = @
>>> >> > /home/reveatwork/.emacs.d/site-lisp/org-mode/lis= p/)
>>> >> >
>>> >> > I have downloaded the last version using git. >>> >>
>>> >> Can you elaborate on your exact procedure for upgradi= ng as well as
>>> >> posting
>>> >> relevant lines from .emacs?
>>> >>
>>> >> John
>>> >>
>>> >> >
>>> >> > How can I switch to a stable branch instead of t= he last beta, to
>>> >> > check
>>> >> > if that solves the problem?
>>> >> >
>>> >> >
>>> >> > Thanks for your help.
>>> >> >
>>> >> >
>>> >> >
>>> >> > On Mon, Jun 30, 2014 at 11:24 AM, Roland Everaer= t
>>> >> > <reve= atwork@gmail.com>
>>> >> > wrote:
>>> >> >>
>>> >> >> Hi,
>>> >> >>
>>> >> >> I have recently upgraded to org-mode version= 8. Each time I start
>>> >> >> emacs
>>> >> >> I see the folloinwg error:
>>> >> >>
>>> >> >> error "Autoloading failed to define fun= ction
>>> >> >> org-element-cache-reset"
>>> >> >>
>>> >> >>
>>> >> >> And some functionnality of org-mode doesn= 9;t seems to work anymore.
>>> >> >>
>>> >> >>
>>> >> >> Informa
>>> >> >
>>> >> >
>>> >
>>> >
>>
>>
>

--001a11c2cbaa269a8504fe254314--