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: Thu, 17 Jul 2014 15:06:54 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c328f49863f804fe6350e1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7lOn-0002JZ-Nj for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 09:07:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7lOh-0002Rp-9y for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 09:07:01 -0400 Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:63722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7lOg-0002Ri-UH for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 09:06:55 -0400 Received: by mail-oi0-f47.google.com with SMTP id x69so1101903oia.34 for ; Thu, 17 Jul 2014 06:06:54 -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: Sean O'Halpin Cc: emacs-orgmode --001a11c328f49863f804fe6350e1 Content-Type: text/plain; charset=UTF-8 After many test, I have decided to re-install org-mode from git n a brand new directory. Now I have no more the problem with loading the exporters. I have not yet tested all the features I used from org-mode but everything seems fine so far. Thanks for your help, Roland. On Thu, Jul 17, 2014 at 11:06 AM, Roland Everaert wrote: > Hi, > > I don't have a .emacs file, I remove it years ago to use > ~/.emacs.d/init.el. > > With the minimal-config, the org version is "Org-mode version 8.3beta > (release_8.3beta-40-g9cf3c4 @ > /home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/)". So I have created a > file that load only org-mode and my configuration. > > It begins like this: > > (let ((default-directory "~/.emacs.d/site-lisp/")) > (normal-top-level-add-to-load-path '(".")) > (normal-top-level-add-subdirs-to-load-path)) > > ;; Load Org-mode > (add-to-list 'load-path "~/.emacs.d/site-lisp/org-mode/lisp") > (add-to-list 'load-path "~/.emacs.d/site-lisp/org-mode/contrib/lisp") > > (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$" . org-mode)) > > > The right version of org-mode is loaded, but I have an error upon starting > emacs. Below is the backtrace: > > Debugger entered--Lisp error: (void-variable org-element-block-name-alist) > add-to-list(org-element-block-name-alist ("HTML" . > org-element-export-block-parser)) > (while --dolist-tail-- (setq name (car --dolist-tail--)) (add-to-list > (quote org-element-block-name-alist) (cons name (quote > org-element-export-block-parser))) (setq --dolist-tail-- (cdr > --dolist-tail--))) > (let ((--dolist-tail-- (progn (or (and (vectorp backend) (>= (length > backend) 8) (memq (aref backend 0) cl-struct-org-export-backend-tags)) > (error "%s accessing a non-%s" (quote org-export-backend-blocks) (quote > org-export-backend))) (aref backend 6))) name) (while --dolist-tail-- (setq > name (car --dolist-tail--)) (add-to-list (quote > org-element-block-name-alist) (cons name (quote > org-element-export-block-parser))) (setq --dolist-tail-- (cdr > --dolist-tail--)))) > (progn (let ((--dolist-tail-- (progn (or (and (vectorp backend) (>= ... > 8) (memq ... cl-struct-org-export-backend-tags)) (error "%s accessing a > non-%s" (quote org-export-backend-blocks) (quote org-export-backend))) > (aref backend 6))) name) (while --dolist-tail-- (setq name (car > --dolist-tail--)) (add-to-list (quote org-element-block-name-alist) (cons > name (quote org-element-export-block-parser))) (setq --dolist-tail-- (cdr > --dolist-tail--))))) > org-export-register-backend([cl-struct-org-export-backend html nil > ((bold . org-html-bold) (center-block . org-html-center-block) (clock . > org-html-clock) (code . org-html-code) (drawer . org-html-drawer) > (dynamic-block . org-html-dynamic-block) (entity . org-html-entity) > (example-block . org-html-example-block) (export-block . > org-html-export-block) (export-snippet . org-html-export-snippet) > (fixed-width . org-html-fixed-width) (footnote-definition . > org-html-footnote-definition) (footnote-reference . > org-html-footnote-reference) (headline . org-html-headline) > (horizontal-rule . org-html-horizontal-rule) (inline-src-block . > org-html-inline-src-block) (inlinetask . org-html-inlinetask) > (inner-template . org-html-inner-template) (italic . org-html-italic) (item > . org-html-item) (keyword . org-html-keyword) (latex-environment . > org-html-latex-environment) (latex-fragment . org-html-latex-fragment) > (line-break . org-html-line-break) (link . org-html-link) (node-property . > org-html-node-property) (paragraph . org-html-paragraph) (plain-list . > org-html-plain-list) (plain-text . org-html-plain-text) (planning . > org-html-planning) (property-drawer . org-html-property-drawer) > (quote-block . org-html-quote-block) (radio-target . org-html-radio-target) > (section . org-html-section) (special-block . org-html-special-block) > (src-block . org-html-src-block) (statistics-cookie . > org-html-statistics-cookie) (strike-through . org-html-strike-through) > (subscript . org-html-subscript) (superscript . org-html-superscript) > (table . org-html-table) (table-cell . org-html-table-cell) (table-row . > org-html-table-row) (target . org-html-target) (template . > org-html-template) (timestamp . org-html-timestamp) (underline . > org-html-underline) (verbatim . org-html-verbatim) (verse-block . > org-html-verse-block)) ((:html-doctype "HTML_DOCTYPE" nil org-html-doctype) > (:html-container "HTML_CONTAINER" nil org-html-container-element) > (:html-html5-fancy nil "html5-fancy" org-html-html5-fancy) > (:html-link-use-abs-url nil "html-link-use-abs-url" > org-html-link-use-abs-url) (:html-link-home "HTML_LINK_HOME" nil > org-html-link-home) (:html-link-up "HTML_LINK_UP" nil org-html-link-up) > (:html-head "HTML_HEAD" nil org-html-head newline) (:html-head-extra > "HTML_HEAD_EXTRA" nil org-html-head-extra newline) (:html-container > "HTML_CONTAINER" nil org-html-container-element) (:html-mathjax > "HTML_MATHJAX" nil "" space) (:html-extension nil nil org-html-extension) > (:html-link-org-as-html nil nil org-html-link-org-files-as-html) > (:html-html5-fancy nil "html5-fancy" org-html-html5-fancy) > (:html-link-use-abs-url nil "html-link-use-abs-url" > org-html-link-use-abs-url) (:html-postamble nil "html-postamble" > org-html-postamble) (:html-preamble nil "html-preamble" org-html-preamble) > (:html-head "HTML_HEAD" nil org-html-head newline) (:html-head-extra > "HTML_HEAD_EXTRA" nil org-html-head-extra newline) > (:html-head-include-default-style nil "html-style" > org-html-head-include-default-style) (:html-head-include-scripts nil > "html-scripts" org-html-head-include-scripts) > (:html-allow-name-attribute-in-anchors nil nil > org-html-allow-name-attribute-in-anchors) (:html-coding-system nil nil > org-html-coding-system) (:html-divs nil nil org-html-divs) (:html-extension > nil nil org-html-extension) (:html-footnote-format nil nil > org-html-footnote-format) (:html-footnote-separator nil nil > org-html-footnote-separator) (:html-footnotes-section nil nil > org-html-footnotes-section) (:html-format-drawer-function nil nil > org-html-format-drawer-function) (:html-format-headline-function nil nil > org-html-format-headline-function) (:html-format-inlinetask-function nil > nil org-html-format-inlinetask-function) (:html-home/up-format nil nil > org-html-home/up-format) (:html-htmlize-font-prefix nil nil > org-html-htmlize-font-prefix) (:html-htmlize-output-type nil nil > org-html-htmlize-output-type) (:html-indent nil nil org-html-indent) > (:html-infojs-options nil nil org-html-infojs-options) > (:html-infojs-template nil nil org-html-infojs-template) > (:html-inline-image-rules nil nil org-html-inline-image-rules) > (:html-link-org-as-html nil nil org-html-link-org-files-as-html) > (:html-mathjax-options nil nil org-html-mathjax-options) > (:html-mathjax-template nil nil org-html-mathjax-template) > (:html-metadata-timestamp-format nil nil > org-html-metadata-timestamp-format) (:html-postamble-format nil nil > org-html-postamble-format) (:html-preamble-format nil nil > org-html-preamble-format) (:html-protect-char-alist nil nil > org-html-protect-char-alist) (:html-table-align-individual-fields nil nil > org-html-table-align-individual-fields) (:html-table-caption-above nil nil > org-html-table-caption-above) (:html-table-data-tags nil nil > org-html-table-data-tags) (:html-table-header-tags nil nil > org-html-table-header-tags) (:html-table-use-header-tags-for-first-column > nil nil org-html-table-use-header-tags-for-first-column) > (:html-tag-class-prefix nil nil org-html-tag-class-prefix) ...) > ((:filter-options . org-html-infojs-install-script) (:filter-final-output . > org-html-final-function)) ("HTML") (104 "Export to HTML" ((72 "As HTML > buffer" org-html-export-as-html) (104 "As HTML file" > org-html-export-to-html) (111 "As HTML file and open" (lambda (a s v b) (if > a (org-html-export-to-html t s v b) (org-open-file (org-html-export-to-html > nil s v b)))))))]) > (let (blocks filters menu-entry options contents) (while (keywordp (car > body)) (let ((--cl-var-- (car (prog1 body (setq body ...))))) (cond ((eql > --cl-var-- (quote :export-block)) (let ((names ...)) (setq blocks (if ... > ... ...)))) ((eql --cl-var-- (quote :filters-alist)) (setq filters (car > (prog1 body ...)))) ((eql --cl-var-- (quote :menu-entry)) (setq menu-entry > (car (prog1 body ...)))) ((eql --cl-var-- (quote :options-alist)) (setq > options (car (prog1 body ...)))) (t (car (prog1 body (setq body ...))))))) > (org-export-register-backend (progn (vector (quote > cl-struct-org-export-backend) backend nil transcoders options filters > blocks menu-entry)))) > org-export-define-backend(html ((bold . org-html-bold) (center-block . > org-html-center-block) (clock . org-html-clock) (code . org-html-code) > (drawer . org-html-drawer) (dynamic-block . org-html-dynamic-block) (entity > . org-html-entity) (example-block . org-html-example-block) (export-block . > org-html-export-block) (export-snippet . org-html-export-snippet) > (fixed-width . org-html-fixed-width) (footnote-definition . > org-html-footnote-definition) (footnote-reference . > org-html-footnote-reference) (headline . org-html-headline) > (horizontal-rule . org-html-horizontal-rule) (inline-src-block . > org-html-inline-src-block) (inlinetask . org-html-inlinetask) > (inner-template . org-html-inner-template) (italic . org-html-italic) (item > . org-html-item) (keyword . org-html-keyword) (latex-environment . > org-html-latex-environment) (latex-fragment . org-html-latex-fragment) > (line-break . org-html-line-break) (link . org-html-link) (node-property . > org-html-node-property) (paragraph . org-html-paragraph) (plain-list . > org-html-plain-list) (plain-text . org-html-plain-text) (planning . > org-html-planning) (property-drawer . org-html-property-drawer) > (quote-block . org-html-quote-block) (radio-target . org-html-radio-target) > (section . org-html-section) (special-block . org-html-special-block) > (src-block . org-html-src-block) (statistics-cookie . > org-html-statistics-cookie) (strike-through . org-html-strike-through) > (subscript . org-html-subscript) (superscript . org-html-superscript) > (table . org-html-table) (table-cell . org-html-table-cell) (table-row . > org-html-table-row) (target . org-html-target) (template . > org-html-template) (timestamp . org-html-timestamp) (underline . > org-html-underline) (verbatim . org-html-verbatim) (verse-block . > org-html-verse-block)) :export-block "HTML" :filters-alist > ((:filter-options . org-html-infojs-install-script) (:filter-final-output . > org-html-final-function)) :menu-entry (104 "Export to HTML" ((72 "As HTML > buffer" org-html-export-as-html) (104 "As HTML file" > org-html-export-to-html) (111 "As HTML file and open" (lambda (a s v b) (if > a (org-html-export-to-html t s v b) (org-open-file (org-html-export-to-html > nil s v b))))))) :options-alist ((:html-doctype "HTML_DOCTYPE" nil > org-html-doctype) (:html-container "HTML_CONTAINER" nil > org-html-container-element) (:html-html5-fancy nil "html5-fancy" > org-html-html5-fancy) (:html-link-use-abs-url nil "html-link-use-abs-url" > org-html-link-use-abs-url) (:html-link-home "HTML_LINK_HOME" nil > org-html-link-home) (:html-link-up "HTML_LINK_UP" nil org-html-link-up) > (:html-head "HTML_HEAD" nil org-html-head newline) (:html-head-extra > "HTML_HEAD_EXTRA" nil org-html-head-extra newline) (:html-container > "HTML_CONTAINER" nil org-html-container-element) (:html-mathjax > "HTML_MATHJAX" nil "" space) (:html-extension nil nil org-html-extension) > (:html-link-org-as-html nil nil org-html-link-org-files-as-html) > (:html-html5-fancy nil "html5-fancy" org-html-html5-fancy) > (:html-link-use-abs-url nil "html-link-use-abs-url" > org-html-link-use-abs-url) (:html-postamble nil "html-postamble" > org-html-postamble) (:html-preamble nil "html-preamble" org-html-preamble) > (:html-head "HTML_HEAD" nil org-html-head newline) (:html-head-extra > "HTML_HEAD_EXTRA" nil org-html-head-extra newline) > (:html-head-include-default-style nil "html-style" > org-html-head-include-default-style) (:html-head-include-scripts nil > "html-scripts" org-html-head-include-scripts) > (:html-allow-name-attribute-in-anchors nil nil > org-html-allow-name-attribute-in-anchors) (:html-coding-system nil nil > org-html-coding-system) (:html-divs nil nil org-html-divs) (:html-extension > nil nil org-html-extension) (:html-footnote-format nil nil > org-html-footnote-format) (:html-footnote-separator nil nil > org-html-footnote-separator) (:html-footnotes-section nil nil > org-html-footnotes-section) (:html-format-drawer-function nil nil > org-html-format-drawer-function) (:html-format-headline-function nil nil > org-html-format-headline-function) (:html-format-inlinetask-function nil > nil org-html-format-inlinetask-function) (:html-home/up-format nil nil > org-html-home/up-format) (:html-htmlize-font-prefix nil nil > org-html-htmlize-font-prefix) (:html-htmlize-output-type nil nil > org-html-htmlize-output-type) (:html-indent nil nil org-html-indent) > (:html-infojs-options nil nil org-html-infojs-options) > (:html-infojs-template nil nil org-html-infojs-template) > (:html-inline-image-rules nil nil org-html-inline-image-rules) > (:html-link-org-as-html nil nil org-html-link-org-files-as-html) > (:html-mathjax-options nil nil org-html-mathjax-options) > (:html-mathjax-template nil nil org-html-mathjax-template) > (:html-metadata-timestamp-format nil nil > org-html-metadata-timestamp-format) (:html-postamble-format nil nil > org-html-postamble-format) (:html-preamble-format nil nil > org-html-preamble-format) (:html-protect-char-alist nil nil > org-html-protect-char-alist) (:html-table-align-individual-fields nil nil > org-html-table-align-individual-fields) (:html-table-caption-above nil nil > org-html-table-caption-above) (:html-table-data-tags nil nil > org-html-table-data-tags) (:html-table-header-tags nil nil > org-html-table-header-tags) (:html-table-use-header-tags-for-first-column > nil nil org-html-table-use-header-tags-for-first-column) > (:html-tag-class-prefix nil nil org-html-tag-class-prefix) ...)) > eval-buffer(# nil > "/home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/ox-html.el" nil t) ; > Reading at buffer position 8239 > > load-with-code-conversion("/home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/ox-html.el" > "/home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/ox-html.el" nil t) > require(ox-html) > eval-buffer(# nil > "/home/reveatwork/.emacs.d/site-lisp/my-org-mode-config.el" nil t) ; > Reading at buffer position 21243 > > load-with-code-conversion("/home/reveatwork/.emacs.d/site-lisp/my-org-mode-config.el" > "/home/reveatwork/.emacs.d/site-lisp/my-org-mode-config.el" nil nil) > load("my-org-mode-config") > load-library("my-org-mode-config") > eval-buffer(# nil "/home/reveatwork/.emacs.d/init.el" > nil t) ; Reading at buffer position 6127 > load-with-code-conversion("/home/reveatwork/.emacs.d/init.el" > "/home/reveatwork/.emacs.d/init.el" t t) > load("/home/reveatwork/.emacs.d/init" t t) > #[0 " \205\262 > > > If I remove de call to (require ox-*) where * is the export format to > load, I have no error. > > > Roland. > > > > On Tue, Jul 15, 2014 at 10:30 PM, Sean O'Halpin > wrote: > >> Hi, >> >> This might be something to do with the order in which package >> initialization and the loading of your init.el file happen. I use the >> following alias to put my local org-mode git repo paths ahead of >> anything emacs does on launch (in startup.el or site-start.el, etc.): >> >> : alias emacs='/usr/local/bin/emacs --eval '\''(progn (add-to-list >> (quote load-path) "~/.emacs.d/org-mode/lisp") (add-to-list (quote >> load-path) "~/.emacs.d/org-mode/contrib/lisp"))'\''' >> >> This doesn't seem like a very elegant solution though - I too would >> like to know what the 'proper' way to do this is (if there is one). >> >> Regards, >> Sean >> >> On Mon, Jul 14, 2014 at 12:05 PM, Roland Everaert >> wrote: >> > 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 < >> 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 >> 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 >> >> >>> > 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 >> >> >>> >> > >> >> >>> >> > 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 >> >> >>> >> > >> >> >>> >> > >> >> >>> > >> >> >>> > >> >> >> >> >> >> >> >> > >> > >> > >> > > --001a11c328f49863f804fe6350e1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
After many test, I have decided to re-install or= g-mode from git n a brand new directory. Now I have no more the problem wit= h loading the exporters. I have not yet tested all the features I used from= org-mode but everything seems fine so far.


Thanks for your help,

Roland.


On Thu, Jul 17, 2014 a= t 11:06 AM, Roland Everaert <reveatwork@gmail.com> wrote:=
Hi,

=
I don't have a .emacs file, I remove it years ago to use ~/.emacs.= d/init.el.

With the minimal-config, the org version is "Org-= mode version 8.3beta (release_8.3beta-40-g9cf3c4 @ /home/reveatwork/.emacs.= d/site-lisp/org-mode/lisp/)". So I have created a file that load only = org-mode and my configuration.

It begins like this:

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

;; Load Org-mode
(add-to-list 'load-path "~/.emacs.d/= site-lisp/org-mode/lisp")
(add-to-list 'load-path "~/.emac= s.d/site-lisp/org-mode/contrib/lisp")

(add-to-list = 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$" . org-mo= de))


The right version of org-mode is loaded, but I have an = error upon starting emacs. Below is the backtrace:

Debugger entered-= -Lisp error: (void-variable org-element-block-name-alist)
=C2=A0 add-to-= list(org-element-block-name-alist ("HTML" . org-element-export-bl= ock-parser))
=C2=A0 (while --dolist-tail-- (setq name (car --dolist-tail--)) (add-to-lis= t (quote org-element-block-name-alist) (cons name (quote org-element-export= -block-parser))) (setq --dolist-tail-- (cdr --dolist-tail--)))
=C2=A0 (l= et ((--dolist-tail-- (progn (or (and (vectorp backend) (>=3D (length bac= kend) 8) (memq (aref backend 0) cl-struct-org-export-backend-tags)) (error = "%s accessing a non-%s" (quote org-export-backend-blocks) (quote = org-export-backend))) (aref backend 6))) name) (while --dolist-tail-- (setq= name (car --dolist-tail--)) (add-to-list (quote org-element-block-name-ali= st) (cons name (quote org-element-export-block-parser))) (setq --dolist-tai= l-- (cdr --dolist-tail--))))
=C2=A0 (progn (let ((--dolist-tail-- (progn (or (and (vectorp backend) (>= ;=3D ... 8) (memq ... cl-struct-org-export-backend-tags)) (error "%s a= ccessing a non-%s" (quote org-export-backend-blocks) (quote org-export= -backend))) (aref backend 6))) name) (while --dolist-tail-- (setq name (car= --dolist-tail--)) (add-to-list (quote org-element-block-name-alist) (cons = name (quote org-element-export-block-parser))) (setq --dolist-tail-- (cdr -= -dolist-tail--)))))
=C2=A0 org-export-register-backend([cl-struct-org-export-backend html nil (= (bold . org-html-bold) (center-block . org-html-center-block) (clock . org-= html-clock) (code . org-html-code) (drawer . org-html-drawer) (dynamic-bloc= k . org-html-dynamic-block) (entity . org-html-entity) (example-block . org= -html-example-block) (export-block . org-html-export-block) (export-snippet= . org-html-export-snippet) (fixed-width . org-html-fixed-width) (footnote-= definition . org-html-footnote-definition) (footnote-reference . org-html-f= ootnote-reference) (headline . org-html-headline) (horizontal-rule . org-ht= ml-horizontal-rule) (inline-src-block . org-html-inline-src-block) (inlinet= ask . org-html-inlinetask) (inner-template . org-html-inner-template) (ital= ic . org-html-italic) (item . org-html-item) (keyword . org-html-keyword) (= latex-environment . org-html-latex-environment) (latex-fragment . org-html-= latex-fragment) (line-break . org-html-line-break) (link . org-html-link) (= node-property . org-html-node-property) (paragraph . org-html-paragraph) (p= lain-list . org-html-plain-list) (plain-text . org-html-plain-text) (planni= ng . org-html-planning) (property-drawer . org-html-property-drawer) (quote= -block . org-html-quote-block) (radio-target . org-html-radio-target) (sect= ion . org-html-section) (special-block . org-html-special-block) (src-block= . org-html-src-block) (statistics-cookie . org-html-statistics-cookie) (st= rike-through . org-html-strike-through) (subscript . org-html-subscript) (s= uperscript . org-html-superscript) (table . org-html-table) (table-cell . o= rg-html-table-cell) (table-row . org-html-table-row) (target . org-html-tar= get) (template . org-html-template) (timestamp . org-html-timestamp) (under= line . org-html-underline) (verbatim . org-html-verbatim) (verse-block . or= g-html-verse-block)) ((:html-doctype "HTML_DOCTYPE" nil org-html-= doctype) (:html-container "HTML_CONTAINER" nil org-html-container= -element) (:html-html5-fancy nil "html5-fancy" org-html-html5-fan= cy) (:html-link-use-abs-url nil "html-link-use-abs-url" org-html-= link-use-abs-url) (:html-link-home "HTML_LINK_HOME" nil org-html-= link-home) (:html-link-up "HTML_LINK_UP" nil org-html-link-up) (:= html-head "HTML_HEAD" nil org-html-head newline) (:html-head-extr= a "HTML_HEAD_EXTRA" nil org-html-head-extra newline) (:html-conta= iner "HTML_CONTAINER" nil org-html-container-element) (:html-math= jax "HTML_MATHJAX" nil "" space) (:html-extension nil n= il org-html-extension) (:html-link-org-as-html nil nil org-html-link-org-fi= les-as-html) (:html-html5-fancy nil "html5-fancy" org-html-html5-= fancy) (:html-link-use-abs-url nil "html-link-use-abs-url" org-ht= ml-link-use-abs-url) (:html-postamble nil "html-postamble" org-ht= ml-postamble) (:html-preamble nil "html-preamble" org-html-preamb= le) (:html-head "HTML_HEAD" nil org-html-head newline) (:html-hea= d-extra "HTML_HEAD_EXTRA" nil org-html-head-extra newline) (:html= -head-include-default-style nil "html-style" org-html-head-includ= e-default-style) (:html-head-include-scripts nil "html-scripts" o= rg-html-head-include-scripts) (:html-allow-name-attribute-in-anchors nil ni= l org-html-allow-name-attribute-in-anchors) (:html-coding-system nil nil or= g-html-coding-system) (:html-divs nil nil org-html-divs) (:html-extension n= il nil org-html-extension) (:html-footnote-format nil nil org-html-footnote= -format) (:html-footnote-separator nil nil org-html-footnote-separator) (:h= tml-footnotes-section nil nil org-html-footnotes-section) (:html-format-dra= wer-function nil nil org-html-format-drawer-function) (:html-format-headlin= e-function nil nil org-html-format-headline-function) (:html-format-inlinet= ask-function nil nil org-html-format-inlinetask-function) (:html-home/up-fo= rmat nil nil org-html-home/up-format) (:html-htmlize-font-prefix nil nil or= g-html-htmlize-font-prefix) (:html-htmlize-output-type nil nil org-html-htm= lize-output-type) (:html-indent nil nil org-html-indent) (:html-infojs-opti= ons nil nil org-html-infojs-options) (:html-infojs-template nil nil org-htm= l-infojs-template) (:html-inline-image-rules nil nil org-html-inline-image-= rules) (:html-link-org-as-html nil nil org-html-link-org-files-as-html) (:h= tml-mathjax-options nil nil org-html-mathjax-options) (:html-mathjax-templa= te nil nil org-html-mathjax-template) (:html-metadata-timestamp-format nil = nil org-html-metadata-timestamp-format) (:html-postamble-format nil nil org= -html-postamble-format) (:html-preamble-format nil nil org-html-preamble-fo= rmat) (:html-protect-char-alist nil nil org-html-protect-char-alist) (:html= -table-align-individual-fields nil nil org-html-table-align-individual-fiel= ds) (:html-table-caption-above nil nil org-html-table-caption-above) (:html= -table-data-tags nil nil org-html-table-data-tags) (:html-table-header-tags= nil nil org-html-table-header-tags) (:html-table-use-header-tags-for-first= -column nil nil org-html-table-use-header-tags-for-first-column) (:html-tag= -class-prefix nil nil org-html-tag-class-prefix) ...) ((:filter-options . o= rg-html-infojs-install-script) (:filter-final-output . org-html-final-funct= ion)) ("HTML") (104 "Export to HTML" ((72 "As HTML= buffer" org-html-export-as-html) (104 "As HTML file" org-ht= ml-export-to-html) (111 "As HTML file and open" (lambda (a s v b)= (if a (org-html-export-to-html t s v b) (org-open-file (org-html-export-to= -html nil s v b)))))))])
=C2=A0 (let (blocks filters menu-entry options contents) (while (keywordp (= car body)) (let ((--cl-var-- (car (prog1 body (setq body ...))))) (cond ((e= ql --cl-var-- (quote :export-block)) (let ((names ...)) (setq blocks (if ..= . ... ...)))) ((eql --cl-var-- (quote :filters-alist)) (setq filters (car (= prog1 body ...)))) ((eql --cl-var-- (quote :menu-entry)) (setq menu-entry (= car (prog1 body ...)))) ((eql --cl-var-- (quote :options-alist)) (setq opti= ons (car (prog1 body ...)))) (t (car (prog1 body (setq body ...))))))) (org= -export-register-backend (progn (vector (quote cl-struct-org-export-backend= ) backend nil transcoders options filters blocks menu-entry))))
=C2=A0 org-export-define-backend(html ((bold . org-html-bold) (center-block= . org-html-center-block) (clock . org-html-clock) (code . org-html-code) (= drawer . org-html-drawer) (dynamic-block . org-html-dynamic-block) (entity = . org-html-entity) (example-block . org-html-example-block) (export-block .= org-html-export-block) (export-snippet . org-html-export-snippet) (fixed-w= idth . org-html-fixed-width) (footnote-definition . org-html-footnote-defin= ition) (footnote-reference . org-html-footnote-reference) (headline . org-h= tml-headline) (horizontal-rule . org-html-horizontal-rule) (inline-src-bloc= k . org-html-inline-src-block) (inlinetask . org-html-inlinetask) (inner-te= mplate . org-html-inner-template) (italic . org-html-italic) (item . org-ht= ml-item) (keyword . org-html-keyword) (latex-environment . org-html-latex-e= nvironment) (latex-fragment . org-html-latex-fragment) (line-break . org-ht= ml-line-break) (link . org-html-link) (node-property . org-html-node-proper= ty) (paragraph . org-html-paragraph) (plain-list . org-html-plain-list) (pl= ain-text . org-html-plain-text) (planning . org-html-planning) (property-dr= awer . org-html-property-drawer) (quote-block . org-html-quote-block) (radi= o-target . org-html-radio-target) (section . org-html-section) (special-blo= ck . org-html-special-block) (src-block . org-html-src-block) (statistics-c= ookie . org-html-statistics-cookie) (strike-through . org-html-strike-throu= gh) (subscript . org-html-subscript) (superscript . org-html-superscript) (= table . org-html-table) (table-cell . org-html-table-cell) (table-row . org= -html-table-row) (target . org-html-target) (template . org-html-template) = (timestamp . org-html-timestamp) (underline . org-html-underline) (verbatim= . org-html-verbatim) (verse-block . org-html-verse-block)) :export-block &= quot;HTML" :filters-alist ((:filter-options . org-html-infojs-install-= script) (:filter-final-output . org-html-final-function)) :menu-entry (104 = "Export to HTML" ((72 "As HTML buffer" org-html-export-= as-html) (104 "As HTML file" org-html-export-to-html) (111 "= As HTML file and open" (lambda (a s v b) (if a (org-html-export-to-htm= l t s v b) (org-open-file (org-html-export-to-html nil s v b))))))) :option= s-alist ((:html-doctype "HTML_DOCTYPE" nil org-html-doctype) (:ht= ml-container "HTML_CONTAINER" nil org-html-container-element) (:h= tml-html5-fancy nil "html5-fancy" org-html-html5-fancy) (:html-li= nk-use-abs-url nil "html-link-use-abs-url" org-html-link-use-abs-= url) (:html-link-home "HTML_LINK_HOME" nil org-html-link-home) (:= html-link-up "HTML_LINK_UP" nil org-html-link-up) (:html-head &qu= ot;HTML_HEAD" nil org-html-head newline) (:html-head-extra "HTML_= HEAD_EXTRA" nil org-html-head-extra newline) (:html-container "HT= ML_CONTAINER" nil org-html-container-element) (:html-mathjax "HTM= L_MATHJAX" nil "" space) (:html-extension nil nil org-html-e= xtension) (:html-link-org-as-html nil nil org-html-link-org-files-as-html) = (:html-html5-fancy nil "html5-fancy" org-html-html5-fancy) (:html= -link-use-abs-url nil "html-link-use-abs-url" org-html-link-use-a= bs-url) (:html-postamble nil "html-postamble" org-html-postamble)= (:html-preamble nil "html-preamble" org-html-preamble) (:html-he= ad "HTML_HEAD" nil org-html-head newline) (:html-head-extra "= ;HTML_HEAD_EXTRA" nil org-html-head-extra newline) (:html-head-include= -default-style nil "html-style" org-html-head-include-default-sty= le) (:html-head-include-scripts nil "html-scripts" org-html-head-= include-scripts) (:html-allow-name-attribute-in-anchors nil nil org-html-al= low-name-attribute-in-anchors) (:html-coding-system nil nil org-html-coding= -system) (:html-divs nil nil org-html-divs) (:html-extension nil nil org-ht= ml-extension) (:html-footnote-format nil nil org-html-footnote-format) (:ht= ml-footnote-separator nil nil org-html-footnote-separator) (:html-footnotes= -section nil nil org-html-footnotes-section) (:html-format-drawer-function = nil nil org-html-format-drawer-function) (:html-format-headline-function ni= l nil org-html-format-headline-function) (:html-format-inlinetask-function = nil nil org-html-format-inlinetask-function) (:html-home/up-format nil nil = org-html-home/up-format) (:html-htmlize-font-prefix nil nil org-html-htmliz= e-font-prefix) (:html-htmlize-output-type nil nil org-html-htmlize-output-t= ype) (:html-indent nil nil org-html-indent) (:html-infojs-options nil nil o= rg-html-infojs-options) (:html-infojs-template nil nil org-html-infojs-temp= late) (:html-inline-image-rules nil nil org-html-inline-image-rules) (:html= -link-org-as-html nil nil org-html-link-org-files-as-html) (:html-mathjax-o= ptions nil nil org-html-mathjax-options) (:html-mathjax-template nil nil or= g-html-mathjax-template) (:html-metadata-timestamp-format nil nil org-html-= metadata-timestamp-format) (:html-postamble-format nil nil org-html-postamb= le-format) (:html-preamble-format nil nil org-html-preamble-format) (:html-= protect-char-alist nil nil org-html-protect-char-alist) (:html-table-align-= individual-fields nil nil org-html-table-align-individual-fields) (:html-ta= ble-caption-above nil nil org-html-table-caption-above) (:html-table-data-t= ags nil nil org-html-table-data-tags) (:html-table-header-tags nil nil org-= html-table-header-tags) (:html-table-use-header-tags-for-first-column nil n= il org-html-table-use-header-tags-for-first-column) (:html-tag-class-prefix= nil nil org-html-tag-class-prefix) ...))
=C2=A0 eval-buffer(#<buffer=C2=A0 *load*-810741> nil "/home/reve= atwork/.emacs.d/site-lisp/org-mode/lisp/ox-html.el" nil t)=C2=A0 ; Rea= ding at buffer position 8239
=C2=A0 load-with-code-conversion("/hom= e/reveatwork/.emacs.d/site-lisp/org-mode/lisp/ox-html.el" "/home/= reveatwork/.emacs.d/site-lisp/org-mode/lisp/ox-html.el" nil t)
=C2=A0 require(ox-html)
=C2=A0 eval-buffer(#<buffer=C2=A0 *load*-2079= 41> nil "/home/reveatwork/.emacs.d/site-lisp/my-org-mode-config.el&= quot; nil t)=C2=A0 ; Reading at buffer position 21243
=C2=A0 load-with-c= ode-conversion("/home/reveatwork/.emacs.d/site-lisp/my-org-mode-config= .el" "/home/reveatwork/.emacs.d/site-lisp/my-org-mode-config.el&q= uot; nil nil)
=C2=A0 load("my-org-mode-config")
=C2=A0 load-library("my= -org-mode-config")
=C2=A0 eval-buffer(#<buffer=C2=A0 *load*> = nil "/home/reveatwork/.emacs.d/init.el" nil t)=C2=A0 ; Reading at= buffer position 6127
=C2=A0 load-with-code-conversion("/home/reveatwork/.emacs.d/init.el&qu= ot; "/home/reveatwork/.emacs.d/init.el" t t)
=C2=A0 load("= ;/home/reveatwork/.emacs.d/init" t t)
=C2=A0 #[0 " \205\262


If I remove de call to (require ox-*) where * is the export form= at to load, I have no error.=


Roland.



On Tue, Jul 15, 2014 at 10:30 PM, Sean O'Halpin <<= a href=3D"mailto:sean.ohalpin@gmail.com" target=3D"_blank">sean.ohalpin@gma= il.com> wrote:
Hi,

This might be something to do with the order in which package
initialization and the loading of your init.el file happen. I use the
following alias to put my local org-mode git repo paths ahead of
anything emacs does on launch (in startup.el or site-start.el, etc.):

: alias emacs=3D'/usr/local/bin/emacs --eval '\''(progn (ad= d-to-list
(quote load-path) "~/.emacs.d/org-mode/lisp") (add-to-list (quote=
load-path) "~/.emacs.d/org-mode/contrib/lisp"))'\''&#= 39;

This doesn't seem like a very elegant solution though - I too would
like to know what the 'proper' way to do this is (if there is one).=

Regards,
Sean

On Mon, Jul 14, 2014 at 12:05 PM, Roland Everaert <reveatwork@gmail.com> wrote: > org-mode will makes me crazy. After a deep review (well rewrite my ent= ire
> configuration based on norang's one) org-mode is working again, bu= t 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/"))
> =C2=A0 =C2=A0 =C2=A0 (normal-top-level-add-to-load-path '(".&= quot;))
> =C2=A0 =C2=A0 =C2=A0 (normal-top-level-add-subdirs-to-load-path))
>
>
> I, later, load a file containing all my org-mode configuration. That f= ile is
> located in ~/.emacs.d/site-lisp/. I load that file in this way:
>
> (load-library "my-org-mode-config")
>
> =C2=A0At 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 <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 the function >> > (org-agenda-to-appt) inside the function bh/org-agenda-to-app= t that is
>> > causing the error.
>> >
>> > The body of the function:
>> >
>> > ; Erase all reminders and rebuilt reminders for today from th= e agenda
>> > (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
>> 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 t= o
>> 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 s= uch 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 bi= ts 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.<= br> >> >>
>> >> The offending line is (bh/org-agenda-to-appt), this is on= e of the
>> >> function
>> >> from the configuration of Bernt, so I have now to check m= y 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-mo= de 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 previou= s version.
>> >>
>> >>
>> >> Thanks for your help,
>> >>
>> >>
>> >> Roland.
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> On Tue, Jul 1, 2014 at 5:55 PM, John Hendy <jw.hendy@gmail.com> wr= ote:
>> >>>
>> >>> On Tue, Jul 1, 2014 at 5:04 AM, Roland Everaert <<= a href=3D"mailto:reveatwork@gmail.com" target=3D"_blank">reveatwork@gmail.c= om>
>> >>> wrote:
>> >>> > I have upgraded using git on a Linux fedora 20 6= 4 bit.
>> >>> >
>> >>> > I perform the following commands from the direct= ory 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 an= ything 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 art= icle:
>> >>> > 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, woul= d you like to see?
>> >>>
>> >>> How are you telling Emacs where Orgmode lives? My sug= gestion 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/l= isp/")
>> >>>
>> >>> From a command line, run:
>> >>>
>> >>> $ emacs -Q
>> >>>
>> >>> Then from Emacs, run:
>> >>>
>> >>> M-x load-file [press enter] /path/to/minimal-config/f= rom/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 so= me lines from your
>> >>> "real" config into that minimal config, and= repeat the process (emacs
>> >>> -Q -> M-x load-file...) until you get the error ag= ain. Then you'll
>> >>> know what's causing it. Doing it this way helps k= now 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
>> >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'= ("beamer"
>> >>> =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 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<= /a>>
>> >>> > wrote:
>> >>> >>
>> >>> >>
>> >>> >> On Jun 30, 2014 4:48 AM, "Roland Everae= rt" <
reve= atwork@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 usin= g git.
>> >>> >>
>> >>> >> Can you elaborate on your exact procedure fo= r upgrading as well as
>> >>> >> posting
>> >>> >> relevant lines from .emacs?
>> >>> >>
>> >>> >> John
>> >>> >>
>> >>> >> >
>> >>> >> > How can I switch to a stable branch ins= tead of the last beta, to
>> >>> >> > check
>> >>> >> > if that solves the problem?
>> >>> >> >
>> >>> >> >
>> >>> >> > Thanks for your help.
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> > On Mon, Jun 30, 2014 at 11:24 AM, Rolan= d Everaert
>> >>> >> > <reveatwork@gmail.com>
>> >>> >> > wrote:
>> >>> >> >>
>> >>> >> >> Hi,
>> >>> >> >>
>> >>> >> >> I have recently upgraded to org-mod= e version 8. Each time I
>> >>> >> >> start
>> >>> >> >> emacs
>> >>> >> >> I see the folloinwg error:
>> >>> >> >>
>> >>> >> >> error "Autoloading failed to d= efine function
>> >>> >> >> org-element-cache-reset"
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> And some functionnality of org-mode= doesn't seems to work
>> >>> >> >> anymore.
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> Informa
>> >>> >> >
>> >>> >> >
>> >>> >
>> >>> >
>> >>
>> >>
>> >
>
>


--001a11c328f49863f804fe6350e1--