emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Babel error on init with 8.3.1
@ 2015-08-07 14:41 Ryan Schuetzler
  2015-08-09 14:51 ` Kyle Meyer
  2015-08-10 14:31 ` Cook, Malcolm
  0 siblings, 2 replies; 13+ messages in thread
From: Ryan Schuetzler @ 2015-08-07 14:41 UTC (permalink / raw)
  To: emacs-orgmode

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

On startup with the latest 8.3 release I now get an error:

  Invalid function: org-babel-header-args-safe-fn

I updated org through the package manager in Emacs, and I'm using it on
Windows 10. Below is my full org configuration, but I've found that when I
comment out the following section of my init, I don't receive any errors:

(add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)

(setq org-babel-results-keyword "results")

(defun bh/display-inline-images ()
  (condition-case nil
  (org-display-inline-images)
(error nil)))

(org-babel-do-load-languages
 (quote org-babel-load-languages)
 (quote ((emacs-lisp . t)
(latex . t)
(R . t)
(dot . t)
(python . t)
(org . t))))

(setq org-confirm-babel-evaluate nil)

FULL Config:

Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
 of 2015-07-11 on KAEL
Package: Org-mode version 8.3.1 (8.3.1-elpa @
c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)

current state:
==============
(setq
 org-export-backends '(ascii html icalendar latex md odt)
 org-agenda-tags-todo-honor-ignore-options t
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-babel-results-keyword "results"
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-exporter-settings '((ps-number-of-columns 1) (ps-landscape-mode
t) (htmlize-output-type (quote cc)))
 org-agenda-custom-commands '(("N" "Notes" tags "NOTE"
  ((org-agenda-overriding-header "Notes") (org-tags-match-list-sublevels
t)))
 ("h" "Habits" tags-todo "STYLE=\"habit\""
  ((org-agenda-overriding-header "Habits")
(org-agenda-sorting-strategy (quote (todo-state-down effort-up
category-keep))))
  )
 (" " "Agenda"
  ((agenda "" nil)
(tags "REFILE"
((org-agenda-overriding-header "Tasks to Refile")
 (org-tags-match-list-sublevels nil))
)
(tags-todo "-CANCELLED/!"
((org-agenda-overriding-header "Stuck Projects")
 (org-agenda-skip-function (quote bh/skip-non-stuck-projects))
 (org-agenda-sorting-strategy (quote (category-keep))))
)
(tags-todo "-HOLD-CANCELLED/!"
((org-agenda-overriding-header "Projects")
 (org-agenda-skip-function (quote bh/skip-non-projects))
 (org-tags-match-list-sublevels (quote indented))
 (org-agenda-sorting-strategy (quote (category-keep))))
)
(tags-todo "-CANCELLED/!NEXT"
((org-agenda-overriding-header
  (concat "Project Next Tasks"
(if bh/hide-scheduled-and-waiting-next-tasks ""
" (including WAITING and SCHEDULED tasks)")
)
  )
 (org-agenda-skip-function (quote
bh/skip-projects-and-habits-and-single-tasks))
 (org-tags-match-list-sublevels t)
 (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
 (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
 (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
 (org-agenda-sorting-strategy (quote (todo-state-down effort-up
category-keep))))
)
(tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
((org-agenda-overriding-header
  (concat "Standalone Tasks"
(if bh/hide-scheduled-and-waiting-next-tasks ""
" (including WAITING and SCHEDULED tasks)")
)
  )
 (org-agenda-skip-function (quote bh/skip-project-tasks))
 (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
 (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
 (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
 (org-agenda-sorting-strategy (quote (category-keep))))
)
(tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
((org-agenda-overriding-header
  (concat "Project Subtasks"
(if bh/hide-scheduled-and-waiting-next-tasks ""
" (including WAITING and SCHEDULED tasks)")
)
  )
 (org-agenda-skip-function (quote bh/skip-non-project-tasks))
 (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
 (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
 (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
 (org-agenda-sorting-strategy (quote (category-keep))))
)
(tags-todo "-CANCELLED+WAITING|HOLD/!"
((org-agenda-overriding-header "Waiting and Postponed Tasks")
 (org-agenda-skip-function (quote bh/skip-stuck-projects))
 (org-tags-match-list-sublevels nil) (org-agenda-todo-ignore-scheduled t)
 (org-agenda-todo-ignore-deadlines t))
)
(tags "-REFILE/"
((org-agenda-overriding-header "Tasks to Archive")
 (org-agenda-skip-function (quote bh/skip-non-archivable-tasks))
 (org-tags-match-list-sublevels nil))
)
)
  nil)
 )
 org-return-follows-link t
 org-default-notes-file "~/Dropbox/org/inbox.org"
 org-todo-keyword-faces '(("TODO" :foreground "tomato" :weight bold)
 ("NEXT" :foreground "deep sky blue" :weight bold)
 ("DONE" :foreground "medium spring green" :weight bold)
 ("WAITING" :foreground "orange" :weight bold) ("HOLD" :foreground
"magenta" :weight bold)
 ("CANCELLED" :foreground "medium spring green" :weight bold)
 ("MEETING" :foreground "medium spring green" :weight bold)
 ("PHONE" :foreground "medium spring green" :weight bold))
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-from-is-user-regexp nil
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-agenda-dim-blocked-tasks nil
 org-mode-hook '(evil-org-mode
#[nil "\300\301\302\303\304$\207"
  [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
#[nil "\300\301\302\303\304$\207"
  [org-add-hook change-major-mode-hook org-babel-show-result-all append
local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
 org-outline-path-complete-in-steps nil
 org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t)) ("WAITING"
("WAITING" . t))
("HOLD" ("WAITING") ("HOLD" . t)) ("TODO" ("WAITING") ("CANCELLED")
("HOLD"))
("NEXT" ("WAITING") ("CANCELLED") ("HOLD"))
("DONE" ("WAITING") ("CANCELLED") ("HOLD")))
 org-stuck-projects '("" nil nil "")
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-agenda-compact-blocks t
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-refile-use-outline-path t
 org-directory "~/Dropbox/org"
 org-insert-mode-line-in-empty-file t
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
 org-refile-allow-creating-parent-nodes 'confirm
 org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)")
(sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE"
"MEETING"))
 org-modules '(org-bbdb org-bibtex org-habit org-irc)
 org-fast-tag-selection-single-key 'expert
 org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el")
("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-babel-after-execute-hook '(bh/display-inline-images)
 org-completion-use-ido t
 org-indirect-buffer-display 'current-window
 org-babel-load-languages '((emacs-lisp . t) (latex . t) (R . t) (dot . t)
(python . t) (org . t))
 org-habit-graph-column 50
 org-agenda-mode-hook '(hl-line-mode)
 org-agenda-files '("~/Dropbox/org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer
bh/remove-empty-drawer-on-clock-out)
 org-refile-target-verify-function 'bh/verify-refile-target
 org-tag-alist '((:startgroup) ("@errand" . 101) ("@office" . 111) ("@home"
. 104) (:endgroup) ("WAITING" . 87)
("HOLD" . 72) ("PERSONAL" . 112) ("WORK" . 119) ("ORG" . 79) ("NOTE" . 110)
("CANCELLED" . 99)
("FLAGGED" . 63))
 )


--
Ryan
rschuet@gmail.com

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

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

* Re: Babel error on init with 8.3.1
  2015-08-07 14:41 Babel error on init with 8.3.1 Ryan Schuetzler
@ 2015-08-09 14:51 ` Kyle Meyer
  2015-08-10 14:31 ` Cook, Malcolm
  1 sibling, 0 replies; 13+ messages in thread
From: Kyle Meyer @ 2015-08-09 14:51 UTC (permalink / raw)
  To: Ryan Schuetzler; +Cc: emacs-orgmode

Hello,

Ryan Schuetzler <rschuet@gmail.com> wrote:
> On startup with the latest 8.3 release I now get an error:
>
>   Invalid function: org-babel-header-args-safe-fn

This seems to be related to a previous thread:

  http://thread.gmane.org/gmane.emacs.orgmode/99644

Although this isn't how the issue was solved on that thread, try

- C-u M-x org-reload
- uninstall Org using package-list-packages
- reinstall Org using package-list-packages

--
Kyle

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

* Re: Babel error on init with 8.3.1
  2015-08-07 14:41 Babel error on init with 8.3.1 Ryan Schuetzler
  2015-08-09 14:51 ` Kyle Meyer
@ 2015-08-10 14:31 ` Cook, Malcolm
  2015-08-10 17:08   ` Cook, Malcolm
  1 sibling, 1 reply; 13+ messages in thread
From: Cook, Malcolm @ 2015-08-10 14:31 UTC (permalink / raw)
  To: 'Ryan Schuetzler', emacs-orgmode@gnu.org

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

When you “ updated org through the package manager in Emacs,” I believe you need to make sure org has not been loaded at all.

My practice is to exec `emacs –Q`, immediately update with package manager, then quit and restart emacs without the –Q.

Let us know….

From: emacs-orgmode-bounces+mec=stowers.org@gnu.org [mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org] On Behalf Of Ryan Schuetzler
Sent: Friday, August 07, 2015 9:41 AM
To: emacs-orgmode@gnu.org
Subject: [O] Babel error on init with 8.3.1

On startup with the latest 8.3 release I now get an error:

  Invalid function: org-babel-header-args-safe-fn

I updated org through the package manager in Emacs, and I'm using it on Windows 10. Below is my full org configuration, but I've found that when I comment out the following section of my init, I don't receive any errors:

(add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)

(setq org-babel-results-keyword "results")

(defun bh/display-inline-images ()
  (condition-case nil
  (org-display-inline-images)
(error nil)))

(org-babel-do-load-languages
 (quote org-babel-load-languages)
 (quote ((emacs-lisp . t)
          (latex . t)
          (R . t)
          (dot . t)
          (python . t)
          (org . t))))

(setq org-confirm-babel-evaluate nil)

FULL Config:

Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
 of 2015-07-11 on KAEL
Package: Org-mode version 8.3.1 (8.3.1-elpa @ c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)

current state:
==============
(setq
 org-export-backends '(ascii html icalendar latex md odt)
 org-agenda-tags-todo-honor-ignore-options t
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-babel-results-keyword "results"
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-exporter-settings '((ps-number-of-columns 1) (ps-landscape-mode t) (htmlize-output-type (quote cc)))
 org-agenda-custom-commands '(("N" "Notes" tags "NOTE"
                                                                                    ((org-agenda-overriding-header "Notes") (org-tags-match-list-sublevels t)))
                                                                                   ("h" "Habits" tags-todo "STYLE=\"habit\""
                                                                                    ((org-agenda-overriding-header "Habits")
                                                                                              (org-agenda-sorting-strategy (quote (todo-state-down effort-up category-keep))))
                                                                                    )
                                                                                   (" " "Agenda"
                                                                                    ((agenda "" nil)
                                                                                              (tags "REFILE"
                                                                                              ((org-agenda-overriding-header "Tasks to Refile")
                                                                                               (org-tags-match-list-sublevels nil))
                                                                                              )
                                                                                              (tags-todo "-CANCELLED/!"
                                                                                              ((org-agenda-overriding-header "Stuck Projects")
                                                                                               (org-agenda-skip-function (quote bh/skip-non-stuck-projects))
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-HOLD-CANCELLED/!"
                                                                                              ((org-agenda-overriding-header "Projects")
                                                                                               (org-agenda-skip-function (quote bh/skip-non-projects))
                                                                                               (org-tags-match-list-sublevels (quote indented))
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-CANCELLED/!NEXT"
                                                                                              ((org-agenda-overriding-header
                                                                                                (concat "Project Next Tasks"
                                                                                                          (if bh/hide-scheduled-and-waiting-next-tasks ""
                                                                                                          " (including WAITING and SCHEDULED tasks)")
                                                                                                          )
                                                                                                )
                                                                                               (org-agenda-skip-function (quote bh/skip-projects-and-habits-and-single-tasks))
                                                                                               (org-tags-match-list-sublevels t)
                                                                                               (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-sorting-strategy (quote (todo-state-down effort-up category-keep))))
                                                                                              )
                                                                                              (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
                                                                                              ((org-agenda-overriding-header
                                                                                                (concat "Standalone Tasks"
                                                                                                          (if bh/hide-scheduled-and-waiting-next-tasks ""
                                                                                                          " (including WAITING and SCHEDULED tasks)")
                                                                                                          )
                                                                                                )
                                                                                               (org-agenda-skip-function (quote bh/skip-project-tasks))
                                                                                               (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
                                                                                              ((org-agenda-overriding-header
                                                                                                (concat "Project Subtasks"
                                                                                                          (if bh/hide-scheduled-and-waiting-next-tasks ""
                                                                                                          " (including WAITING and SCHEDULED tasks)")
                                                                                                          )
                                                                                                )
                                                                                               (org-agenda-skip-function (quote bh/skip-non-project-tasks))
                                                                                               (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-CANCELLED+WAITING|HOLD/!"
                                                                                              ((org-agenda-overriding-header "Waiting and Postponed Tasks")
                                                                                               (org-agenda-skip-function (quote bh/skip-stuck-projects))
                                                                                               (org-tags-match-list-sublevels nil) (org-agenda-todo-ignore-scheduled t)
                                                                                               (org-agenda-todo-ignore-deadlines t))
                                                                                              )
                                                                                              (tags "-REFILE/"
                                                                                              ((org-agenda-overriding-header "Tasks to Archive")
                                                                                               (org-agenda-skip-function (quote bh/skip-non-archivable-tasks))
                                                                                               (org-tags-match-list-sublevels nil))
                                                                                              )
                                                                                              )
                                                                                    nil)
                                                                                   )
 org-return-follows-link t
 org-default-notes-file "~/Dropbox/org/inbox.org<http://inbox.org>"
 org-todo-keyword-faces '(("TODO" :foreground "tomato" :weight bold)
                                                                       ("NEXT" :foreground "deep sky blue" :weight bold)
                                                                       ("DONE" :foreground "medium spring green" :weight bold)
                                                                       ("WAITING" :foreground "orange" :weight bold) ("HOLD" :foreground "magenta" :weight bold)
                                                                       ("CANCELLED" :foreground "medium spring green" :weight bold)
                                                                       ("MEETING" :foreground "medium spring green" :weight bold)
                                                                       ("PHONE" :foreground "medium spring green" :weight bold))
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-from-is-user-regexp nil
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-agenda-dim-blocked-tasks nil
 org-mode-hook '(evil-org-mode
                                              #[nil "\300\301\302\303\304$\207"
                                                [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
                                              #[nil "\300\301\302\303\304$\207"
                                                [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
                                              org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
 org-outline-path-complete-in-steps nil
 org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t)) ("WAITING" ("WAITING" . t))
                                                                                              ("HOLD" ("WAITING") ("HOLD" . t)) ("TODO" ("WAITING") ("CANCELLED") ("HOLD"))
                                                                                              ("NEXT" ("WAITING") ("CANCELLED") ("HOLD"))
                                                                                              ("DONE" ("WAITING") ("CANCELLED") ("HOLD")))
 org-stuck-projects '("" nil nil "")
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-agenda-compact-blocks t
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
 org-refile-use-outline-path t
 org-directory "~/Dropbox/org"
 org-insert-mode-line-in-empty-file t
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
                                               org-optimize-window-after-visibility-change)
 org-refile-allow-creating-parent-nodes 'confirm
 org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)")
                                                          (sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING"))
 org-modules '(org-bbdb org-bibtex org-habit org-irc)
 org-fast-tag-selection-single-key 'expert
 org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el") ("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-babel-after-execute-hook '(bh/display-inline-images)
 org-completion-use-ido t
 org-indirect-buffer-display 'current-window
 org-babel-load-languages '((emacs-lisp . t) (latex . t) (R . t) (dot . t) (python . t) (org . t))
 org-habit-graph-column 50
 org-agenda-mode-hook '(hl-line-mode)
 org-agenda-files '("~/Dropbox/org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer bh/remove-empty-drawer-on-clock-out)
 org-refile-target-verify-function 'bh/verify-refile-target
 org-tag-alist '((:startgroup) ("@errand" . 101) ("@office" . 111) ("@home" . 104) (:endgroup) ("WAITING" . 87)
                                              ("HOLD" . 72) ("PERSONAL" . 112) ("WORK" . 119) ("ORG" . 79) ("NOTE" . 110) ("CANCELLED" . 99)
                                              ("FLAGGED" . 63))
 )


--
Ryan
rschuet@gmail.com<mailto:rschuet@gmail.com>

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

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

* Re: Babel error on init with 8.3.1
  2015-08-10 14:31 ` Cook, Malcolm
@ 2015-08-10 17:08   ` Cook, Malcolm
  2015-08-10 20:43     ` Peter Salazar
  0 siblings, 1 reply; 13+ messages in thread
From: Cook, Malcolm @ 2015-08-10 17:08 UTC (permalink / raw)
  To: 'Ryan Schuetzler', emacs-orgmode@gnu.org

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

Hi – here is my more detailed variation that just got upvoted at stackoverflow  for resolving essentially the same problem:

http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio



From: emacs-orgmode-bounces+mec=stowers.org@gnu.org [mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org] On Behalf Of Cook, Malcolm
Sent: Monday, August 10, 2015 9:32 AM
To: 'Ryan Schuetzler' <rschuet@gmail.com>; emacs-orgmode@gnu.org
Subject: Re: [O] Babel error on init with 8.3.1

