From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problem with latest stable org-mode - Lisp error: (void-variable outline-regexp) Date: Wed, 01 Jun 2011 22:14:28 -0400 Message-ID: <13162.1306980868@alphaville.dokosmarshall.org> References: <12240.1306972947@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRxQw-0005r5-4S for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 22:14:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRxQt-0000OD-Hw for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 22:14:49 -0400 Received: from vms173017pub.verizon.net ([206.46.173.17]:47755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRxQt-0000O9-41 for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 22:14:47 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LM500KBM4W44O20@vms173017.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 21:14:34 -0500 (CDT) In-reply-to: Message from John Toohey of "Wed, 01 Jun 2011 20:33:40 EDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Toohey Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org John Toohey 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 It may be that you are picking up bits and pieces from various older installations of org-mode. Doing M-x locate-library org should point to your newly installed org.elc (or org.el if you have not byte-compiled). Does it? Also M-x locate-library outline 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 outline 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