emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Problem with latest stable org-mode - Lisp error: (void-variable


From: Nick Dokos
Subject: Re: [O] Problem with latest stable org-mode - Lisp error: (void-variable outline-regexp)
Date: Wed, 01 Jun 2011 22:14:28 -0400

John Toohey <address@hidden> wrote:

> Hope this is done correctly.
> 
> 
> Stack Trace
> Debugger entered--Lisp error: (void-variable outline-regexp)
>   outline-mode()
>   (let ((delay-mode-hooks t)) (outline-mode) (setq major-mode (quote
> org-mode)) (setq mode-name "Org") (progn (if ... ...) (unless ... ...)
> (let ... ...)) (use-local-map org-mode-map) (set-syntax-table
> org-mode-syntax-table) (setq local-abbrev-table org-mode-abbrev-table)
> (if (featurep ...) (when ... ... ... ...) (define-key org-mode-map
> [menu-bar headings] ...) (define-key org-mode-map [menu-bar hide] ...)
> (define-key org-mode-map [menu-bar show] ...))
> (org-load-modules-maybe) (easy-menu-add org-org-menu) (easy-menu-add
> org-tbl-menu) (org-install-agenda-files-menu) (if
> org-descriptive-links (add-to-invisibility-spec ...))
> (add-to-invisibility-spec (quote ...)) (add-to-invisibility-spec
> (quote ...)) (when (featurep ...) (org-set-local ... t))
> (org-set-local (quote outline-regexp) org-outline-regexp)
> (org-set-local (quote outline-level) (quote org-outline-level)) (when
> (and org-ellipsis ... ... ...) (unless org-display-table ...)
> (set-display-table-slot org-display-table 4 ...) (setq
> buffer-display-table org-display-table)) (org-set-regexps-and-options)
> (when (and org-tag-faces ...) (org-set-tag-faces ... org-tag-faces))
> (org-set-local (quote calc-embedded-open-mode) "# ")
> (modify-syntax-entry 64 "w") (if org-startup-truncated (setq
> truncate-lines t)) (org-set-local (quote
> font-lock-unfontify-region-function) (quote org-unfontify-region))
> (org-set-local (quote org-table-may-need-update) t) (org-add-hook
> (quote before-change-functions) (quote org-before-change-function) nil
> (quote local)) (org-add-hook (quote kill-buffer-hook) (quote
> org-check-running-clock) nil (quote local)) (org-set-autofill-regexps)
> (setq indent-line-function (quote org-indent-line-function))
> (org-update-radio-target-regexp) (org-set-local (quote
> beginning-of-defun-function) (quote org-beginning-of-defun))
> (org-set-local (quote end-of-defun-function) (quote org-end-of-defun))
> (org-set-local (quote next-error-function) (quote
> org-occur-next-match)) (if org-enforce-todo-dependencies (add-hook ...
> ...) (remove-hook ... ...)) (if org-enforce-todo-checkbox-dependencies
> (add-hook ... ...) (remove-hook ... ...)) (org-set-local (quote
> comment-start) "#") (org-set-local (quote comment-padding) " ")
> (org-set-local (quote align-mode-rules-list) (quote ...))
> (org-set-local (quote imenu-create-index-function) (quote
> org-imenu-get-tree)) (if (or ... ...) (org-add-hook ... ... ... ...)
> (org-set-local ... ...)) (and org-startup-with-beamer-mode
> (org-beamer-mode 1)) (set (make-local-variable ...) (quote
> org-pcomplete-initial)) (set (make-local-variable ...) (quote
> org-command-at-point)) (set (make-local-variable ...) (quote ignore))
> (set (make-local-variable ...) (quote org-parse-arguments)) (set
> (make-local-variable ...) "") (if (and
> org-insert-mode-line-in-empty-file ... ...) (insert "#    -*- mode:
> org -*-\n\n")) ...)
>   (progn (make-local-variable (quote delay-mode-hooks)) (let (...)
> (outline-mode) (setq major-mode ...) (setq mode-name "Org") (progn ...
> ... ...) (use-local-map org-mode-map) (set-syntax-table
> org-mode-syntax-table) (setq local-abbrev-table org-mode-abbrev-table)
> (if ... ... ... ... ...) (org-load-modules-maybe) (easy-menu-add
> org-org-menu) (easy-menu-add org-tbl-menu)
> (org-install-agenda-files-menu) (if org-descriptive-links ...)
> (add-to-invisibility-spec ...) (add-to-invisibility-spec ...) (when
> ... ...) (org-set-local ... org-outline-regexp) (org-set-local ...
> ...) (when ... ... ... ...) (org-set-regexps-and-options) (when ...
> ...) (org-set-local ... "# ") (modify-syntax-entry 64 "w") (if
> org-startup-truncated ...) (org-set-local ... ...) (org-set-local ...
> t) (org-add-hook ... ... nil ...) (org-add-hook ... ... nil ...)
> (org-set-autofill-regexps) (setq indent-line-function ...)
> (org-update-radio-target-regexp) (org-set-local ... ...)
> (org-set-local ... ...) (org-set-local ... ...) (if
> org-enforce-todo-dependencies ... ...) (if
> org-enforce-todo-checkbox-dependencies ... ...) (org-set-local ...
> "#") (org-set-local ... " ") (org-set-local ... ...) (org-set-local
> ... ...) (if ... ... ...) (and org-startup-with-beamer-mode ...) (set
> ... ...) (set ... ...) (set ... ...) (set ... ...) (set ... "") (if
> ... ...) ...))
>   (delay-mode-hooks (outline-mode) (setq major-mode (quote org-mode))
> (setq mode-name "Org") (progn (if ... ...) (unless ... ...) (let ...
> ...)) (use-local-map org-mode-map) (set-syntax-table
> org-mode-syntax-table) (setq local-abbrev-table org-mode-abbrev-table)
> (if (featurep ...) (when ... ... ... ...) (define-key org-mode-map
> [menu-bar headings] ...) (define-key org-mode-map [menu-bar hide] ...)
> (define-key org-mode-map [menu-bar show] ...))
> (org-load-modules-maybe) (easy-menu-add org-org-menu) (easy-menu-add
> org-tbl-menu) (org-install-agenda-files-menu) (if
> org-descriptive-links (add-to-invisibility-spec ...))
> (add-to-invisibility-spec (quote ...)) (add-to-invisibility-spec
> (quote ...)) (when (featurep ...) (org-set-local ... t))
> (org-set-local (quote outline-regexp) org-outline-regexp)
> (org-set-local (quote outline-level) (quote org-outline-level)) (when
> (and org-ellipsis ... ... ...) (unless org-display-table ...)
> (set-display-table-slot org-display-table 4 ...) (setq
> buffer-display-table org-display-table)) (org-set-regexps-and-options)
> (when (and org-tag-faces ...) (org-set-tag-faces ... org-tag-faces))
> (org-set-local (quote calc-embedded-open-mode) "# ")
> (modify-syntax-entry 64 "w") (if org-startup-truncated (setq
> truncate-lines t)) (org-set-local (quote
> font-lock-unfontify-region-function) (quote org-unfontify-region))
> (org-set-local (quote org-table-may-need-update) t) (org-add-hook
> (quote before-change-functions) (quote org-before-change-function) nil
> (quote local)) (org-add-hook (quote kill-buffer-hook) (quote
> org-check-running-clock) nil (quote local)) (org-set-autofill-regexps)
> (setq indent-line-function (quote org-indent-line-function))
> (org-update-radio-target-regexp) (org-set-local (quote
> beginning-of-defun-function) (quote org-beginning-of-defun))
> (org-set-local (quote end-of-defun-function) (quote org-end-of-defun))
> (org-set-local (quote next-error-function) (quote
> org-occur-next-match)) (if org-enforce-todo-dependencies (add-hook ...
> ...) (remove-hook ... ...)) (if org-enforce-todo-checkbox-dependencies
> (add-hook ... ...) (remove-hook ... ...)) (org-set-local (quote
> comment-start) "#") (org-set-local (quote comment-padding) " ")
> (org-set-local (quote align-mode-rules-list) (quote ...))
> (org-set-local (quote imenu-create-index-function) (quote
> org-imenu-get-tree)) (if (or ... ...) (org-add-hook ... ... ... ...)
> (org-set-local ... ...)) (and org-startup-with-beamer-mode
> (org-beamer-mode 1)) (set (make-local-variable ...) (quote
> org-pcomplete-initial)) (set (make-local-variable ...) (quote
> org-command-at-point)) (set (make-local-variable ...) (quote ignore))
> (set (make-local-variable ...) (quote org-parse-arguments)) (set
> (make-local-variable ...) "") (if (and
> org-insert-mode-line-in-empty-file ... ...) (insert "#    -*- mode:
> org -*-\n\n")) (unless org-inhibit-startup (when
> org-startup-align-all-tables ...) (when org-startup-with-inline-images
> ...) (when org-startup-indented ... ...) (unless
> org-inhibit-startup-visibility-stuff ...)))
>   org-mode()
>   call-interactively(org-mode t nil)
>   execute-extended-command(nil)
>   call-interactively(execute-extended-command nil nil)
> 
> 

Not sure what's causing the problem. This is pretty much the macro
expansion of org-mode and then the macro expansion of delay-mode-hooks.
Basically, org-mode inherits from outline-mode, so at some point, the
function outline-mode is called and finds outline-regexp undefined. Both
outline-mode and outline-regexp are defined in the same file, so how one
is present but the other is not is a mystery.

Check your load-path:

        C-h v load-path <RET>

It may be that you are picking up bits and pieces from various older
installations of org-mode.  Doing

        M-x locate-library <RET> org <RET>

should point to your newly installed org.elc (or org.el if you have not
byte-compiled). Does it?

Also

        M-x locate-library <RET> outline <RET>

should point to outline.elc in the emacs 23.3 lisp directory. Does it?

The following are not meant as solutions, just debugging aids:

- Try loading outline by hand:

        M-x load-library <RET> outline <RET>

and then try org-mode again. Does that work?

- Try deleting all the org-mode *.elc files, restart emacs and
try org-mode again. Does that work?

Nick







reply via email to

[Prev in Thread] Current Thread [Next in Thread]