When you “ updated org through the package manager in Emacs,” I believe you need to make sure org has not been loaded at all.

My practice is to exec `emacs –Q`, immediately update with package manager, then quit and restart emacs without the –Q.

Let us know….

From: emacs-orgmode-bounces+mec=stowers.org@gnu.org<mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org> [mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org] On Behalf Of Ryan Schuetzler
Sent: Friday, August 07, 2015 9:41 AM
To: emacs-orgmode@gnu.org<mailto:emacs-orgmode@gnu.org>
Subject: [O] Babel error on init with 8.3.1

On startup with the latest 8.3 release I now get an error:

  Invalid function: org-babel-header-args-safe-fn

I updated org through the package manager in Emacs, and I'm using it on Windows 10. Below is my full org configuration, but I've found that when I comment out the following section of my init, I don't receive any errors:

(add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)

(setq org-babel-results-keyword "results")

(defun bh/display-inline-images ()
  (condition-case nil
  (org-display-inline-images)
(error nil)))

(org-babel-do-load-languages
 (quote org-babel-load-languages)
 (quote ((emacs-lisp . t)
          (latex . t)
          (R . t)
          (dot . t)
          (python . t)
          (org . t))))

(setq org-confirm-babel-evaluate nil)

FULL Config:

Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
 of 2015-07-11 on KAEL
Package: Org-mode version 8.3.1 (8.3.1-elpa @ c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)

current state:
==============
(setq
 org-export-backends '(ascii html icalendar latex md odt)
 org-agenda-tags-todo-honor-ignore-options t
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-babel-results-keyword "results"
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-exporter-settings '((ps-number-of-columns 1) (ps-landscape-mode t) (htmlize-output-type (quote cc)))
 org-agenda-custom-commands '(("N" "Notes" tags "NOTE"
                                                                                    ((org-agenda-overriding-header "Notes") (org-tags-match-list-sublevels t)))
                                                                                   ("h" "Habits" tags-todo "STYLE=\"habit\""
                                                                                    ((org-agenda-overriding-header "Habits")
                                                                                              (org-agenda-sorting-strategy (quote (todo-state-down effort-up category-keep))))
                                                                                    )
                                                                                   (" " "Agenda"
                                                                                    ((agenda "" nil)
                                                                                              (tags "REFILE"
                                                                                              ((org-agenda-overriding-header "Tasks to Refile")
                                                                                               (org-tags-match-list-sublevels nil))
                                                                                              )
                                                                                              (tags-todo "-CANCELLED/!"
                                                                                              ((org-agenda-overriding-header "Stuck Projects")
                                                                                               (org-agenda-skip-function (quote bh/skip-non-stuck-projects))
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-HOLD-CANCELLED/!"
                                                                                              ((org-agenda-overriding-header "Projects")
                                                                                               (org-agenda-skip-function (quote bh/skip-non-projects))
                                                                                               (org-tags-match-list-sublevels (quote indented))
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-CANCELLED/!NEXT"
                                                                                              ((org-agenda-overriding-header
                                                                                                (concat "Project Next Tasks"
                                                                                                          (if bh/hide-scheduled-and-waiting-next-tasks ""
                                                                                                          " (including WAITING and SCHEDULED tasks)")
                                                                                                          )
                                                                                                )
                                                                                               (org-agenda-skip-function (quote bh/skip-projects-and-habits-and-single-tasks))
                                                                                               (org-tags-match-list-sublevels t)
                                                                                               (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-sorting-strategy (quote (todo-state-down effort-up category-keep))))
                                                                                              )
                                                                                              (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
                                                                                              ((org-agenda-overriding-header
                                                                                                (concat "Standalone Tasks"
                                                                                                          (if bh/hide-scheduled-and-waiting-next-tasks ""
                                                                                                          " (including WAITING and SCHEDULED tasks)")
                                                                                                          )
                                                                                                )
                                                                                               (org-agenda-skip-function (quote bh/skip-project-tasks))
                                                                                               (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
                                                                                              ((org-agenda-overriding-header
                                                                                                (concat "Project Subtasks"
                                                                                                          (if bh/hide-scheduled-and-waiting-next-tasks ""
                                                                                                          " (including WAITING and SCHEDULED tasks)")
                                                                                                          )
                                                                                                )
                                                                                               (org-agenda-skip-function (quote bh/skip-non-project-tasks))
                                                                                               (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-CANCELLED+WAITING|HOLD/!"
                                                                                              ((org-agenda-overriding-header "Waiting and Postponed Tasks")
                                                                                               (org-agenda-skip-function (quote bh/skip-stuck-projects))
                                                                                               (org-tags-match-list-sublevels nil) (org-agenda-todo-ignore-scheduled t)
                                                                                               (org-agenda-todo-ignore-deadlines t))
                                                                                              )
                                                                                              (tags "-REFILE/"
                                                                                              ((org-agenda-overriding-header "Tasks to Archive")
                                                                                               (org-agenda-skip-function (quote bh/skip-non-archivable-tasks))
                                                                                               (org-tags-match-list-sublevels nil))
                                                                                              )
                                                                                              )
                                                                                    nil)
                                                                                   )
 org-return-follows-link t
 org-default-notes-file "~/Dropbox/org/inbox.org<http://inbox.org>"
 org-todo-keyword-faces '(("TODO" :foreground "tomato" :weight bold)
                                                                       ("NEXT" :foreground "deep sky blue" :weight bold)
                                                                       ("DONE" :foreground "medium spring green" :weight bold)
                                                                       ("WAITING" :foreground "orange" :weight bold) ("HOLD" :foreground "magenta" :weight bold)
                                                                       ("CANCELLED" :foreground "medium spring green" :weight bold)
                                                                       ("MEETING" :foreground "medium spring green" :weight bold)
                                                                       ("PHONE" :foreground "medium spring green" :weight bold))
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-from-is-user-regexp nil
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-agenda-dim-blocked-tasks nil
 org-mode-hook '(evil-org-mode
                                              #[nil "\300\301\302\303\304$\207"
                                                [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
                                              #[nil "\300\301\302\303\304$\207"
                                                [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
                                              org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
 org-outline-path-complete-in-steps nil
 org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t)) ("WAITING" ("WAITING" . t))
                                                                                              ("HOLD" ("WAITING") ("HOLD" . t)) ("TODO" ("WAITING") ("CANCELLED") ("HOLD"))
                                                                                              ("NEXT" ("WAITING") ("CANCELLED") ("HOLD"))
                                                                                              ("DONE" ("WAITING") ("CANCELLED") ("HOLD")))
 org-stuck-projects '("" nil nil "")
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-agenda-compact-blocks t
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
 org-refile-use-outline-path t
 org-directory "~/Dropbox/org"
 org-insert-mode-line-in-empty-file t
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
                                               org-optimize-window-after-visibility-change)
 org-refile-allow-creating-parent-nodes 'confirm
 org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)")
                                                          (sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING"))
 org-modules '(org-bbdb org-bibtex org-habit org-irc)
 org-fast-tag-selection-single-key 'expert
 org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el") ("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-babel-after-execute-hook '(bh/display-inline-images)
 org-completion-use-ido t
 org-indirect-buffer-display 'current-window
 org-babel-load-languages '((emacs-lisp . t) (latex . t) (R . t) (dot . t) (python . t) (org . t))
 org-habit-graph-column 50
 org-agenda-mode-hook '(hl-line-mode)
 org-agenda-files '("~/Dropbox/org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer bh/remove-empty-drawer-on-clock-out)
 org-refile-target-verify-function 'bh/verify-refile-target
 org-tag-alist '((:startgroup) ("@errand" . 101) ("@office" . 111) ("@home" . 104) (:endgroup) ("WAITING" . 87)
                                              ("HOLD" . 72) ("PERSONAL" . 112) ("WORK" . 119) ("ORG" . 79) ("NOTE" . 110) ("CANCELLED" . 99)
                                              ("FLAGGED" . 63))
 )


--
Ryan
rschuet@gmail.com<mailto:rschuet@gmail.com>

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

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

* Re: Babel error on init with 8.3.1
  2015-08-10 17:08   ` Cook, Malcolm
@ 2015-08-10 20:43     ` Peter Salazar
  2015-08-10 21:30       ` Peter Salazar
  0 siblings, 1 reply; 13+ messages in thread
From: Peter Salazar @ 2015-08-10 20:43 UTC (permalink / raw)
  To: Cook, Malcolm; +Cc: emacs-orgmode@gnu.org, Ryan Schuetzler

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

I'm trying to do this for my other install of Emacs (which uses Spacemacs)
and now I'm running into problems. I'm using GUI Emacs on Mac OSX
(from brew install --with-cocoa --srgb emacs).

When I do open -a /Applications/Emacs.app --args --no-init --eval "(progn
(require 'package) (add-to-list 'package-archives '(\"org\" . \"
http://orgmode.org/elpa/\")) (package-initialize)
(package-refresh-contents) (package-install 'org-plus-contrib))" it never
gets pastContacting host: orgmode.org:80. It just shows that message
indefinitely...

When I try eval-ing package.el first, I get package-desc-reqs accessing a
non-package-desc and I can't install org-plus-contrib. Any suggestions?


On Mon, Aug 10, 2015 at 1:08 PM, Cook, Malcolm <MEC@stowers.org> wrote:

> Hi – here is my more detailed variation that just got upvoted at
> stackoverflow  for resolving essentially the same problem:
>
>
>
>
> http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio
>
>
>
>
>
>
>
> *From:* emacs-orgmode-bounces+mec=stowers.org@gnu.org [mailto:
> emacs-orgmode-bounces+mec=stowers.org@gnu.org] *On Behalf Of *Cook,
> Malcolm
> *Sent:* Monday, August 10, 2015 9:32 AM
> *To:* 'Ryan Schuetzler' <rschuet@gmail.com>; emacs-orgmode@gnu.org
> *Subject:* Re: [O] Babel error on init with 8.3.1
>
>
>
> When you “ updated org through the package manager in Emacs,” I believe
> you need to make sure org has not been loaded at all.
>
>
>
> My practice is to exec `emacs –Q`, immediately update with package
> manager, then quit and restart emacs without the –Q.
>
>
>
> Let us know….
>
>
>
> *From:* emacs-orgmode-bounces+mec=stowers.org@gnu.org [
> mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org
> <emacs-orgmode-bounces+mec=stowers.org@gnu.org>] *On Behalf Of *Ryan
> Schuetzler
> *Sent:* Friday, August 07, 2015 9:41 AM
> *To:* emacs-orgmode@gnu.org
> *Subject:* [O] Babel error on init with 8.3.1
>
>
>
> On startup with the latest 8.3 release I now get an error:
>
>
>
>   Invalid function: org-babel-header-args-safe-fn
>
>
>
> I updated org through the package manager in Emacs, and I'm using it on
> Windows 10. Below is my full org configuration, but I've found that when I
> comment out the following section of my init, I don't receive any errors:
>
>
>
> (add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)
>
>
>
> (setq org-babel-results-keyword "results")
>
>
>
> (defun bh/display-inline-images ()
>
>   (condition-case nil
>
>   (org-display-inline-images)
>
> (error nil)))
>
>
>
> (org-babel-do-load-languages
>
>  (quote org-babel-load-languages)
>
>  (quote ((emacs-lisp . t)
>
>           (latex . t)
>
>           (R . t)
>
>           (dot . t)
>
>           (python . t)
>
>           (org . t))))
>
>
>
> (setq org-confirm-babel-evaluate nil)
>
>
>
> FULL Config:
>
>
>
> Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
>
>  of 2015-07-11 on KAEL
>
> Package: Org-mode version 8.3.1 (8.3.1-elpa @
> c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)
>
>
>
> current state:
>
> ==============
>
> (setq
>
>  org-export-backends '(ascii html icalendar latex md odt)
>
>  org-agenda-tags-todo-honor-ignore-options t
>
>  org-tab-first-hook '(org-hide-block-toggle-maybe
> org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
>
>  org-babel-results-keyword "results"
>
>  org-speed-command-hook '(org-speed-command-default-hook
> org-babel-speed-command-hook)
>
>  org-occur-hook '(org-first-headline-recenter)
>
>  org-metaup-hook '(org-babel-load-in-session-maybe)
>
>  org-confirm-shell-link-function 'yes-or-no-p
>
>  org-agenda-exporter-settings '((ps-number-of-columns 1)
> (ps-landscape-mode t) (htmlize-output-type (quote cc)))
>
>  org-agenda-custom-commands '(("N" "Notes" tags "NOTE"
>
>
>   ((org-agenda-overriding-header "Notes") (org-tags-match-list-sublevels
> t)))
>
>
>  ("h" "Habits" tags-todo "STYLE=\"habit\""
>
>
>   ((org-agenda-overriding-header "Habits")
>
>
> (org-agenda-sorting-strategy (quote (todo-state-down effort-up
> category-keep))))
>
>
>   )
>
>
>  (" " "Agenda"
>
>
>   ((agenda "" nil)
>
>
> (tags "REFILE"
>
>
> ((org-agenda-overriding-header "Tasks to Refile")
>
>
>  (org-tags-match-list-sublevels nil))
>
>
> )
>
>
> (tags-todo "-CANCELLED/!"
>
>
> ((org-agenda-overriding-header "Stuck Projects")
>
>
>  (org-agenda-skip-function (quote bh/skip-non-stuck-projects))
>
>
>  (org-agenda-sorting-strategy (quote (category-keep))))
>
>
> )
>
>
> (tags-todo "-HOLD-CANCELLED/!"
>
>
>
> ((org-agenda-overriding-header "Projects")
>
>
>  (org-agenda-skip-function (quote bh/skip-non-projects))
>
>
>  (org-tags-match-list-sublevels (quote indented))
>
>
>  (org-agenda-sorting-strategy (quote (category-keep))))
>
>
> )
>
>
> (tags-todo "-CANCELLED/!NEXT"
>
>
> ((org-agenda-overriding-header
>
>
>   (concat "Project Next Tasks"
>
>
> (if bh/hide-scheduled-and-waiting-next-tasks ""
>
>
> " (including WAITING and SCHEDULED tasks)")
>
>
> )
>
>
>   )
>
>
>  (org-agenda-skip-function (quote
> bh/skip-projects-and-habits-and-single-tasks))
>
>
>  (org-tags-match-list-sublevels t)
>
>
>  (org-agenda-todo-ignore-scheduled
> bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-deadlines
> bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-with-date
> bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-sorting-strategy (quote (todo-state-down effort-up
> category-keep))))
>
>
> )
>
>
> (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
>
>
> ((org-agenda-overriding-header
>
>
>   (concat "Standalone Tasks"
>
>
> (if bh/hide-scheduled-and-waiting-next-tasks ""
>
>
> " (including WAITING and SCHEDULED tasks)")
>
>
> )
>
>
>   )
>
>
>  (org-agenda-skip-function (quote bh/skip-project-tasks))
>
>
>  (org-agenda-todo-ignore-scheduled
> bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-deadlines
> bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-with-date
> bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-sorting-strategy (quote (category-keep))))
>
>
> )
>
>
> (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
>
>
> ((org-agenda-overriding-header
>
>
>   (concat "Project Subtasks"
>
>
> (if bh/hide-scheduled-and-waiting-next-tasks ""
>
>
> " (including WAITING and SCHEDULED tasks)")
>
>
> )
>
>
>   )
>
>
>  (org-agenda-skip-function (quote bh/skip-non-project-tasks))
>
>
>  (org-agenda-todo-ignore-scheduled
> bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-deadlines
> bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-with-date
> bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-sorting-strategy (quote (category-keep))))
>
>
> )
>
>
> (tags-todo "-CANCELLED+WAITING|HOLD/!"
>
>
> ((org-agenda-overriding-header "Waiting and Postponed Tasks")
>
>
>  (org-agenda-skip-function (quote bh/skip-stuck-projects))
>
>
>  (org-tags-match-list-sublevels nil) (org-agenda-todo-ignore-scheduled t)
>
>
>  (org-agenda-todo-ignore-deadlines t))
>
>
> )
>
>
> (tags "-REFILE/"
>
>
> ((org-agenda-overriding-header "Tasks to Archive")
>
>
>  (org-agenda-skip-function (quote bh/skip-non-archivable-tasks))
>
>
>  (org-tags-match-list-sublevels nil))
>
>
> )
>
>
> )
>
>
>   nil)
>
>
>  )
>
>  org-return-follows-link t
>
>  org-default-notes-file "~/Dropbox/org/inbox.org"
>
>  org-todo-keyword-faces '(("TODO" :foreground "tomato" :weight bold)
>
>                                                                        ("NEXT"
> :foreground "deep sky blue" :weight bold)
>
>                                                                        ("DONE"
> :foreground "medium spring green" :weight bold)
>
>                                                                        ("WAITING"
> :foreground "orange" :weight bold) ("HOLD" :foreground "magenta" :weight
> bold)
>
>                                                                        ("CANCELLED"
> :foreground "medium spring green" :weight bold)
>
>                                                                        ("MEETING"
> :foreground "medium spring green" :weight bold)
>
>                                                                        ("PHONE"
> :foreground "medium spring green" :weight bold))
>
>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>
>  org-from-is-user-regexp nil
>
>  org-src-mode-hook '(org-src-babel-configure-edit-buffer
> org-src-mode-configure-edit-buffer)
>
>  org-agenda-before-write-hook '(org-agenda-add-entry-text)
>
>  org-babel-pre-tangle-hook '(save-buffer)
>
>  org-agenda-dim-blocked-tasks nil
>
>  org-mode-hook '(evil-org-mode
>
>                                               #[nil
> "\300\301\302\303\304$\207"
>
>                                                 [org-add-hook
> change-major-mode-hook org-show-block-all append local] 5]
>
>                                               #[nil
> "\300\301\302\303\304$\207"
>
>                                                 [org-add-hook
> change-major-mode-hook org-babel-show-result-all append local] 5]
>
>                                               org-babel-result-hide-spec
> org-babel-hide-all-hashes)
>
>  org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
>
>  org-outline-path-complete-in-steps nil
>
>  org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t)) ("WAITING"
> ("WAITING" . t))
>
>
>                                                                         ("HOLD"
> ("WAITING") ("HOLD" . t)) ("TODO" ("WAITING") ("CANCELLED") ("HOLD"))
>
>
> ("NEXT" ("WAITING") ("CANCELLED") ("HOLD"))
>
>
> ("DONE" ("WAITING") ("CANCELLED") ("HOLD")))
>
>  org-stuck-projects '("" nil nil "")
>
>  org-archive-hook '(org-attach-archive-delete-maybe)
>
>  org-agenda-compact-blocks t
>
>  org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
> org-babel-execute-safely-maybe)
>
>  org-refile-use-outline-path t
>
>  org-directory "~/Dropbox/org"
>
>  org-insert-mode-line-in-empty-file t
>
>  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
> org-cycle-show-empty-lines
>
>
>  org-optimize-window-after-visibility-change)
>
>  org-refile-allow-creating-parent-nodes 'confirm
>
>  org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)")
>
>                                                           (sequence
> "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING"))
>
>  org-modules '(org-bbdb org-bibtex org-habit org-irc)
>
>  org-fast-tag-selection-single-key 'expert
>
>  org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el")
> ("elisp" . "el"))
>
>  org-confirm-elisp-link-function 'yes-or-no-p
>
>  org-metadown-hook '(org-babel-pop-to-session-maybe)
>
>  org-babel-after-execute-hook '(bh/display-inline-images)
>
>  org-completion-use-ido t
>
>  org-indirect-buffer-display 'current-window
>
>  org-babel-load-languages '((emacs-lisp . t) (latex . t) (R . t) (dot . t)
> (python . t) (org . t))
>
>  org-habit-graph-column 50
>
>  org-agenda-mode-hook '(hl-line-mode)
>
>  org-agenda-files '("~/Dropbox/org")
>
>  org-clock-out-hook '(org-clock-remove-empty-clock-drawer
> bh/remove-empty-drawer-on-clock-out)
>
>  org-refile-target-verify-function 'bh/verify-refile-target
>
>  org-tag-alist '((:startgroup) ("@errand" . 101) ("@office" . 111)
> ("@home" . 104) (:endgroup) ("WAITING" . 87)
>
>                                               ("HOLD" . 72) ("PERSONAL" .
> 112) ("WORK" . 119) ("ORG" . 79) ("NOTE" . 110) ("CANCELLED" . 99)
>
>                                               ("FLAGGED" . 63))
>
>  )
>
>
>
>
> --
>
> Ryan
>
> rschuet@gmail.com
>

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

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

* Re: Babel error on init with 8.3.1
  2015-08-10 20:43     ` Peter Salazar
