emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: John Toohey <jt@parspro.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Problem with latest stable org-mode - Lisp error: (void-variable outline-regexp)
Date: Wed, 01 Jun 2011 22:14:28 -0400	[thread overview]
Message-ID: <13162.1306980868@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from John Toohey <jt@parspro.com> of "Wed, 01 Jun 2011 20:33:40 EDT." <BANLkTi=7FhVyf0NzJpWf3rQ-iMQtZVaGMA@mail.gmail.com>

John Toohey <jt@parspro.com> 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	other threads:[~2011-06-02  2:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01 23:06 Problem with latest stable org-mode - Lisp error: (void-variable outline-regexp) John Toohey
2011-06-02  0:02 ` Nick Dokos
2011-06-02  0:33   ` John Toohey
2011-06-02  2:14     ` Nick Dokos [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-06-01 21:08 John Toohey

Reply instructions:

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

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

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

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

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

  git send-email \
    --in-reply-to=13162.1306980868@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jt@parspro.com \
    /path/to/YOUR_REPLY

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

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).