emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Roland Everaert <reveatwork@gmail.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Problem with org-mode after upgradiing to org 8
Date: Fri, 4 Jul 2014 12:55:49 +0200	[thread overview]
Message-ID: <CACdPZ9L-CGfnHbUUYEWgLJTn5uXPRPVnV6FYYjaAYOKVCnNvCA@mail.gmail.com> (raw)
In-Reply-To: <CACdPZ9+V=h=xNF5PznEsOMdjDOjzhheAa__kYD2A1uXuLqr-ww@mail.gmail.com>

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

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 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 <reveatwork@gmail.com>
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 <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 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 <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/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 <
>> reveatwork@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 function
>> org-element-cache-reset"
>> >> >>
>> >> >>
>> >> >> And some functionnality of org-mode doesn't seems to work anymore.
>> >> >>
>> >> >>
>> >> >> Informa
>> >> >
>> >> >
>> >
>> >
>>
>
>

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

  reply	other threads:[~2014-07-04 10:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-30  9:24 Problem with org-mode after upgradiing to org 8 Roland Everaert
2014-06-30  9:48 ` Roland Everaert
2014-06-30 11:39   ` John Hendy
     [not found]     ` <CACdPZ9KzWcrCagO6mJABCj_6YXFRND93z8DENv+PjZ-pYLQ7Tg@mail.gmail.com>
2014-07-01 15:55       ` John Hendy
2014-07-03  8:10         ` Roland Everaert
2014-07-04 10:55           ` Roland Everaert [this message]
2014-07-04 14:21             ` John Hendy
2014-07-14 11:05               ` Roland Everaert
2014-07-14 18:34                 ` John Hendy
2014-07-15 20:30                 ` Sean O'Halpin
2014-07-17  9:06                   ` Roland Everaert
2014-07-17 13:06                     ` Roland Everaert
2014-07-17 13:15                     ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACdPZ9L-CGfnHbUUYEWgLJTn5uXPRPVnV6FYYjaAYOKVCnNvCA@mail.gmail.com \
    --to=reveatwork@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jw.hendy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).