@ 2015-08-10 21:30       ` Peter Salazar
  2015-08-10 23:18         ` Cook, Malcolm
  0 siblings, 1 reply; 13+ messages in thread
From: Peter Salazar @ 2015-08-10 21:30 UTC (permalink / raw)
  To: Cook, Malcolm; +Cc: emacs-orgmode@gnu.org, Ryan Schuetzler

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

Update: the install of org-plus-contrib was eventually successful, but it
seems that my attempt to launch a GUI version Emacs -Q didn't work.

Here's what I did:

$ open -a /Applications/Emacs.app --args --no-init

C-u M-x org-reload

package-list-packages

select and delete org-plus-contrib

package-install org-plus-contrib

But then when I quit and launch Emacs without the --no-init argument, I
still get:

Debugger entered--Lisp error: (void-variable org-planning-line-re)
  org-element--current-element(168330 element planning nil)

...which I think means org-plus-contrib was not successfully upgraded.

Any thoughts? Thanks!



On Mon, Aug 10, 2015 at 4:43 PM, Peter Salazar <cycleofsong@gmail.com>
wrote:

> I'm trying to do this for my other install of Emacs (which uses Spacemacs)
> and now I'm running into problems. I'm using GUI Emacs on Mac OSX
> (from brew install --with-cocoa --srgb emacs).
>
> When I do open -a /Applications/Emacs.app --args --no-init --eval "(progn
> (require 'package) (add-to-list 'package-archives '(\"org\" . \"
> http://orgmode.org/elpa/\")) (package-initialize)
> (package-refresh-contents) (package-install 'org-plus-contrib))" it never
> gets pastContacting host: orgmode.org:80. It just shows that message
> indefinitely...
>
> When I try eval-ing package.el first, I get package-desc-reqs accessing a
> non-package-desc and I can't install org-plus-contrib. Any suggestions?
>
>
> On Mon, Aug 10, 2015 at 1:08 PM, Cook, Malcolm <MEC@stowers.org> wrote:
>
>> Hi – here is my more detailed variation that just got upvoted at
>> stackoverflow  for resolving essentially the same problem:
>>
>>
>>
>>
>> http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio
>>
>>
>>
>>
>>
>>
>>
>> *From:* emacs-orgmode-bounces+mec=stowers.org@gnu.org [mailto:
>> emacs-orgmode-bounces+mec=stowers.org@gnu.org] *On Behalf Of *Cook,
>> Malcolm
>> *Sent:* Monday, August 10, 2015 9:32 AM
>> *To:* 'Ryan Schuetzler' <rschuet@gmail.com>; emacs-orgmode@gnu.org
>> *Subject:* Re: [O] Babel error on init with 8.3.1
>>
>>
>>
>> When you “ updated org through the package manager in Emacs,” I believe
>> you need to make sure org has not been loaded at all.
>>
>>
>>
>> My practice is to exec `emacs –Q`, immediately update with package
>> manager, then quit and restart emacs without the –Q.
>>
>>
>>
>> Let us know….
>>
>>
>>
>> *From:* emacs-orgmode-bounces+mec=stowers.org@gnu.org [
>> mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org
>> <emacs-orgmode-bounces+mec=stowers.org@gnu.org>] *On Behalf Of *Ryan
>> Schuetzler
>> *Sent:* Friday, August 07, 2015 9:41 AM
>> *To:* emacs-orgmode@gnu.org
>> *Subject:* [O] Babel error on init with 8.3.1
>>
>>
>>
>> On startup with the latest 8.3 release I now get an error:
>>
>>
>>
>>   Invalid function: org-babel-header-args-safe-fn
>>
>>
>>
>> I updated org through the package manager in Emacs, and I'm using it on
>> Windows 10. Below is my full org configuration, but I've found that when I
>> comment out the following section of my init, I don't receive any errors:
>>
>>
>>
>> (add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)
>>
>>
>>
>> (setq org-babel-results-keyword "results")
>>
>>
>>
>> (defun bh/display-inline-images ()
>>
>>   (condition-case nil
>>
>>   (org-display-inline-images)
>>
>> (error nil)))
>>
>>
>>
>> (org-babel-do-load-languages
>>
>>  (quote org-babel-load-languages)
>>
>>  (quote ((emacs-lisp . t)
>>
>>           (latex . t)
>>
>>           (R . t)
>>
>>           (dot . t)
>>
>>           (python . t)
>>
>>           (org . t))))
>>
>>
>>
>> (setq org-confirm-babel-evaluate nil)
>>
>>
>>
>> FULL Config:
>>
>>
>>
>> Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
>>
>>  of 2015-07-11 on KAEL
>>
>> Package: Org-mode version 8.3.1 (8.3.1-elpa @
>> c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)
>>
>>
>>
>> current state:
>>
>> ==============
>>
>> (setq
>>
>>  org-export-backends '(ascii html icalendar latex md odt)
>>
>>  org-agenda-tags-todo-honor-ignore-options t
>>
>>  org-tab-first-hook '(org-hide-block-toggle-maybe
>> org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
>>
>>  org-babel-results-keyword "results"
>>
>>  org-speed-command-hook '(org-speed-command-default-hook
>> org-babel-speed-command-hook)
>>
>>  org-occur-hook '(org-first-headline-recenter)
>>
>>  org-metaup-hook '(org-babel-load-in-session-maybe)
>>
>>  org-confirm-shell-link-function 'yes-or-no-p
>>
>>  org-agenda-exporter-settings '((ps-number-of-columns 1)
>> (ps-landscape-mode t) (htmlize-output-type (quote cc)))
>>
>>  org-agenda-custom-commands '(("N" "Notes" tags "NOTE"
>>
>>
>>   ((org-agenda-overriding-header "Notes") (org-tags-match-list-sublevels
>> t)))
>>
>>
>>  ("h" "Habits" tags-todo "STYLE=\"habit\""
>>
>>
>>   ((org-agenda-overriding-header "Habits")
>>
>>
>> (org-agenda-sorting-strategy (quote (todo-state-down effort-up
>> category-keep))))
>>
>>
>>   )
>>
>>
>>  (" " "Agenda"
>>
>>
>>   ((agenda "" nil)
>>
>>
>> (tags "REFILE"
>>
>>
>> ((org-agenda-overriding-header "Tasks to Refile")
>>
>>
>>  (org-tags-match-list-sublevels nil))
>>
>>
>> )
>>
>>
>> (tags-todo "-CANCELLED/!"
>>
>>
>> ((org-agenda-overriding-header "Stuck Projects")
>>
>>
>>  (org-agenda-skip-function (quote bh/skip-non-stuck-projects))
>>
>>
>>  (org-agenda-sorting-strategy (quote (category-keep))))
>>
>>
>> )
>>
>>
>> (tags-todo "-HOLD-CANCELLED/!"
>>
>>
>>
>> ((org-agenda-overriding-header "Projects")
>>
>>
>>  (org-agenda-skip-function (quote bh/skip-non-projects))
>>
>>
>>  (org-tags-match-list-sublevels (quote indented))
>>
>>
>>  (org-agenda-sorting-strategy (quote (category-keep))))
>>
>>
>> )
>>
>>
>> (tags-todo "-CANCELLED/!NEXT"
>>
>>
>> ((org-agenda-overriding-header
>>
>>
>>   (concat "Project Next Tasks"
>>
>>
>> (if bh/hide-scheduled-and-waiting-next-tasks ""
>>
>>
>> " (including WAITING and SCHEDULED tasks)")
>>
>>
>> )
>>
>>
>>   )
>>
>>
>>  (org-agenda-skip-function (quote
>> bh/skip-projects-and-habits-and-single-tasks))
>>
>>
>>  (org-tags-match-list-sublevels t)
>>
>>
>>  (org-agenda-todo-ignore-scheduled
>> bh/hide-scheduled-and-waiting-next-tasks)
>>
>>
>>  (org-agenda-todo-ignore-deadlines
>> bh/hide-scheduled-and-waiting-next-tasks)
>>
>>
>>  (org-agenda-todo-ignore-with-date
>> bh/hide-scheduled-and-waiting-next-tasks)
>>
>>
>>  (org-agenda-sorting-strategy (quote (todo-state-down effort-up
>> category-keep))))
>>
>>
>> )
>>
>>
>> (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
>>
>>
>> ((org-agenda-overriding-header
>>
>>
>>   (concat "Standalone Tasks"
>>
>>
>> (if bh/hide-scheduled-and-waiting-next-tasks ""
>>
>>
>> " (including WAITING and SCHEDULED tasks)")
>>
>>
>> )
>>
>>
>>   )
>>
>>
>>  (org-agenda-skip-function (quote bh/skip-project-tasks))
>>
>>
>>  (org-agenda-todo-ignore-scheduled
>> bh/hide-scheduled-and-waiting-next-tasks)
>>
>>
>>  (org-agenda-todo-ignore-deadlines
>> bh/hide-scheduled-and-waiting-next-tasks)
>>
>>
>>  (org-agenda-todo-ignore-with-date
>> bh/hide-scheduled-and-waiting-next-tasks)
>>
>>
>>  (org-agenda-sorting-strategy (quote (category-keep))))
>>
>>
>> )
>>
>>
>> (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
>>
>>
>> ((org-agenda-overriding-header
>>
>>
>>   (concat "Project Subtasks"
>>
>>
>> (if bh/hide-scheduled-and-waiting-next-tasks ""
>>
>>
>> " (including WAITING and SCHEDULED tasks)")
>>
>>
>> )
>>
>>
>>   )
>>
>>
>>  (org-agenda-skip-function (quote bh/skip-non-project-tasks))
>>
>>
>>  (org-agenda-todo-ignore-scheduled
>> bh/hide-scheduled-and-waiting-next-tasks)
>>
>>
>>  (org-agenda-todo-ignore-deadlines
>> bh/hide-scheduled-and-waiting-next-tasks)
>>
>>
>>  (org-agenda-todo-ignore-with-date
>> bh/hide-scheduled-and-waiting-next-tasks)
>>
>>
>>  (org-agenda-sorting-strategy (quote (category-keep))))
>>
>>
>> )
>>
>>
>> (tags-todo "-CANCELLED+WAITING|HOLD/!"
>>
>>
>> ((org-agenda-overriding-header "Waiting and Postponed Tasks")
>>
>>
>>  (org-agenda-skip-function (quote bh/skip-stuck-projects))
>>
>>
>>  (org-tags-match-list-sublevels nil) (org-agenda-todo-ignore-scheduled t)
>>
>>
>>  (org-agenda-todo-ignore-deadlines t))
>>
>>
>> )
>>
>>
>> (tags "-REFILE/"
>>
>>
>> ((org-agenda-overriding-header "Tasks to Archive")
>>
>>
>>  (org-agenda-skip-function (quote bh/skip-non-archivable-tasks))
>>
>>
>>  (org-tags-match-list-sublevels nil))
>>
>>
>> )
>>
>>
>> )
>>
>>
>>   nil)
>>
>>
>>  )
>>
>>  org-return-follows-link t
>>
>>  org-default-notes-file "~/Dropbox/org/inbox.org"
>>
>>  org-todo-keyword-faces '(("TODO" :foreground "tomato" :weight bold)
>>
>>                                                                        ("NEXT"
>> :foreground "deep sky blue" :weight bold)
>>
>>                                                                        ("DONE"
>> :foreground "medium spring green" :weight bold)
>>
>>                                                                        ("WAITING"
>> :foreground "orange" :weight bold) ("HOLD" :foreground "magenta" :weight
>> bold)
>>
>>                                                                        ("CANCELLED"
>> :foreground "medium spring green" :weight bold)
>>
>>                                                                        ("MEETING"
>> :foreground "medium spring green" :weight bold)
>>
>>                                                                        ("PHONE"
>> :foreground "medium spring green" :weight bold))
>>
>>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>>
>>  org-from-is-user-regexp nil
>>
>>  org-src-mode-hook '(org-src-babel-configure-edit-buffer
>> org-src-mode-configure-edit-buffer)
>>
>>  org-agenda-before-write-hook '(org-agenda-add-entry-text)
>>
>>  org-babel-pre-tangle-hook '(save-buffer)
>>
>>  org-agenda-dim-blocked-tasks nil
>>
>>  org-mode-hook '(evil-org-mode
>>
>>                                               #[nil
>> "\300\301\302\303\304$\207"
>>
>>                                                 [org-add-hook
>> change-major-mode-hook org-show-block-all append local] 5]
>>
>>                                               #[nil
>> "\300\301\302\303\304$\207"
>>
>>                                                 [org-add-hook
>> change-major-mode-hook org-babel-show-result-all append local] 5]
>>
>>                                               org-babel-result-hide-spec
>> org-babel-hide-all-hashes)
>>
>>  org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel .
>> 9))
>>
>>  org-outline-path-complete-in-steps nil
>>
>>  org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t))
>> ("WAITING" ("WAITING" . t))
>>
>>
>>                                                                         ("HOLD"
>> ("WAITING") ("HOLD" . t)) ("TODO" ("WAITING") ("CANCELLED") ("HOLD"))
>>
>>
>> ("NEXT" ("WAITING") ("CANCELLED") ("HOLD"))
>>
>>
>> ("DONE" ("WAITING") ("CANCELLED") ("HOLD")))
>>
>>  org-stuck-projects '("" nil nil "")
>>
>>  org-archive-hook '(org-attach-archive-delete-maybe)
>>
>>  org-agenda-compact-blocks t
>>
>>  org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
>> org-babel-execute-safely-maybe)
>>
>>  org-refile-use-outline-path t
>>
>>  org-directory "~/Dropbox/org"
>>
>>  org-insert-mode-line-in-empty-file t
>>
>>  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
>> org-cycle-show-empty-lines
>>
>>
>>  org-optimize-window-after-visibility-change)
>>
>>  org-refile-allow-creating-parent-nodes 'confirm
>>
>>  org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)")
>>
>>                                                           (sequence
>> "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING"))
>>
>>  org-modules '(org-bbdb org-bibtex org-habit org-irc)
>>
>>  org-fast-tag-selection-single-key 'expert
>>
>>  org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el")
>> ("elisp" . "el"))
>>
>>  org-confirm-elisp-link-function 'yes-or-no-p
>>
>>  org-metadown-hook '(org-babel-pop-to-session-maybe)
>>
>>  org-babel-after-execute-hook '(bh/display-inline-images)
>>
>>  org-completion-use-ido t
>>
>>  org-indirect-buffer-display 'current-window
>>
>>  org-babel-load-languages '((emacs-lisp . t) (latex . t) (R . t) (dot .
>> t) (python . t) (org . t))
>>
>>  org-habit-graph-column 50
>>
>>  org-agenda-mode-hook '(hl-line-mode)
>>
>>  org-agenda-files '("~/Dropbox/org")
>>
>>  org-clock-out-hook '(org-clock-remove-empty-clock-drawer
>> bh/remove-empty-drawer-on-clock-out)
>>
>>  org-refile-target-verify-function 'bh/verify-refile-target
>>
>>  org-tag-alist '((:startgroup) ("@errand" . 101) ("@office" . 111)
>> ("@home" . 104) (:endgroup) ("WAITING" . 87)
>>
>>                                               ("HOLD" . 72) ("PERSONAL"
>> . 112) ("WORK" . 119) ("ORG" . 79) ("NOTE" . 110) ("CANCELLED" . 99)
>>
>>                                               ("FLAGGED" . 63))
>>
>>  )
>>
>>
>>
>>
>> --
>>
>> Ryan
>>
>> rschuet@gmail.com
>>
>
>

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

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

* Re: Babel error on init with 8.3.1
  2015-08-10 21:30       ` Peter Salazar
@ 2015-08-10 23:18         ` Cook, Malcolm
  2015-08-11  0:14           ` Peter Salazar
  0 siblings, 1 reply; 13+ messages in thread
From: Cook, Malcolm @ 2015-08-10 23:18 UTC (permalink / raw)
  To: 'Peter Salazar'; +Cc: emacs-orgmode@gnu.org, Ryan Schuetzler

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

Try that recipe again but without the org-reload.  That is forcing org to load.  You don’t WANT org loaded when you build it again inside the package manager.

From: Peter Salazar [mailto:cycleofsong@gmail.com]
Sent: Monday, August 10, 2015 4:30 PM
To: Cook, Malcolm <MEC@stowers.org>
Cc: Ryan Schuetzler <rschuet@gmail.com>; emacs-orgmode@gnu.org
Subject: Re: [O] Babel error on init with 8.3.1

Update: the install of org-plus-contrib was eventually successful, but it seems that my attempt to launch a GUI version Emacs -Q didn't work.

Here's what I did:

$ open -a /Applications/Emacs.app --args --no-init

C-u M-x org-reload

package-list-packages

select and delete org-plus-contrib

package-install org-plus-contrib

But then when I quit and launch Emacs without the --no-init argument, I still get:

Debugger entered--Lisp error: (void-variable org-planning-line-re)
  org-element--current-element(168330 element planning nil)

...which I think means org-plus-contrib was not successfully upgraded.

Any thoughts? Thanks!



On Mon, Aug 10, 2015 at 4:43 PM, Peter Salazar <cycleofsong@gmail.com<mailto:cycleofsong@gmail.com>> wrote:
I'm trying to do this for my other install of Emacs (which uses Spacemacs) and now I'm running into problems. I'm using GUI Emacs on Mac OSX (from brew install --with-cocoa --srgb emacs).

When I do open -a /Applications/Emacs.app --args --no-init --eval "(progn (require 'package) (add-to-list 'package-archives '(\"org\" . \"http://orgmode.org/elpa/\<http://orgmode.org/elpa/%5C>")) (package-initialize) (package-refresh-contents) (package-install 'org-plus-contrib))" it never gets pastContacting host: orgmode.org:80<http://orgmode.org:80>. It just shows that message indefinitely...

When I try eval-ing package.el first, I get package-desc-reqs accessing a non-package-desc and I can't install org-plus-contrib. Any suggestions?


On Mon, Aug 10, 2015 at 1:08 PM, Cook, Malcolm <MEC@stowers.org<mailto:MEC@stowers.org>> wrote:
Hi – here is my more detailed variation that just got upvoted at stackoverflow  for resolving essentially the same problem:

http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio



From: emacs-orgmode-bounces+mec=stowers.org@gnu.org<mailto:stowers.org@gnu.org> [mailto:emacs-orgmode-bounces+mec<mailto:emacs-orgmode-bounces%2Bmec>=stowers.org@gnu.org<mailto:stowers.org@gnu.org>] On Behalf Of Cook, Malcolm
Sent: Monday, August 10, 2015 9:32 AM
To: 'Ryan Schuetzler' <rschuet@gmail.com<mailto:rschuet@gmail.com>>; emacs-orgmode@gnu.org<mailto:emacs-orgmode@gnu.org>
Subject: Re: [O] Babel error on init with 8.3.1

When you “ updated org through the package manager in Emacs,” I believe you need to make sure org has not been loaded at all.

My practice is to exec `emacs –Q`, immediately update with package manager, then quit and restart emacs without the –Q.

Let us know….

From: emacs-orgmode-bounces+mec=stowers.org@gnu.org<mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org> [mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org] On Behalf Of Ryan Schuetzler
Sent: Friday, August 07, 2015 9:41 AM
To: emacs-orgmode@gnu.org<mailto:emacs-orgmode@gnu.org>
Subject: [O] Babel error on init with 8.3.1

On startup with the latest 8.3 release I now get an error:

  Invalid function: org-babel-header-args-safe-fn

I updated org through the package manager in Emacs, and I'm using it on Windows 10. Below is my full org configuration, but I've found that when I comment out the following section of my init, I don't receive any errors:

(add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)

(setq org-babel-results-keyword "results")

(defun bh/display-inline-images ()
  (condition-case nil
  (org-display-inline-images)
(error nil)))

(org-babel-do-load-languages
 (quote org-babel-load-languages)
 (quote ((emacs-lisp . t)
          (latex . t)
          (R . t)
          (dot . t)
          (python . t)
          (org . t))))

(setq org-confirm-babel-evaluate nil)

FULL Config:

Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
 of 2015-07-11 on KAEL
Package: Org-mode version 8.3.1 (8.3.1-elpa @ c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)

current state:
==============
(setq
 org-export-backends '(ascii html icalendar latex md odt)
 org-agenda-tags-todo-honor-ignore-options t
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-babel-results-keyword "results"
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-exporter-settings '((ps-number-of-columns 1) (ps-landscape-mode t) (htmlize-output-type (quote cc)))
 org-agenda-custom-commands '(("N" "Notes" tags "NOTE"
                                                                                    ((org-agenda-overriding-header "Notes") (org-tags-match-list-sublevels t)))
                                                                                   ("h" "Habits" tags-todo "STYLE=\"habit\""
                                                                                    ((org-agenda-overriding-header "Habits")
                                                                                              (org-agenda-sorting-strategy (quote (todo-state-down effort-up category-keep))))
                                                                                    )
                                                                                   (" " "Agenda"
                                                                                    ((agenda "" nil)
                                                                                              (tags "REFILE"
                                                                                              ((org-agenda-overriding-header "Tasks to Refile")
                                                                                               (org-tags-match-list-sublevels nil))
                                                                                              )
                                                                                              (tags-todo "-CANCELLED/!"
                                                                                              ((org-agenda-overriding-header "Stuck Projects")
                                                                                               (org-agenda-skip-function (quote bh/skip-non-stuck-projects))
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-HOLD-CANCELLED/!"
                                                                                              ((org-agenda-overriding-header "Projects")
                                                                                               (org-agenda-skip-function (quote bh/skip-non-projects))
                                                                                               (org-tags-match-list-sublevels (quote indented))
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-CANCELLED/!NEXT"
                                                                                              ((org-agenda-overriding-header
                                                                                                (concat "Project Next Tasks"
                                                                                                          (if bh/hide-scheduled-and-waiting-next-tasks ""
                                                                                                          " (including WAITING and SCHEDULED tasks)")
                                                                                                          )
                                                                                                )
                                                                                               (org-agenda-skip-function (quote bh/skip-projects-and-habits-and-single-tasks))
                                                                                               (org-tags-match-list-sublevels t)
                                                                                               (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-sorting-strategy (quote (todo-state-down effort-up category-keep))))
                                                                                              )
                                                                                              (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
                                                                                              ((org-agenda-overriding-header
                                                                                                (concat "Standalone Tasks"
                                                                                                          (if bh/hide-scheduled-and-waiting-next-tasks ""
                                                                                                          " (including WAITING and SCHEDULED tasks)")
                                                                                                          )
                                                                                                )
                                                                                               (org-agenda-skip-function (quote bh/skip-project-tasks))
                                                                                               (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
                                                                                              ((org-agenda-overriding-header
                                                                                                (concat "Project Subtasks"
                                                                                                          (if bh/hide-scheduled-and-waiting-next-tasks ""
                                                                                                          " (including WAITING and SCHEDULED tasks)")
                                                                                                          )
                                                                                                )
                                                                                               (org-agenda-skip-function (quote bh/skip-non-project-tasks))
                                                                                               (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-CANCELLED+WAITING|HOLD/!"
                                                                                              ((org-agenda-overriding-header "Waiting and Postponed Tasks")
                                                                                               (org-agenda-skip-function (quote bh/skip-stuck-projects))
                                                                                               (org-tags-match-list-sublevels nil) (org-agenda-todo-ignore-scheduled t)
                                                                                               (org-agenda-todo-ignore-deadlines t))
                                                                                              )
                                                                                              (tags "-REFILE/"
                                                                                              ((org-agenda-overriding-header "Tasks to Archive")
                                                                                               (org-agenda-skip-function (quote bh/skip-non-archivable-tasks))
                                                                                               (org-tags-match-list-sublevels nil))
                                                                                              )
                                                                                              )
                                                                                    nil)
                                                                                   )
 org-return-follows-link t
 org-default-notes-file "~/Dropbox/org/inbox.org<http://inbox.org>"
 org-todo-keyword-faces '(("TODO" :foreground "tomato" :weight bold)
                                                                       ("NEXT" :foreground "deep sky blue" :weight bold)
                                                                       ("DONE" :foreground "medium spring green" :weight bold)
                                                                       ("WAITING" :foreground "orange" :weight bold) ("HOLD" :foreground "magenta" :weight bold)
                                                                       ("CANCELLED" :foreground "medium spring green" :weight bold)
                                                                       ("MEETING" :foreground "medium spring green" :weight bold)
                                                                       ("PHONE" :foreground "medium spring green" :weight bold))
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-from-is-user-regexp nil
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-agenda-dim-blocked-tasks nil
 org-mode-hook '(evil-org-mode
                                              #[nil "\300\301\302\303\304$\207"
                                                [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
                                              #[nil "\300\301\302\303\304$\207"
                                                [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
                                              org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
 org-outline-path-complete-in-steps nil
 org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t)) ("WAITING" ("WAITING" . t))
                                                                                              ("HOLD" ("WAITING") ("HOLD" . t)) ("TODO" ("WAITING") ("CANCELLED") ("HOLD"))
                                                                                              ("NEXT" ("WAITING") ("CANCELLED") ("HOLD"))
                                                                                              ("DONE" ("WAITING") ("CANCELLED") ("HOLD")))
 org-stuck-projects '("" nil nil "")
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-agenda-compact-blocks t
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
 org-refile-use-outline-path t
 org-directory "~/Dropbox/org"
 org-insert-mode-line-in-empty-file t
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
                                               org-optimize-window-after-visibility-change)
 org-refile-allow-creating-parent-nodes 'confirm
 org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)")
                                                          (sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING"))
 org-modules '(org-bbdb org-bibtex org-habit org-irc)
 org-fast-tag-selection-single-key 'expert
 org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el") ("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-babel-after-execute-hook '(bh/display-inline-images)
 org-completion-use-ido t
 org-indirect-buffer-display 'current-window
 org-babel-load-languages '((emacs-lisp . t) (latex . t) (R . t) (dot . t) (python . t) (org . t))
 org-habit-graph-column 50
 org-agenda-mode-hook '(hl-line-mode)
 org-agenda-files '("~/Dropbox/org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer bh/remove-empty-drawer-on-clock-out)
 org-refile-target-verify-function 'bh/verify-refile-target
 org-tag-alist '((:startgroup) ("@errand" . 101) ("@office" . 111) ("@home" . 104) (:endgroup) ("WAITING" . 87)
                                              ("HOLD" . 72) ("PERSONAL" . 112) ("WORK" . 119) ("ORG" . 79) ("NOTE" . 110) ("CANCELLED" . 99)
                                              ("FLAGGED" . 63))
 )


--
Ryan
rschuet@gmail.com<mailto:rschuet@gmail.com>



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

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

* Re: Babel error on init with 8.3.1
  2015-08-10 23:18         ` Cook, Malcolm
@ 2015-08-11  0:14           ` Peter Salazar
  2015-08-11  1:36             ` Kyle Meyer
  2015-08-11 15:35             ` Cook, Malcolm
  0 siblings, 2 replies; 13+ messages in thread
From: Peter Salazar @ 2015-08-11  0:14 UTC (permalink / raw)
  To: Cook, Malcolm; +Cc: emacs-orgmode@gnu.org, Ryan Schuetzler

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

Thanks. Tried that, but then when I launch regular Emacs with my init file,
I still get this error:
https://gist.github.com/512c4934d5351a47b2a1

Any other ideas?

On Mon, Aug 10, 2015 at 7:18 PM, Cook, Malcolm <MEC@stowers.org> wrote:

> Try that recipe again but without the org-reload.  That is forcing org to
> load.  You don’t WANT org loaded when you build it again inside the package
> manager.
>
>
>
> *From:* Peter Salazar [mailto:cycleofsong@gmail.com]
> *Sent:* Monday, August 10, 2015 4:30 PM
> *To:* Cook, Malcolm <MEC@stowers.org>
> *Cc:* Ryan Schuetzler <rschuet@gmail.com>; emacs-orgmode@gnu.org
>
> *Subject:* Re: [O] Babel error on init with 8.3.1
>
>
>
> Update: the install of org-plus-contrib was eventually successful, but it
> seems that my attempt to launch a GUI version Emacs -Q didn't work.
>
>
>
> Here's what I did:
>
>
>
> $ open -a /Applications/Emacs.app --args --no-init
>
>
>
> C-u M-x org-reload
>
>
>
> package-list-packages
>
>
>
> select and delete org-plus-contrib
>
>
>
> package-install org-plus-contrib
>
>
>
> But then when I quit and launch Emacs without the --no-init argument, I
> still get:
>
>
>
> Debugger entered--Lisp error: (void-variable org-planning-line-re)
>
>   org-element--current-element(168330 element planning nil)
>
>
>
> ...which I think means org-plus-contrib was not successfully upgraded.
>
>
>
> Any thoughts? Thanks!
>
>
>
>
>
>
>
> On Mon, Aug 10, 2015 at 4:43 PM, Peter Salazar <cycleofsong@gmail.com>
> wrote:
>
> I'm trying to do this for my other install of Emacs (which uses Spacemacs)
> and now I'm running into problems. I'm using GUI Emacs on Mac OSX
> (from brew install --with-cocoa --srgb emacs).
>
>
>
> When I do open -a /Applications/Emacs.app --args --no-init --eval "(progn
> (require 'package) (add-to-list 'package-archives '(\"org\" . \"
> http://orgmode.org/elpa/\")) (package-initialize)
> (package-refresh-contents) (package-install 'org-plus-contrib))" it never
> gets pastContacting host: orgmode.org:80. It just shows that message
> indefinitely...
>
>
>
> When I try eval-ing package.el first, I get package-desc-reqs accessing a
> non-package-desc and I can't install org-plus-contrib. Any suggestions?
>
>
>
>
>
> On Mon, Aug 10, 2015 at 1:08 PM, Cook, Malcolm <MEC@stowers.org> wrote:
>
> Hi – here is my more detailed variation that just got upvoted at
> stackoverflow  for resolving essentially the same problem:
>
>
>
>
> http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio
>
>
>
>
>
>
>
> *From:* emacs-orgmode-bounces+mec=stowers.org@gnu.org [mailto:
> emacs-orgmode-bounces+mec=stowers.org@gnu.org] *On Behalf Of *Cook,
> Malcolm
> *Sent:* Monday, August 10, 2015 9:32 AM
> *To:* 'Ryan Schuetzler' <rschuet@gmail.com>; emacs-orgmode@gnu.org
> *Subject:* Re: [O] Babel error on init with 8.3.1
>
>
>
> When you “ updated org through the package manager in Emacs,” I believe
> you need to make sure org has not been loaded at all.
>
>
>
> My practice is to exec `emacs –Q`, immediately update with package
> manager, then quit and restart emacs without the –Q.
>
>
>
> Let us know….
>
>
>
> *From:* emacs-orgmode-bounces+mec=stowers.org@gnu.org [
> mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org
> <emacs-orgmode-bounces+mec=stowers.org@gnu.org>] *On Behalf Of *Ryan
> Schuetzler
> *Sent:* Friday, August 07, 2015 9:41 AM
> *To:* emacs-orgmode@gnu.org
> *Subject:* [O] Babel error on init with 8.3.1
>
>
>
> On startup with the latest 8.3 release I now get an error:
>
>
>
>   Invalid function: org-babel-header-args-safe-fn
>
>
>
> I updated org through the package manager in Emacs, and I'm using it on
> Windows 10. Below is my full org configuration, but I've found that when I
> comment out the following section of my init, I don't receive any errors:
>
>
>
> (add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)
>
>
>
> (setq org-babel-results-keyword "results")
>
>
>
> (defun bh/display-inline-images ()
>
>   (condition-case nil
>
>   (org-display-inline-images)
>
> (error nil)))
>
>
>
> (org-babel-do-load-languages
>
>  (quote org-babel-load-languages)
>
>  (quote ((emacs-lisp . t)
>
>           (latex . t)
>
>           (R . t)
>
>           (dot . t)
>
>           (python . t)
>
>           (org . t))))
>
>
>
> (setq org-confirm-babel-evaluate nil)
>
>
>
> FULL Config:
>
>
>
> Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
>
>  of 2015-07-11 on KAEL
>
> Package: Org-mode version 8.3.1 (8.3.1-elpa @
> c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)
>
>
>
> current state:
>
> ==============
>
> (setq
>
>  org-export-backends '(ascii html icalendar latex md odt)
>
>  org-agenda-tags-todo-honor-ignore-options t
>
>  org-tab-first-hook '(org-hide-block-toggle-maybe
> org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
>
>  org-babel-results-keyword "results"
>
>  org-speed-command-hook '(org-speed-command-default-hook
> org-babel-speed-command-hook)
>
>  org-occur-hook '(org-first-headline-recenter)
>
>  org-metaup-hook '(org-babel-load-in-session-maybe)
>
>  org-confirm-shell-link-function 'yes-or-no-p
>
>  org-agenda-exporter-settings '((ps-number-of-columns 1)
> (ps-landscape-mode t) (htmlize-output-type (quote cc)))
>
>  org-agenda-custom-commands '(("N" "Notes" tags "NOTE"
>
>
>   ((org-agenda-overriding-header "Notes") (org-tags-match-list-sublevels
> t)))
>
>
>  ("h" "Habits" tags-todo "STYLE=\"habit\""
>
>
>   ((org-agenda-overriding-header "Habits")
>
>
> (org-agenda-sorting-strategy (quote (todo-state-down effort-up
> category-keep))))
>
>
>   )
>
>
>  (" " "Agenda"
>
>
>   ((agenda "" nil)
>
>
> (tags "REFILE"
>
>
> ((org-agenda-overriding-header "Tasks to Refile")
>
>
>  (org-tags-match-list-sublevels nil))
>
>
> )
>
>
> (tags-todo "-CANCELLED/!"
>
>
> ((org-agenda-overriding-header "Stuck Projects")
>
>
>  (org-agenda-skip-function (quote bh/skip-non-stuck-projects))
>
>
>  (org-agenda-sorting-strategy (quote (category-keep))))
>
>
> )
>
>
> (tags-todo "-HOLD-CANCELLED/!"
>
>
>
> ((org-agenda-overriding-header "Projects")
>
>
>  (org-agenda-skip-function (quote bh/skip-non-projects))
>
>
>  (org-tags-match-list-sublevels (quote indented))
>
>
>  (org-agenda-sorting-strategy (quote (category-keep))))
>
>
> )
>
>
> (tags-todo "-CANCELLED/!NEXT"
>
>
> ((org-agenda-overriding-header
>
>
>   (concat "Project Next Tasks"
>
>
> (if bh/hide-scheduled-and-waiting-next-tasks ""
>
>
> " (including WAITING and SCHEDULED tasks)")
>
>
> )
>
>
>   )
>
>
>  (org-agenda-skip-function (quote
> bh/skip-projects-and-habits-and-single-tasks))
>
>
>  (org-tags-match-list-sublevels t)
>
>
>  (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-sorting-strategy (quote (todo-state-down effort-up
> category-keep))))
>
>
> )
>
>
> (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
>
>
> ((org-agenda-overriding-header
>
>
>   (concat "Standalone Tasks"
>
>
> (if bh/hide-scheduled-and-waiting-next-tasks ""
>
>
> " (including WAITING and SCHEDULED tasks)")
>
>
> )
>
>
>   )
>
>
>  (org-agenda-skip-function (quote bh/skip-project-tasks))
>
>
>  (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-sorting-strategy (quote (category-keep))))
>
>
> )
>
>
> (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
>
>
> ((org-agenda-overriding-header
>
>
>   (concat "Project Subtasks"
>
>
> (if bh/hide-scheduled-and-waiting-next-tasks ""
>
>
> " (including WAITING and SCHEDULED tasks)")
>
>
> )
>
>
>   )
>
>
>  (org-agenda-skip-function (quote bh/skip-non-project-tasks))
>
>
>  (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-sorting-strategy (quote (category-keep))))
>
>
> )
>
>
> (tags-todo "-CANCELLED+WAITING|HOLD/!"
>
>
> ((org-agenda-overriding-header "Waiting and Postponed Tasks")
>
>
>  (org-agenda-skip-function (quote bh/skip-stuck-projects))
>
>
>  (org-tags-match-list-sublevels nil) (org-agenda-todo-ignore-scheduled t)
>
>
>  (org-agenda-todo-ignore-deadlines t))
>
>
> )
>
>
> (tags "-REFILE/"
>
>
> ((org-agenda-overriding-header "Tasks to Archive")
>
>
>  (org-agenda-skip-function (quote bh/skip-non-archivable-tasks))
>
>
>  (org-tags-match-list-sublevels nil))
>
>
> )
>
>
> )
>
>
>   nil)
>
>
>  )
>
>  org-return-follows-link t
>
>  org-default-notes-file "~/Dropbox/org/inbox.org"
>
>  org-todo-keyword-faces '(("TODO" :foreground "tomato" :weight bold)
>
>
>  ("NEXT" :foreground "deep sky blue" :weight bold)
>
>
>  ("DONE" :foreground "medium spring green" :weight bold)
>
>
>  ("WAITING" :foreground "orange" :weight bold) ("HOLD" :foreground
> "magenta" :weight bold)
>
>
>  ("CANCELLED" :foreground "medium spring green" :weight bold)
>
>
>  ("MEETING" :foreground "medium spring green" :weight bold)
>
>
>  ("PHONE" :foreground "medium spring green" :weight bold))
>
>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>
>  org-from-is-user-regexp nil
>
>  org-src-mode-hook '(org-src-babel-configure-edit-buffer
> org-src-mode-configure-edit-buffer)
>
>  org-agenda-before-write-hook '(org-agenda-add-entry-text)
>
>  org-babel-pre-tangle-hook '(save-buffer)
>
>  org-agenda-dim-blocked-tasks nil
>
>  org-mode-hook '(evil-org-mode
>
>                                               #[nil
> "\300\301\302\303\304$\207"
>
>                                                 [org-add-hook
> change-major-mode-hook org-show-block-all append local] 5]
>
>                                               #[nil
> "\300\301\302\303\304$\207"
>
>                                                 [org-add-hook
> change-major-mode-hook org-babel-show-result-all append local] 5]
>
>                                               org-babel-result-hide-spec
> org-babel-hide-all-hashes)
>
>  org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
>
>  org-outline-path-complete-in-steps nil
>
>  org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t)) ("WAITING"
> ("WAITING" . t))
>
>
>
> ("HOLD" ("WAITING") ("HOLD" . t)) ("TODO" ("WAITING") ("CANCELLED")
> ("HOLD"))
>
>
> ("NEXT" ("WAITING") ("CANCELLED") ("HOLD"))
>
>
> ("DONE" ("WAITING") ("CANCELLED") ("HOLD")))
>
>  org-stuck-projects '("" nil nil "")
>
>  org-archive-hook '(org-attach-archive-delete-maybe)
>
>  org-agenda-compact-blocks t
>
>  org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
> org-babel-execute-safely-maybe)
>
>  org-refile-use-outline-path t
>
>  org-directory "~/Dropbox/org"
>
>  org-insert-mode-line-in-empty-file t
>
>  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
> org-cycle-show-empty-lines
>
>
>  org-optimize-window-after-visibility-change)
>
>  org-refile-allow-creating-parent-nodes 'confirm
>
>  org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)")
>
>                                                           (sequence
> "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING"))
>
>  org-modules '(org-bbdb org-bibtex org-habit org-irc)
>
>  org-fast-tag-selection-single-key 'expert
>
>  org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el")
> ("elisp" . "el"))
>
>  org-confirm-elisp-link-function 'yes-or-no-p
>
>  org-metadown-hook '(org-babel-pop-to-session-maybe)
>
>  org-babel-after-execute-hook '(bh/display-inline-images)
>
>  org-completion-use-ido t
>
>  org-indirect-buffer-display 'current-window
>
>  org-babel-load-languages '((emacs-lisp . t) (latex . t) (R . t) (dot . t)
> (python . t) (org . t))
>
>  org-habit-graph-column 50
>
>  org-agenda-mode-hook '(hl-line-mode)
>
>  org-agenda-files '("~/Dropbox/org")
>
>  org-clock-out-hook '(org-clock-remove-empty-clock-drawer
> bh/remove-empty-drawer-on-clock-out)
>
>  org-refile-target-verify-function 'bh/verify-refile-target
>
>  org-tag-alist '((:startgroup) ("@errand" . 101) ("@office" . 111)
> ("@home" . 104) (:endgroup) ("WAITING" . 87)
>
>                                               ("HOLD" . 72) ("PERSONAL" .
> 112) ("WORK" . 119) ("ORG" . 79) ("NOTE" . 110) ("CANCELLED" . 99)
>
>                                               ("FLAGGED" . 63))
>
>  )
>
>
>
>
> --
>
> Ryan
>
> rschuet@gmail.com
>
>
>
>
>

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

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

* Re: Babel error on init with 8.3.1
  2015-08-11  0:14           ` Peter Salazar
@ 2015-08-11  1:36             ` Kyle Meyer
  2015-08-11  2:45               ` Peter Salazar
  2015-08-11 15:35             ` Cook, Malcolm
  1 sibling, 1 reply; 13+ messages in thread
From: Kyle Meyer @ 2015-08-11  1:36 UTC (permalink / raw)
  To: Peter Salazar; +Cc: Ryan Schuetzler, Cook, Malcolm, emacs-orgmode@gnu.org

Peter Salazar <cycleofsong@gmail.com> wrote:
> Thanks. Tried that, but then when I launch regular Emacs with my init file,
> I still get this error:
> https://gist.github.com/512c4934d5351a47b2a1
>
> Any other ideas?

Maybe the builtin Org is being loaded before your elpa version.  (In the
backtrace you posted from your startup, I see a find-file call with an
Org file.)  What does org-version say?

> On Mon, Aug 10, 2015 at 7:18 PM, Cook, Malcolm <MEC@stowers.org> wrote:
>
>> Try that recipe again but without the org-reload.  That is forcing org to
>> load.  You don’t WANT org loaded when you build it again inside the package
>> manager.

Yes, I agree that it is better to install in a clean session without Org
loaded.  The idea behind the other recipe is that, if an Org install
with compilation issues is already loaded, it loads the uncompiled files
from the new Org version.

This seems to help in my tests.

1. emacs -Q --eval '(setq user-emacs-directory "/tmp/emacsd/")' -l /tmp/scratch.el

   ,---- /tmp/scratch.el
   | (require 'package)
   | (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
   | (package-initialize)
   `----

2. Load the builtin Org.

3. Go to list-packages and install 'org-20150810'.  This results in many
   compilation issues (see end of message).

4. C-u M-x org-reload

5. Uninstall and then reinstall with package-list-packages.  This gets
   rid of all compilation issues except

    org-gnus.el:305:1:Warning: the following functions might not be defined at runtime:
        gnus-summary-goto-subject, gnus-summary-select-article,
        gnus-activate-group, gnus-group-read-group,
        gnus-summary-goto-article, gnus-group-jump-to-group

If I instead run #1-3, restart Emacs and then run #5, I get

    ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
    ob-C.el:118:34:Warning: `(c cpp)' is a malformed function

    In org-babel-C-val-to-C-type:
    ob-C.el:310:45:Warning: `t' called as a function

    In org-babel-C-utility-header-to-C:
    ob-C.el:387:8:Warning: `(c cpp)' is a malformed function

    In org-babel-C-header-to-C:
    ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
    ob-C.el:413:33:Warning: `(c cpp)' is a malformed function

    In end of data:
    ob-C.el:440:1:Warning: the following functions are not known to be defined: case, c, cpp,
        d, t

in addition to the org-gnus-related message above.

If I run the same test as above but don't trigger an Org load before
installing 'org-20150810' (i.e., #1 and then #3), there are no
compilation issues.

,---- Compilation issues when installing 'org-20150810' with 8.2.10 loaded
| In org-babel-C-execute:
| ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
| ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
|
| In org-babel-C-val-to-C-type:
| ob-C.el:310:45:Warning: `t' called as a function
|
| In org-babel-C-utility-header-to-C:
| ob-C.el:387:8:Warning: `(c cpp)' is a malformed function
|
| In org-babel-C-header-to-C:
| ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
| ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
|
| In end of data:
| ob-C.el:440:1:Warning: the following functions are not known to be defined: case, c, cpp,
|     d, t
| ob-R.el:72:11:Warning: reference to free variable `org-babel-safe-header-args'
|
| In end of data:
| ob-R.el:470:1:Warning: the following functions are not known to be defined:
|     org-babel-header-args-safe-fn, org-babel-graphical-output-file
|
| In org-babel-get-src-block-info:
| ob-core.el:266:30:Warning: org-babel-named-src-block-regexp-for-name called
|     with 0 arguments, but requires 1
|
| In org-babel-set-current-result-hash:
| ob-core.el:1268:8:Warning: function org-babel-set-current-result-hash used to
|     take 1 argument, now takes 2
|
| In org-babel-exp-src-block:
| ob-exp.el:133:59:Warning: reference to free variable
|     `org-babel-exp-reference-buffer'
|
| In org-babel-exp-process-buffer:
| ob-exp.el:157:8:Warning: function org-babel-exp-process-buffer used to take 0
|     arguments, now takes 1
|
| In org-babel-exp-do-export:
| ob-exp.el:328:50:Warning: org-babel-exp-code called with 2 arguments, but
|     accepts only 1
| ob-exp.el:331:39:Warning: org-babel-exp-code called with 2 arguments, but
|     accepts only 1
|
| In org-babel-exp-code:
| ob-exp.el:375:8:Warning: function org-babel-exp-code used to take 1 argument,
|     now takes 2
| ob-exp.el:383:21:Warning: reference to free variable
|     `org-babel-exp-reference-buffer'
|
| In org-babel-exp-results:
| ob-exp.el:414:27:Warning: reference to free variable
|     `org-babel-exp-reference-buffer'
|
| In end of data:
| ob-exp.el:450:1:Warning: the function `org-babel-remove-inline-result' is not
|     known to be defined.
|
| In org-babel-lob-execute:
| ob-lob.el:159:35:Warning: org-babel-current-result-hash called with 1
|     argument, but accepts only 0
| ob-lob.el:171:12:Warning: org-babel-set-current-result-hash called with 2
|     arguments, but accepts only 1
|
| In end of data:
| ob-maxima.el:128:1:Warning: the function `org-babel-graphical-output-file' is
|     not known to be defined.
|
| In end of data:
| ob-octave.el:277:1:Warning: the function `org-babel-graphical-output-file' is
|     not known to be defined.
|
| In org-babel-ref-resolve:
| ob-ref.el:129:30:Warning: reference to free variable
|     `org-babel-exp-reference-buffer'
|
| In org-agenda-show-1:
| org-agenda.el:8704:10:Warning: org-cycle-hide-drawers called with 2 arguments,
|     but accepts only 1
|
| In org-agenda-insert-diary-as-top-level:
| org-agenda.el:9518:4:Warning: org-insert-heading called with 3 arguments, but
|     accepts only 0-2
|
| In end of data:
| org-agenda.el:10193:1:Warning: the following functions are not known to be defined: org-get-at-eol,
|     org-end-of-meta-data, org-show-set-visibility
|
| In end of data:
| org-capture.el:1844:1:Warning: the function `org-end-of-meta-data' is not
|     known to be defined.
|
| In org-clock-jump-to-current-clock:
| org-clock.el:960:23:Warning: org-flag-drawer called with 2 arguments, but
|     accepts only 1
|
| In org-clock-find-position:
| org-clock.el:1517:35:Warning: reference to free variable
|     `org-planning-line-re'
|
| In org-clock-remove-empty-clock-drawer:
| org-clock.el:1659:12:Warning: org-remove-empty-drawer-at called with 1
|     argument, but requires 2
|
| In org-clock-cancel:
| org-clock.el:1729:17:Warning: org-remove-empty-drawer-at called with 1
|     argument, but requires 2
|
| In end of data:
| org-clock.el:3036:1:Warning: the function `font-lock-ensure' is not known to
|     be defined.
|
| In end of data:
| org-colview.el:1605:1:Warning: the following functions are not known to be defined:
|     org-get-priority-face, org-in-commented-heading-p
|
| In org-element--get-node-properties:
| org-element.el:864:29:Warning: reference to free variable
|     `org-planning-line-re'
|
| In org-element--get-time-properties:
| org-element.el:879:45:Warning: reference to free variable
|     `org-planning-line-re'
|
| In org-element-property-drawer-parser:
| org-element.el:1422:8:Warning: function org-element-property-drawer-parser
|     used to take 2 arguments, now takes 1
|
| In org-element--current-element:
| org-element.el:3747:46:Warning: reference to free variable
|     `org-planning-line-re'
| org-element.el:3757:21:Warning: reference to free variable `org-clock-line-re'
|
| In org-element-interpret-data:
| org-element.el:4397:8:Warning: function org-element-interpret-data used to
|     take 1-2 arguments, now takes 1
|
| In org-element-at-point:
| org-element.el:5645:8:Warning: function org-element-at-point used to take 0-1
|     arguments, now takes 0
|
| In end of data:
| org-element.el:6006:1:Warning: the function `org-macro-extract-arguments' is
|     not known to be defined.
|
| In end of data:
| org-gnus.el:305:1:Warning: the following functions might not be defined at runtime:
|     gnus-summary-goto-subject, gnus-summary-select-article,
|     gnus-activate-group, gnus-group-read-group,
|     gnus-summary-goto-article, gnus-group-jump-to-group
|
| In org-habit-parse-todo:
| org-habit.el:207:19:Warning: reference to free variable
|     `org-ts-regexp-inactive'
| In org-edit-src-code:
| org-src.el:814:8:Warning: function org-edit-src-code used to take 0-3
|     arguments, now takes 0-2
|
| In org-edit-src-exit:
| org-src.el:933:8:Warning: function org-edit-src-exit used to take 0-1
|     arguments, now takes 0
|
| In end of data:
| org-timer.el:510:1:Warning: the function `org-get-at-eol' is not known to be
|     defined.
|
| In org-cycle-hide-drawers:
| org.el:7202:18:Warning: org-flag-drawer called with 2 arguments, but accepts
|     only 1
|
| In org-tree-to-indirect-buffer:
| org.el:7632:17:Warning: org-get-indirect-buffer called with 2 arguments, but
|     accepts only 0-1
|
| In org-clone-subtree-with-time-shift:
| org.el:8805:18:Warning: org-remove-empty-drawer-at called with 1 argument, but
|     requires 2
|
| In org-insert-all-links:
| org.el:10187:8:Warning: function org-insert-all-links used to take 0-1
|     arguments, now takes 1-3
|
| In org-link-search:
| org.el:11016:8:Warning: function org-link-search used to take 1-4 arguments,
|     now takes 1-3
|
| In org-store-log-note:
| org.el:13768:12:Warning: org-remove-empty-drawer-at called with 1 argument,
|     but requires 2
|
| In org-remove-empty-drawer-at:
| org.el:13809:8:Warning: function org-remove-empty-drawer-at used to take 2
|     arguments, now takes 1
|
| In org-tags-expand:
| org.el:14648:34:Warning: org-tags-expand called with 4 arguments, but accepts
|     only 1-3
|
| In org-get-property-block:
| org.el:15547:8:Warning: function org-get-property-block used to take 0-3
|     arguments, now takes 0-2
|
| In org-entry-properties:
| org.el:15658:8:Warning: function org-entry-properties used to take 0-3
|     arguments, now takes 0-2
|
| In org-entry-delete:
| org.el:15922:8:Warning: function org-entry-delete used to take 2-3 arguments,
|     now takes 2
|
| In org-delete-property:
| org.el:16381:8:Warning: function org-delete-property used to take 1-2
|     arguments, now takes 1
|
| In org-format-latex:
| org.el:19024:8:Warning: function org-format-latex used to take 1-7 arguments,
|     now takes 1-6
|
| In end of data:
| org.el:25234:1:Warning: the following functions are not known to be defined:
|     font-lock-ensure, org-edit-table.el, org-edit-export-block,
|     org-edit-footnote-reference
|
| In end of data:
| ox-ascii.el:2138:1:Warning: the function `org-element-lineage' is not known to
|     be defined.
|
| In end of data:
| ox-beamer.el:1191:1:Warning: the function `org-element-lineage' is not known
|     to be defined.
|
| In end of data:
| ox-html.el:3617:1:Warning: the following functions are not known to be defined:
|     font-lock-ensure, org-link-escape-browser
|
| In end of data:
| ox-icalendar.el:964:1:Warning: the function `org-element-lineage' is not known
|     to be defined.
|
| In end of data:
| ox-latex.el:3540:1:Warning: the following functions are not known to be defined:
|     org-element-lineage, org-element-insert-before,
|     org-element-extract-element
|
| In end of data:
| ox-odt.el:4417:1:Warning: the following functions are not known to be defined:
|     org-element-lineage, font-lock-ensure
|
| In end of data:
| ox-org.el:328:1:Warning: the function `font-lock-ensure' is not known to be
|     defined.
|
| In end of data:
| ox-texinfo.el:1673:1:Warning: the function `org-element-lineage' is not known
|     to be defined.
|
| In org-export-as:
| ox.el:2933:11:Warning: org-macro-replace-all called with 3 arguments, but
|     accepts only 1
| ox.el:2972:42:Warning: org-macro-replace-all called with 3 arguments, but
|     accepts only 1
|
| In org-export--inclusion-absolute-lines:
| ox.el:3314:33:Warning: reference to free variable `org-planning-line-re'
|
| In org-export-execute-babel-code:
| ox.el:3497:22:Warning: org-babel-exp-process-buffer called with 1 argument,
|     but accepts only 0
|
| In end of data:
| ox.el:6446:1:Warning: the following functions are not known to be defined:
|     org-element-extract-element, org-element-insert-before,
|     org-element-create, org-element-lineage, org-element-copy,
|     org-element-remove-indentation, org-element-secondary-p
`----

--
Kyle

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

* Re: Babel error on init with 8.3.1
  2015-08-11  1:36             ` Kyle Meyer
@ 2015-08-11  2:45               ` Peter Salazar
  2015-08-11  3:46                 ` Kyle Meyer
  0 siblings, 1 reply; 13+ messages in thread
From: Peter Salazar @ 2015-08-11  2:45 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: Ryan Schuetzler, Cook, Malcolm, emacs-orgmode@gnu.org

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

Did that, same error. When I run $ emacs -Q and then immediately do
org-version, I get: Org-mode version 8.2.10 (release_8.2.10 @
/usr/local/Cellar/emacs/24.5/share/emacs/24.5/lisp/org/)

Same thing if I run emacs -Q --eval '(setq user-emacs-directory
"~/Downloads/tmp/emacsd/")' -l ~/Downloads/tmp/emacsd/scratch.el

Is this part of the problem, or is that part OK?



On Mon, Aug 10, 2015 at 9:36 PM, Kyle Meyer <kyle@kyleam.com> wrote:

> Peter Salazar <cycleofsong@gmail.com> wrote:
> > Thanks. Tried that, but then when I launch regular Emacs with my init
> file,
> > I still get this error:
> > https://gist.github.com/512c4934d5351a47b2a1
> >
> > Any other ideas?
>
> Maybe the builtin Org is being loaded before your elpa version.  (In the
> backtrace you posted from your startup, I see a find-file call with an
> Org file.)  What does org-version say?
>
> > On Mon, Aug 10, 2015 at 7:18 PM, Cook, Malcolm <MEC@stowers.org> wrote:
> >
> >> Try that recipe again but without the org-reload.  That is forcing org
> to
> >> load.  You don’t WANT org loaded when you build it again inside the
> package
> >> manager.
>
> Yes, I agree that it is better to install in a clean session without Org
> loaded.  The idea behind the other recipe is that, if an Org install
> with compilation issues is already loaded, it loads the uncompiled files
> from the new Org version.
>
> This seems to help in my tests.
>
> 1. emacs -Q --eval '(setq user-emacs-directory "/tmp/emacsd/")' -l
> /tmp/scratch.el
>
>    ,---- /tmp/scratch.el
>    | (require 'package)
>    | (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/")
> t)
>    | (package-initialize)
>    `----
>
> 2. Load the builtin Org.
>
> 3. Go to list-packages and install 'org-20150810'.  This results in many
>    compilation issues (see end of message).
>
> 4. C-u M-x org-reload
>
> 5. Uninstall and then reinstall with package-list-packages.  This gets
>    rid of all compilation issues except
>
>     org-gnus.el:305:1:Warning: the following functions might not be
> defined at runtime:
>         gnus-summary-goto-subject, gnus-summary-select-article,
>         gnus-activate-group, gnus-group-read-group,
>         gnus-summary-goto-article, gnus-group-jump-to-group
>
> If I instead run #1-3, restart Emacs and then run #5, I get
>
>     ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
>     ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
>
>     In org-babel-C-val-to-C-type:
>     ob-C.el:310:45:Warning: `t' called as a function
>
>     In org-babel-C-utility-header-to-C:
>     ob-C.el:387:8:Warning: `(c cpp)' is a malformed function
>
>     In org-babel-C-header-to-C:
>     ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
>     ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
>
>     In end of data:
>     ob-C.el:440:1:Warning: the following functions are not known to be
> defined: case, c, cpp,
>         d, t
>
> in addition to the org-gnus-related message above.
>
> If I run the same test as above but don't trigger an Org load before
> installing 'org-20150810' (i.e., #1 and then #3), there are no
> compilation issues.
>
> ,---- Compilation issues when installing 'org-20150810' with 8.2.10 loaded
> | In org-babel-C-execute:
> | ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
> | ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
> |
> | In org-babel-C-val-to-C-type:
> | ob-C.el:310:45:Warning: `t' called as a function
> |
> | In org-babel-C-utility-header-to-C:
> | ob-C.el:387:8:Warning: `(c cpp)' is a malformed function
> |
> | In org-babel-C-header-to-C:
> | ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
> | ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
> |
> | In end of data:
> | ob-C.el:440:1:Warning: the following functions are not known to be
> defined: case, c, cpp,
> |     d, t
> | ob-R.el:72:11:Warning: reference to free variable
> `org-babel-safe-header-args'
> |
> | In end of data:
> | ob-R.el:470:1:Warning: the following functions are not known to be
> defined:
> |     org-babel-header-args-safe-fn, org-babel-graphical-output-file
> |
> | In org-babel-get-src-block-info:
> | ob-core.el:266:30:Warning: org-babel-named-src-block-regexp-for-name
> called
> |     with 0 arguments, but requires 1
> |
> | In org-babel-set-current-result-hash:
> | ob-core.el:1268:8:Warning: function org-babel-set-current-result-hash
> used to
> |     take 1 argument, now takes 2
> |
> | In org-babel-exp-src-block:
> | ob-exp.el:133:59:Warning: reference to free variable
> |     `org-babel-exp-reference-buffer'
> |
> | In org-babel-exp-process-buffer:
> | ob-exp.el:157:8:Warning: function org-babel-exp-process-buffer used to
> take 0
> |     arguments, now takes 1
> |
> | In org-babel-exp-do-export:
> | ob-exp.el:328:50:Warning: org-babel-exp-code called with 2 arguments, but
> |     accepts only 1
> | ob-exp.el:331:39:Warning: org-babel-exp-code called with 2 arguments, but
> |     accepts only 1
> |
> | In org-babel-exp-code:
> | ob-exp.el:375:8:Warning: function org-babel-exp-code used to take 1
> argument,
> |     now takes 2
> | ob-exp.el:383:21:Warning: reference to free variable
> |     `org-babel-exp-reference-buffer'
> |
> | In org-babel-exp-results:
> | ob-exp.el:414:27:Warning: reference to free variable
> |     `org-babel-exp-reference-buffer'
> |
> | In end of data:
> | ob-exp.el:450:1:Warning: the function `org-babel-remove-inline-result'
> is not
> |     known to be defined.
> |
> | In org-babel-lob-execute:
> | ob-lob.el:159:35:Warning: org-babel-current-result-hash called with 1
> |     argument, but accepts only 0
> | ob-lob.el:171:12:Warning: org-babel-set-current-result-hash called with 2
> |     arguments, but accepts only 1
> |
> | In end of data:
> | ob-maxima.el:128:1:Warning: the function
> `org-babel-graphical-output-file' is
> |     not known to be defined.
> |
> | In end of data:
> | ob-octave.el:277:1:Warning: the function
> `org-babel-graphical-output-file' is
> |     not known to be defined.
> |
> | In org-babel-ref-resolve:
> | ob-ref.el:129:30:Warning: reference to free variable
> |     `org-babel-exp-reference-buffer'
> |
> | In org-agenda-show-1:
> | org-agenda.el:8704:10:Warning: org-cycle-hide-drawers called with 2
> arguments,
> |     but accepts only 1
> |
> | In org-agenda-insert-diary-as-top-level:
> | org-agenda.el:9518:4:Warning: org-insert-heading called with 3
> arguments, but
> |     accepts only 0-2
> |
> | In end of data:
> | org-agenda.el:10193:1:Warning: the following functions are not known to
> be defined: org-get-at-eol,
> |     org-end-of-meta-data, org-show-set-visibility
> |
> | In end of data:
> | org-capture.el:1844:1:Warning: the function `org-end-of-meta-data' is not
> |     known to be defined.
> |
> | In org-clock-jump-to-current-clock:
> | org-clock.el:960:23:Warning: org-flag-drawer called with 2 arguments, but
> |     accepts only 1
> |
> | In org-clock-find-position:
> | org-clock.el:1517:35:Warning: reference to free variable
> |     `org-planning-line-re'
> |
> | In org-clock-remove-empty-clock-drawer:
> | org-clock.el:1659:12:Warning: org-remove-empty-drawer-at called with 1
> |     argument, but requires 2
> |
> | In org-clock-cancel:
> | org-clock.el:1729:17:Warning: org-remove-empty-drawer-at called with 1
> |     argument, but requires 2
> |
> | In end of data:
> | org-clock.el:3036:1:Warning: the function `font-lock-ensure' is not
> known to
> |     be defined.
> |
> | In end of data:
> | org-colview.el:1605:1:Warning: the following functions are not known to
> be defined:
> |     org-get-priority-face, org-in-commented-heading-p
> |
> | In org-element--get-node-properties:
> | org-element.el:864:29:Warning: reference to free variable
> |     `org-planning-line-re'
> |
> | In org-element--get-time-properties:
> | org-element.el:879:45:Warning: reference to free variable
> |     `org-planning-line-re'
> |
> | In org-element-property-drawer-parser:
> | org-element.el:1422:8:Warning: function
> org-element-property-drawer-parser
> |     used to take 2 arguments, now takes 1
> |
> | In org-element--current-element:
> | org-element.el:3747:46:Warning: reference to free variable
> |     `org-planning-line-re'
> | org-element.el:3757:21:Warning: reference to free variable
> `org-clock-line-re'
> |
> | In org-element-interpret-data:
> | org-element.el:4397:8:Warning: function org-element-interpret-data used
> to
> |     take 1-2 arguments, now takes 1
> |
> | In org-element-at-point:
> | org-element.el:5645:8:Warning: function org-element-at-point used to
> take 0-1
> |     arguments, now takes 0
> |
> | In end of data:
> | org-element.el:6006:1:Warning: the function
> `org-macro-extract-arguments' is
> |     not known to be defined.
> |
> | In end of data:
> | org-gnus.el:305:1:Warning: the following functions might not be defined
> at runtime:
> |     gnus-summary-goto-subject, gnus-summary-select-article,
> |     gnus-activate-group, gnus-group-read-group,
> |     gnus-summary-goto-article, gnus-group-jump-to-group
> |
> | In org-habit-parse-todo:
> | org-habit.el:207:19:Warning: reference to free variable
> |     `org-ts-regexp-inactive'
> | In org-edit-src-code:
> | org-src.el:814:8:Warning: function org-edit-src-code used to take 0-3
> |     arguments, now takes 0-2
> |
> | In org-edit-src-exit:
> | org-src.el:933:8:Warning: function org-edit-src-exit used to take 0-1
> |     arguments, now takes 0
> |
> | In end of data:
> | org-timer.el:510:1:Warning: the function `org-get-at-eol' is not known
> to be
> |     defined.
> |
> | In org-cycle-hide-drawers:
> | org.el:7202:18:Warning: org-flag-drawer called with 2 arguments, but
> accepts
> |     only 1
> |
> | In org-tree-to-indirect-buffer:
> | org.el:7632:17:Warning: org-get-indirect-buffer called with 2 arguments,
> but
> |     accepts only 0-1
> |
> | In org-clone-subtree-with-time-shift:
> | org.el:8805:18:Warning: org-remove-empty-drawer-at called with 1
> argument, but
> |     requires 2
> |
> | In org-insert-all-links:
> | org.el:10187:8:Warning: function org-insert-all-links used to take 0-1
> |     arguments, now takes 1-3
> |
> | In org-link-search:
> | org.el:11016:8:Warning: function org-link-search used to take 1-4
> arguments,
> |     now takes 1-3
> |
> | In org-store-log-note:
> | org.el:13768:12:Warning: org-remove-empty-drawer-at called with 1
> argument,
> |     but requires 2
> |
> | In org-remove-empty-drawer-at:
> | org.el:13809:8:Warning: function org-remove-empty-drawer-at used to take
> 2
> |     arguments, now takes 1
> |
> | In org-tags-expand:
> | org.el:14648:34:Warning: org-tags-expand called with 4 arguments, but
> accepts
> |     only 1-3
> |
> | In org-get-property-block:
> | org.el:15547:8:Warning: function org-get-property-block used to take 0-3
> |     arguments, now takes 0-2
> |
> | In org-entry-properties:
> | org.el:15658:8:Warning: function org-entry-properties used to take 0-3
> |     arguments, now takes 0-2
> |
> | In org-entry-delete:
> | org.el:15922:8:Warning: function org-entry-delete used to take 2-3
> arguments,
> |     now takes 2
> |
> | In org-delete-property:
> | org.el:16381:8:Warning: function org-delete-property used to take 1-2
> |     arguments, now takes 1
> |
> | In org-format-latex:
> | org.el:19024:8:Warning: function org-format-latex used to take 1-7
> arguments,
> |     now takes 1-6
> |
> | In end of data:
> | org.el:25234:1:Warning: the following functions are not known to be
> defined:
> |     font-lock-ensure, org-edit-table.el, org-edit-export-block,
> |     org-edit-footnote-reference
> |
> | In end of data:
> | ox-ascii.el:2138:1:Warning: the function `org-element-lineage' is not
> known to
> |     be defined.
> |
> | In end of data:
> | ox-beamer.el:1191:1:Warning: the function `org-element-lineage' is not
> known
> |     to be defined.
> |
> | In end of data:
> | ox-html.el:3617:1:Warning: the following functions are not known to be
> defined:
> |     font-lock-ensure, org-link-escape-browser
> |
> | In end of data:
> | ox-icalendar.el:964:1:Warning: the function `org-element-lineage' is not
> known
> |     to be defined.
> |
> | In end of data:
> | ox-latex.el:3540:1:Warning: the following functions are not known to be
> defined:
> |     org-element-lineage, org-element-insert-before,
> |     org-element-extract-element
> |
> | In end of data:
> | ox-odt.el:4417:1:Warning: the following functions are not known to be
> defined:
> |     org-element-lineage, font-lock-ensure
> |
> | In end of data:
> | ox-org.el:328:1:Warning: the function `font-lock-ensure' is not known to
> be
> |     defined.
> |
> | In end of data:
> | ox-texinfo.el:1673:1:Warning: the function `org-element-lineage' is not
> known
> |     to be defined.
> |
> | In org-export-as:
> | ox.el:2933:11:Warning: org-macro-replace-all called with 3 arguments, but
> |     accepts only 1
> | ox.el:2972:42:Warning: org-macro-replace-all called with 3 arguments, but
> |     accepts only 1
> |
> | In org-export--inclusion-absolute-lines:
> | ox.el:3314:33:Warning: reference to free variable `org-planning-line-re'
> |
> | In org-export-execute-babel-code:
> | ox.el:3497:22:Warning: org-babel-exp-process-buffer called with 1
> argument,
> |     but accepts only 0
> |
> | In end of data:
> | ox.el:6446:1:Warning: the following functions are not known to be
> defined:
> |     org-element-extract-element, org-element-insert-before,
> |     org-element-create, org-element-lineage, org-element-copy,
> |     org-element-remove-indentation, org-element-secondary-p
> `----
>
> --
> Kyle
>

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

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

* Re: Babel error on init with 8.3.1
  2015-08-11  2:45               ` Peter Salazar
@ 2015-08-11  3:46                 ` Kyle Meyer
  0 siblings, 0 replies; 13+ messages in thread
From: Kyle Meyer @ 2015-08-11  3:46 UTC (permalink / raw)
  To: Peter Salazar; +Cc: Ryan Schuetzler, Cook, Malcolm, emacs-orgmode@gnu.org


Peter Salazar <cycleofsong@gmail.com> wrote:
>> Maybe the builtin Org is being loaded before your elpa version.  (In the
>> backtrace you posted from your startup, I see a find-file call with an
>> Org file.)  What does org-version say?
> Did that, same error. When I run $ emacs -Q and then immediately do
> org-version, I get: Org-mode version 8.2.10 (release_8.2.10 @
> /usr/local/Cellar/emacs/24.5/share/emacs/24.5/lisp/org/)

Sorry, I meant if you start up normally.  For example, if I

    (require 'org)

before

    (require 'package)
    (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
    (package-initialize)

then org-version reports

    Org-mode version 8.2.10 (release_8.2.10 @ /tmp/emacsd/elpa/org-20150810/)

instead of

    Org-mode version 8.3.1 (8.3.1-16-gf6aa53-elpa @ /tmp/emacsd/elpa/org-20150810/)

> Same thing if I run emacs -Q --eval '(setq user-emacs-directory
> "~/Downloads/tmp/emacsd/")' -l ~/Downloads/tmp/emacsd/scratch.el
>
> Is this part of the problem, or is that part OK?

Those were just some tests cases where I was trying to reproduce the
compilation issues that occur if installing the ELPA version with 8.2.10
loaded.

--
Kyle

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

* Re: Babel error on init with 8.3.1
  2015-08-11  0:14           ` Peter Salazar
  2015-08-11  1:36             ` Kyle Meyer
@ 2015-08-11 15:35             ` Cook, Malcolm
  2015-08-12  3:04               ` Peter Salazar
  1 sibling, 1 reply; 13+ messages in thread
From: Cook, Malcolm @ 2015-08-11 15:35 UTC (permalink / raw)
  To: 'Peter Salazar'; +Cc: emacs-orgmode@gnu.org, Ryan Schuetzler

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

What about when you try exactly per:

http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio?answertab=active#tab-top

does the “confirm success” step work?


From: Peter Salazar [mailto:cycleofsong@gmail.com]
Sent: Monday, August 10, 2015 7:14 PM
To: Cook, Malcolm <MEC@stowers.org>
Cc: Ryan Schuetzler <rschuet@gmail.com>; emacs-orgmode@gnu.org
Subject: Re: [O] Babel error on init with 8.3.1

Thanks. Tried that, but then when I launch regular Emacs with my init file, I still get this error:
https://gist.github.com/512c4934d5351a47b2a1

Any other ideas?

On Mon, Aug 10, 2015 at 7:18 PM, Cook, Malcolm <MEC@stowers.org<mailto:MEC@stowers.org>> wrote:
Try that recipe again but without the org-reload.  That is forcing org to load.  You don’t WANT org loaded when you build it again inside the package manager.

From: Peter Salazar [mailto:cycleofsong@gmail.com<mailto:cycleofsong@gmail.com>]
Sent: Monday, August 10, 2015 4:30 PM
To: Cook, Malcolm <MEC@stowers.org<mailto:MEC@stowers.org>>
Cc: Ryan Schuetzler <rschuet@gmail.com<mailto:rschuet@gmail.com>>; emacs-orgmode@gnu.org<mailto:emacs-orgmode@gnu.org>

Subject: Re: [O] Babel error on init with 8.3.1

Update: the install of org-plus-contrib was eventually successful, but it seems that my attempt to launch a GUI version Emacs -Q didn't work.

Here's what I did:

$ open -a /Applications/Emacs.app --args --no-init

C-u M-x org-reload

package-list-packages

select and delete org-plus-contrib

package-install org-plus-contrib

But then when I quit and launch Emacs without the --no-init argument, I still get:

Debugger entered--Lisp error: (void-variable org-planning-line-re)
  org-element--current-element(168330 element planning nil)

...which I think means org-plus-contrib was not successfully upgraded.

Any thoughts? Thanks!



On Mon, Aug 10, 2015 at 4:43 PM, Peter Salazar <cycleofsong@gmail.com<mailto:cycleofsong@gmail.com>> wrote:
I'm trying to do this for my other install of Emacs (which uses Spacemacs) and now I'm running into problems. I'm using GUI Emacs on Mac OSX (from brew install --with-cocoa --srgb emacs).

When I do open -a /Applications/Emacs.app --args --no-init --eval "(progn (require 'package) (add-to-list 'package-archives '(\"org\" . \"http://orgmode.org/elpa/\<http://orgmode.org/elpa/%5C>")) (package-initialize) (package-refresh-contents) (package-install 'org-plus-contrib))" it never gets pastContacting host: orgmode.org:80<http://orgmode.org:80>. It just shows that message indefinitely...

When I try eval-ing package.el first, I get package-desc-reqs accessing a non-package-desc and I can't install org-plus-contrib. Any suggestions?


On Mon, Aug 10, 2015 at 1:08 PM, Cook, Malcolm <MEC@stowers.org<mailto:MEC@stowers.org>> wrote:
Hi – here is my more detailed variation that just got upvoted at stackoverflow  for resolving essentially the same problem:

http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio



From: emacs-orgmode-bounces+mec=stowers.org@gnu.org<mailto:stowers.org@gnu.org> [mailto:emacs-orgmode-bounces+mec<mailto:emacs-orgmode-bounces%2Bmec>=stowers.org@gnu.org<mailto:stowers.org@gnu.org>] On Behalf Of Cook, Malcolm
Sent: Monday, August 10, 2015 9:32 AM
To: 'Ryan Schuetzler' <rschuet@gmail.com<mailto:rschuet@gmail.com>>; emacs-orgmode@gnu.org<mailto:emacs-orgmode@gnu.org>
Subject: Re: [O] Babel error on init with 8.3.1

When you “ updated org through the package manager in Emacs,” I believe you need to make sure org has not been loaded at all.

My practice is to exec `emacs –Q`, immediately update with package manager, then quit and restart emacs without the –Q.

Let us know….

From: emacs-orgmode-bounces+mec=stowers.org@gnu.org<mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org> [mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org] On Behalf Of Ryan Schuetzler
Sent: Friday, August 07, 2015 9:41 AM
To: emacs-orgmode@gnu.org<mailto:emacs-orgmode@gnu.org>
Subject: [O] Babel error on init with 8.3.1

On startup with the latest 8.3 release I now get an error:

  Invalid function: org-babel-header-args-safe-fn

I updated org through the package manager in Emacs, and I'm using it on Windows 10. Below is my full org configuration, but I've found that when I comment out the following section of my init, I don't receive any errors:

(add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)

(setq org-babel-results-keyword "results")

(defun bh/display-inline-images ()
  (condition-case nil
  (org-display-inline-images)
(error nil)))

(org-babel-do-load-languages
 (quote org-babel-load-languages)
 (quote ((emacs-lisp . t)
          (latex . t)
          (R . t)
          (dot . t)
          (python . t)
          (org . t))))

(setq org-confirm-babel-evaluate nil)

FULL Config:

Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
 of 2015-07-11 on KAEL
Package: Org-mode version 8.3.1 (8.3.1-elpa @ c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)

current state:
==============
(setq
 org-export-backends '(ascii html icalendar latex md odt)
 org-agenda-tags-todo-honor-ignore-options t
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-babel-results-keyword "results"
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-exporter-settings '((ps-number-of-columns 1) (ps-landscape-mode t) (htmlize-output-type (quote cc)))
 org-agenda-custom-commands '(("N" "Notes" tags "NOTE"
                                                                                    ((org-agenda-overriding-header "Notes") (org-tags-match-list-sublevels t)))
                                                                                   ("h" "Habits" tags-todo "STYLE=\"habit\""
                                                                                    ((org-agenda-overriding-header "Habits")
                                                                                              (org-agenda-sorting-strategy (quote (todo-state-down effort-up category-keep))))
                                                                                    )
                                                                                   (" " "Agenda"
                                                                                    ((agenda "" nil)
                                                                                              (tags "REFILE"
                                                                                              ((org-agenda-overriding-header "Tasks to Refile")
                                                                                               (org-tags-match-list-sublevels nil))
                                                                                              )
                                                                                              (tags-todo "-CANCELLED/!"
                                                                                              ((org-agenda-overriding-header "Stuck Projects")
                                                                                               (org-agenda-skip-function (quote bh/skip-non-stuck-projects))
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-HOLD-CANCELLED/!"
                                                                                              ((org-agenda-overriding-header "Projects")
                                                                                               (org-agenda-skip-function (quote bh/skip-non-projects))
                                                                                               (org-tags-match-list-sublevels (quote indented))
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-CANCELLED/!NEXT"
                                                                                              ((org-agenda-overriding-header
                                                                                                (concat "Project Next Tasks"
                                                                                                          (if bh/hide-scheduled-and-waiting-next-tasks ""
                                                                                                          " (including WAITING and SCHEDULED tasks)")
                                                                                                          )
                                                                                                )
                                                                                               (org-agenda-skip-function (quote bh/skip-projects-and-habits-and-single-tasks))
                                                                                               (org-tags-match-list-sublevels t)
                                                                                               (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-sorting-strategy (quote (todo-state-down effort-up category-keep))))
                                                                                              )
                                                                                              (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
                                                                                              ((org-agenda-overriding-header
                                                                                                (concat "Standalone Tasks"
                                                                                                          (if bh/hide-scheduled-and-waiting-next-tasks ""
                                                                                                          " (including WAITING and SCHEDULED tasks)")
                                                                                                          )
                                                                                                )
                                                                                               (org-agenda-skip-function (quote bh/skip-project-tasks))
                                                                                               (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
                                                                                              ((org-agenda-overriding-header
                                                                                                (concat "Project Subtasks"
                                                                                                          (if bh/hide-scheduled-and-waiting-next-tasks ""
                                                                                                          " (including WAITING and SCHEDULED tasks)")
                                                                                                          )
                                                                                                )
                                                                                               (org-agenda-skip-function (quote bh/skip-non-project-tasks))
                                                                                               (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
                                                                                               (org-agenda-sorting-strategy (quote (category-keep))))
                                                                                              )
                                                                                              (tags-todo "-CANCELLED+WAITING|HOLD/!"
                                                                                              ((org-agenda-overriding-header "Waiting and Postponed Tasks")
                                                                                               (org-agenda-skip-function (quote bh/skip-stuck-projects))
                                                                                               (org-tags-match-list-sublevels nil) (org-agenda-todo-ignore-scheduled t)
                                                                                               (org-agenda-todo-ignore-deadlines t))
                                                                                              )
                                                                                              (tags "-REFILE/"
                                                                                              ((org-agenda-overriding-header "Tasks to Archive")
                                                                                               (org-agenda-skip-function (quote bh/skip-non-archivable-tasks))
                                                                                               (org-tags-match-list-sublevels nil))
                                                                                              )
                                                                                              )
                                                                                    nil)
                                                                                   )
 org-return-follows-link t
 org-default-notes-file "~/Dropbox/org/inbox.org<http://inbox.org>"
 org-todo-keyword-faces '(("TODO" :foreground "tomato" :weight bold)
                                                                       ("NEXT" :foreground "deep sky blue" :weight bold)
                                                                       ("DONE" :foreground "medium spring green" :weight bold)
                                                                       ("WAITING" :foreground "orange" :weight bold) ("HOLD" :foreground "magenta" :weight bold)
                                                                       ("CANCELLED" :foreground "medium spring green" :weight bold)
                                                                       ("MEETING" :foreground "medium spring green" :weight bold)
                                                                       ("PHONE" :foreground "medium spring green" :weight bold))
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-from-is-user-regexp nil
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-agenda-dim-blocked-tasks nil
 org-mode-hook '(evil-org-mode
                                              #[nil "\300\301\302\303\304$\207"
                                                [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
                                              #[nil "\300\301\302\303\304$\207"
                                                [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
                                              org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
 org-outline-path-complete-in-steps nil
 org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t)) ("WAITING" ("WAITING" . t))
                                                                                              ("HOLD" ("WAITING") ("HOLD" . t)) ("TODO" ("WAITING") ("CANCELLED") ("HOLD"))
                                                                                              ("NEXT" ("WAITING") ("CANCELLED") ("HOLD"))
                                                                                              ("DONE" ("WAITING") ("CANCELLED") ("HOLD")))
 org-stuck-projects '("" nil nil "")
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-agenda-compact-blocks t
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
 org-refile-use-outline-path t
 org-directory "~/Dropbox/org"
 org-insert-mode-line-in-empty-file t
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
                                               org-optimize-window-after-visibility-change)
 org-refile-allow-creating-parent-nodes 'confirm
 org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)")
                                                          (sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING"))
 org-modules '(org-bbdb org-bibtex org-habit org-irc)
 org-fast-tag-selection-single-key 'expert
 org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el") ("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-babel-after-execute-hook '(bh/display-inline-images)
 org-completion-use-ido t
 org-indirect-buffer-display 'current-window
 org-babel-load-languages '((emacs-lisp . t) (latex . t) (R . t) (dot . t) (python . t) (org . t))
 org-habit-graph-column 50
 org-agenda-mode-hook '(hl-line-mode)
 org-agenda-files '("~/Dropbox/org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer bh/remove-empty-drawer-on-clock-out)
 org-refile-target-verify-function 'bh/verify-refile-target
 org-tag-alist '((:startgroup) ("@errand" . 101) ("@office" . 111) ("@home" . 104) (:endgroup) ("WAITING" . 87)
                                              ("HOLD" . 72) ("PERSONAL" . 112) ("WORK" . 119) ("ORG" . 79) ("NOTE" . 110) ("CANCELLED" . 99)
                                              ("FLAGGED" . 63))
 )


--
Ryan
rschuet@gmail.com<mailto:rschuet@gmail.com>




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

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

* Re: Babel error on init with 8.3.1
  2015-08-11 15:35             ` Cook, Malcolm
@ 2015-08-12  3:04               ` Peter Salazar
  0 siblings, 0 replies; 13+ messages in thread
From: Peter Salazar @ 2015-08-12  3:04 UTC (permalink / raw)
  To: Cook, Malcolm; +Cc: emacs-orgmode@gnu.org, Ryan Schuetzler

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

Thanks for all the help! I figured out that the problem wasn't with the
installation, but that Emacs was calling org (i.e. the built-in version)
before org-plus-contrib was being loaded. At least I think that's what the
problem was.

What I know for sure is that placing the line (add-to-list 'load-path
".emacs.d/elpa/org-plus-contrib-20150810/") at the very beginning of my
init file made that error message go away, and now Emacs and
org-plus-contrib appear to launch successfully.

However, I'm still getting errors when I do org-refile. Doing org-refile
triggers this error:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  get-file-buffer(nil)
  org-find-base-buffer-visiting(nil)
  org-get-agenda-file-buffer(nil)
  org-refile-get-targets(nil (#("ferry" 0 5 (fontified t line-prefix nil
wrap-prefix #("  " 0 2 (face org-indent)) face org-level-1))))
  org-refile-get-location("Refile subtree \"ferry\" to" nil confirm nil)
  org-refile(nil)
  #<subr call-interactively>(org-refile nil nil)
  ad-Advice-call-interactively(#<subr call-interactively> org-refile)
  apply(ad-Advice-call-interactively #<subr call-interactively> org-refile)
  call-interactively(org-refile)
  org-self-insert-command(1)
  #<subr call-interactively>(org-self-insert-command nil nil)
  ad-Advice-call-interactively(#<subr call-interactively>
org-self-insert-command nil nil)
  apply(ad-Advice-call-interactively #<subr call-interactively>
(org-self-insert-command nil nil))
  call-interactively(org-self-insert-command nil nil)
  command-execute(org-self-insert-command)

I don't think this is an issue with installation, because it still happens
after I do org-reload or C-u org-reload. Does anyone know how I can debug
this?

Thanks!



On Tue, Aug 11, 2015 at 11:35 AM, Cook, Malcolm <MEC@stowers.org> wrote:

> What about when you try exactly per:
>
>
>
>
> http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio?answertab=active#tab-top
>
>
>
> does the “confirm success” step work?
>
>
>
>
>
> *From:* Peter Salazar [mailto:cycleofsong@gmail.com]
> *Sent:* Monday, August 10, 2015 7:14 PM
>
> *To:* Cook, Malcolm <MEC@stowers.org>
> *Cc:* Ryan Schuetzler <rschuet@gmail.com>; emacs-orgmode@gnu.org
> *Subject:* Re: [O] Babel error on init with 8.3.1
>
>
>
> Thanks. Tried that, but then when I launch regular Emacs with my init
> file, I still get this error:
>
> https://gist.github.com/512c4934d5351a47b2a1
>
>
>
> Any other ideas?
>
>
>
> On Mon, Aug 10, 2015 at 7:18 PM, Cook, Malcolm <MEC@stowers.org> wrote:
>
> Try that recipe again but without the org-reload.  That is forcing org to
> load.  You don’t WANT org loaded when you build it again inside the package
> manager.
>
>
>
> *From:* Peter Salazar [mailto:cycleofsong@gmail.com]
> *Sent:* Monday, August 10, 2015 4:30 PM
> *To:* Cook, Malcolm <MEC@stowers.org>
> *Cc:* Ryan Schuetzler <rschuet@gmail.com>; emacs-orgmode@gnu.org
>
>
> *Subject:* Re: [O] Babel error on init with 8.3.1
>
>
>
> Update: the install of org-plus-contrib was eventually successful, but it
> seems that my attempt to launch a GUI version Emacs -Q didn't work.
>
>
>
> Here's what I did:
>
>
>
> $ open -a /Applications/Emacs.app --args --no-init
>
>
>
> C-u M-x org-reload
>
>
>
> package-list-packages
>
>
>
> select and delete org-plus-contrib
>
>
>
> package-install org-plus-contrib
>
>
>
> But then when I quit and launch Emacs without the --no-init argument, I
> still get:
>
>
>
> Debugger entered--Lisp error: (void-variable org-planning-line-re)
>
>   org-element--current-element(168330 element planning nil)
>
>
>
> ...which I think means org-plus-contrib was not successfully upgraded.
>
>
>
> Any thoughts? Thanks!
>
>
>
>
>
>
>
> On Mon, Aug 10, 2015 at 4:43 PM, Peter Salazar <cycleofsong@gmail.com>
> wrote:
>
> I'm trying to do this for my other install of Emacs (which uses Spacemacs)
> and now I'm running into problems. I'm using GUI Emacs on Mac OSX
> (from brew install --with-cocoa --srgb emacs).
>
>
>
> When I do open -a /Applications/Emacs.app --args --no-init --eval "(progn
> (require 'package) (add-to-list 'package-archives '(\"org\" . \"
> http://orgmode.org/elpa/\")) (package-initialize)
> (package-refresh-contents) (package-install 'org-plus-contrib))" it never
> gets pastContacting host: orgmode.org:80. It just shows that message
> indefinitely...
>
>
>
> When I try eval-ing package.el first, I get package-desc-reqs accessing a
> non-package-desc and I can't install org-plus-contrib. Any suggestions?
>
>
>
>
>
> On Mon, Aug 10, 2015 at 1:08 PM, Cook, Malcolm <MEC@stowers.org> wrote:
>
> Hi – here is my more detailed variation that just got upvoted at
> stackoverflow  for resolving essentially the same problem:
>
>
>
>
> http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio
>
>
>
>
>
>
>
> *From:* emacs-orgmode-bounces+mec=stowers.org@gnu.org [mailto:
> emacs-orgmode-bounces+mec=stowers.org@gnu.org] *On Behalf Of *Cook,
> Malcolm
> *Sent:* Monday, August 10, 2015 9:32 AM
> *To:* 'Ryan Schuetzler' <rschuet@gmail.com>; emacs-orgmode@gnu.org
> *Subject:* Re: [O] Babel error on init with 8.3.1
>
>
>
> When you “ updated org through the package manager in Emacs,” I believe
> you need to make sure org has not been loaded at all.
>
>
>
> My practice is to exec `emacs –Q`, immediately update with package
> manager, then quit and restart emacs without the –Q.
>
>
>
> Let us know….
>
>
>
> *From:* emacs-orgmode-bounces+mec=stowers.org@gnu.org [
> mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org
> <emacs-orgmode-bounces+mec=stowers.org@gnu.org>] *On Behalf Of *Ryan
> Schuetzler
> *Sent:* Friday, August 07, 2015 9:41 AM
> *To:* emacs-orgmode@gnu.org
> *Subject:* [O] Babel error on init with 8.3.1
>
>
>
> On startup with the latest 8.3 release I now get an error:
>
>
>
>   Invalid function: org-babel-header-args-safe-fn
>
>
>
> I updated org through the package manager in Emacs, and I'm using it on
> Windows 10. Below is my full org configuration, but I've found that when I
> comment out the following section of my init, I don't receive any errors:
>
>
>
> (add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)
>
>
>
> (setq org-babel-results-keyword "results")
>
>
>
> (defun bh/display-inline-images ()
>
>   (condition-case nil
>
>   (org-display-inline-images)
>
> (error nil)))
>
>
>
> (org-babel-do-load-languages
>
>  (quote org-babel-load-languages)
>
>  (quote ((emacs-lisp . t)
>
>           (latex . t)
>
>           (R . t)
>
>           (dot . t)
>
>           (python . t)
>
>           (org . t))))
>
>
>
> (setq org-confirm-babel-evaluate nil)
>
>
>
> FULL Config:
>
>
>
> Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
>
>  of 2015-07-11 on KAEL
>
> Package: Org-mode version 8.3.1 (8.3.1-elpa @
> c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)
>
>
>
> current state:
>
> ==============
>
> (setq
>
>  org-export-backends '(ascii html icalendar latex md odt)
>
>  org-agenda-tags-todo-honor-ignore-options t
>
>  org-tab-first-hook '(org-hide-block-toggle-maybe
> org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
>
>  org-babel-results-keyword "results"
>
>  org-speed-command-hook '(org-speed-command-default-hook
> org-babel-speed-command-hook)
>
>  org-occur-hook '(org-first-headline-recenter)
>
>  org-metaup-hook '(org-babel-load-in-session-maybe)
>
>  org-confirm-shell-link-function 'yes-or-no-p
>
>  org-agenda-exporter-settings '((ps-number-of-columns 1)
> (ps-landscape-mode t) (htmlize-output-type (quote cc)))
>
>  org-agenda-custom-commands '(("N" "Notes" tags "NOTE"
>
>
>   ((org-agenda-overriding-header "Notes") (org-tags-match-list-sublevels
> t)))
>
>
>  ("h" "Habits" tags-todo "STYLE=\"habit\""
>
>
>   ((org-agenda-overriding-header "Habits")
>
>
> (org-agenda-sorting-strategy (quote (todo-state-down effort-up
> category-keep))))
>
>
>   )
>
>
>  (" " "Agenda"
>
>
>   ((agenda "" nil)
>
>
> (tags "REFILE"
>
>
> ((org-agenda-overriding-header "Tasks to Refile")
>
>
>  (org-tags-match-list-sublevels nil))
>
>
> )
>
>
> (tags-todo "-CANCELLED/!"
>
>
> ((org-agenda-overriding-header "Stuck Projects")
>
>
>  (org-agenda-skip-function (quote bh/skip-non-stuck-projects))
>
>
>  (org-agenda-sorting-strategy (quote (category-keep))))
>
>
> )
>
>
> (tags-todo "-HOLD-CANCELLED/!"
>
>
>
> ((org-agenda-overriding-header "Projects")
>
>
>  (org-agenda-skip-function (quote bh/skip-non-projects))
>
>
>  (org-tags-match-list-sublevels (quote indented))
>
>
>  (org-agenda-sorting-strategy (quote (category-keep))))
>
>
> )
>
>
> (tags-todo "-CANCELLED/!NEXT"
>
>
> ((org-agenda-overriding-header
>
>
>   (concat "Project Next Tasks"
>
>
> (if bh/hide-scheduled-and-waiting-next-tasks ""
>
>
> " (including WAITING and SCHEDULED tasks)")
>
>
> )
>
>
>   )
>
>
>  (org-agenda-skip-function (quote
> bh/skip-projects-and-habits-and-single-tasks))
>
>
>  (org-tags-match-list-sublevels t)
>
>
>  (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-sorting-strategy (quote (todo-state-down effort-up
> category-keep))))
>
>
> )
>
>
> (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
>
>
> ((org-agenda-overriding-header
>
>
>   (concat "Standalone Tasks"
>
>
> (if bh/hide-scheduled-and-waiting-next-tasks ""
>
>
> " (including WAITING and SCHEDULED tasks)")
>
>
> )
>
>
>   )
>
>
>  (org-agenda-skip-function (quote bh/skip-project-tasks))
>
>
>  (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-sorting-strategy (quote (category-keep))))
>
>
> )
>
>
> (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
>
>
> ((org-agenda-overriding-header
>
>
>   (concat "Project Subtasks"
>
>
> (if bh/hide-scheduled-and-waiting-next-tasks ""
>
>
> " (including WAITING and SCHEDULED tasks)")
>
>
> )
>
>
>   )
>
>
>  (org-agenda-skip-function (quote bh/skip-non-project-tasks))
>
>
>  (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
>
>
>  (org-agenda-sorting-strategy (quote (category-keep))))
>
>
> )
>
>
> (tags-todo "-CANCELLED+WAITING|HOLD/!"
>
>
> ((org-agenda-overriding-header "Waiting and Postponed Tasks")
>
>
>  (org-agenda-skip-function (quote bh/skip-stuck-projects))
>
>
>  (org-tags-match-list-sublevels nil) (org-agenda-todo-ignore-scheduled t)
>
>
>  (org-agenda-todo-ignore-deadlines t))
>
>
> )
>
>
> (tags "-REFILE/"
>
>
> ((org-agenda-overriding-header "Tasks to Archive")
>
>
>  (org-agenda-skip-function (quote bh/skip-non-archivable-tasks))
>
>
>  (org-tags-match-list-sublevels nil))
>
>
> )
>
>
> )
>
>
>   nil)
>
>
>  )
>
>  org-return-follows-link t
>
>  org-default-notes-file "~/Dropbox/org/inbox.org"
>
>  org-todo-keyword-faces '(("TODO" :foreground "tomato" :weight bold)
>
>
>  ("NEXT" :foreground "deep sky blue" :weight bold)
>
>
>  ("DONE" :foreground "medium spring green" :weight bold)
>
>
>  ("WAITING" :foreground "orange" :weight bold) ("HOLD" :foreground
> "magenta" :weight bold)
>
>
>  ("CANCELLED" :foreground "medium spring green" :weight bold)
>
>
>  ("MEETING" :foreground "medium spring green" :weight bold)
>
>
>  ("PHONE" :foreground "medium spring green" :weight bold))
>
>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>
>  org-from-is-user-regexp nil
>
>  org-src-mode-hook '(org-src-babel-configure-edit-buffer
> org-src-mode-configure-edit-buffer)
>
>  org-agenda-before-write-hook '(org-agenda-add-entry-text)
>
>  org-babel-pre-tangle-hook '(save-buffer)
>
>  org-agenda-dim-blocked-tasks nil
>
>  org-mode-hook '(evil-org-mode
>
>                                               #[nil
> "\300\301\302\303\304$\207"
>
>                                                 [org-add-hook
> change-major-mode-hook org-show-block-all append local] 5]
>
>                                               #[nil
> "\300\301\302\303\304$\207"
>
>                                                 [org-add-hook
> change-major-mode-hook org-babel-show-result-all append local] 5]
>
>                                               org-babel-result-hide-spec
> org-babel-hide-all-hashes)
>
>  org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
>
>  org-outline-path-complete-in-steps nil
>
>  org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t)) ("WAITING"
> ("WAITING" . t))
>
>
>
> ("HOLD" ("WAITING") ("HOLD" . t)) ("TODO" ("WAITING") ("CANCELLED")
> ("HOLD"))
>
>
> ("NEXT" ("WAITING") ("CANCELLED") ("HOLD"))
>
>
> ("DONE" ("WAITING") ("CANCELLED") ("HOLD")))
>
>  org-stuck-projects '("" nil nil "")
>
>  org-archive-hook '(org-attach-archive-delete-maybe)
>
>  org-agenda-compact-blocks t
>
>  org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
> org-babel-execute-safely-maybe)
>
>  org-refile-use-outline-path t
>
>  org-directory "~/Dropbox/org"
>
>  org-insert-mode-line-in-empty-file t
>
>  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
> org-cycle-show-empty-lines
>
>
>  org-optimize-window-after-visibility-change)
>
>  org-refile-allow-creating-parent-nodes 'confirm
>
>  org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)")
>
>                                                           (sequence
> "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING"))
>
>  org-modules '(org-bbdb org-bibtex org-habit org-irc)
>
>  org-fast-tag-selection-single-key 'expert
>
>  org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el")
> ("elisp" . "el"))
>
>  org-confirm-elisp-link-function 'yes-or-no-p
>
>  org-metadown-hook '(org-babel-pop-to-session-maybe)
>
>  org-babel-after-execute-hook '(bh/display-inline-images)
>
>  org-completion-use-ido t
>
>  org-indirect-buffer-display 'current-window
>
>  org-babel-load-languages '((emacs-lisp . t) (latex . t) (R . t) (dot . t)
> (python . t) (org . t))
>
>  org-habit-graph-column 50
>
>  org-agenda-mode-hook '(hl-line-mode)
>
>  org-agenda-files '("~/Dropbox/org")
>
>  org-clock-out-hook '(org-clock-remove-empty-clock-drawer
> bh/remove-empty-drawer-on-clock-out)
>
>  org-refile-target-verify-function 'bh/verify-refile-target
>
>  org-tag-alist '((:startgroup) ("@errand" . 101) ("@office" . 111)
> ("@home" . 104) (:endgroup) ("WAITING" . 87)
>
>                                               ("HOLD" . 72) ("PERSONAL" .
> 112) ("WORK" . 119) ("ORG" . 79) ("NOTE" . 110) ("CANCELLED" . 99)
>
>                                               ("FLAGGED" . 63))
>
>  )
>
>
>
>
> --
>
> Ryan
>
> rschuet@gmail.com
>
>
>
>
>
>
>

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

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

end of thread, other threads:[~2015-08-12  3:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-07 14:41 Babel error on init with 8.3.1 Ryan Schuetzler
2015-08-09 14:51 ` Kyle Meyer
2015-08-10 14:31 ` Cook, Malcolm
2015-08-10 17:08   ` Cook, Malcolm
2015-08-10 20:43     ` Peter Salazar
2015-08-10 21:30       ` Peter Salazar
2015-08-10 23:18         ` Cook, Malcolm
2015-08-11  0:14           ` Peter Salazar
2015-08-11  1:36             ` Kyle Meyer
2015-08-11  2:45               ` Peter Salazar
2015-08-11  3:46                 ` Kyle Meyer
2015-08-11 15:35             ` Cook, Malcolm
2015-08-12  3:04               ` Peter Salazar

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).