I am currently having difficulty debugging an error that I have encountered. Please see the bottom of this message for further information about my system and init files. Problem: When I have nxhtml loaded, via my init file, I cannot get my .org files to open in org-mode. I have set my init file up for org-mode according to Section 1 of the org-mode manual. I have the following message in *Backtrace*: --begin *Backtrace*-- Debugger entered--Lisp error: (error ":END: line missing at position 111725") signal(error (":END: line missing at position 111725")) error(":END: line missing at position %s" 111725) org-flag-drawer(t) org-cycle-hide-drawers(all) org-set-startup-visibility() org-mode() funcall(org-mode) (progn (funcall mode) mode) (if mode (progn (funcall mode) mode)) (when mode (funcall mode) mode) (if (and keep-mode-if-same (eq ... ...)) nil (when mode (funcall mode) mode)) (unless (and keep-mode-if-same (eq ... ...)) (when mode (funcall mode) mode)) mumamo-ad-set-auto-mode-0(org-mode nil) set-auto-mode-0(org-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(# "~/Documents/Personal.org" nil nil "~/Documents/Personal.org" ($ find-file-noselect("~/Documents/Personal.org" nil nil t) find-file("~/Documents/Personal.org" t) call-interactively(find-file) --end *Backtrace* -- However, if after receiving this message, I enter "M-x org-mode" and start org-mode, and load the file again (Personal.org), it loads in org-mode with no problems. If I disable nxhtml from autoloading, I have no problem opening Personal.org automatically in org-mode. I believe that the call mumamo-ad-set-auto-mode-0(org-mode nil) in *Backtrace* is probably the culprit. There seems to be an issue with a missing ":END:" line, but I do not know which file this missing :END: is in as the I can not deduce from the *Backtrace* which file it is missing from. Questions: 1) How can disable mumamo from handling org-mode? Org-mode does a fine job of recognizing my .org files on its own. 2) Does anyone know which file the missing :END: is in ? How can I get the lisp debugger to give me more information about where the file with the missing :END: is? (yes, I did a C-u M-x org-reload RET and I have the same *Backtrace* message) My init file: --begin init file-- ;; To reload this file, M-x load-file ENTER ~/.emacs ENTER ;; C-h v to describe a particular variable ;; This is required for labels (require 'cl) ;; Default encoding using UTF-8 (set-language-environment "utf-8") ;; load up lisp files (modes, configuration, etc) from home dir (defvar emacs-root "/Users/james/emacs/") ;; add all the elisp directories under ~/emacs to my load path (labels ((add-path (p) ;; new function add-path, given argument p (add-to-list 'load-path ;; definition of add-path, uses function add-to-list (add-to-list LIST-VAR ELEMENT) to add elements to load-path (concat emacs-root p)))) ;; element to add, which is actually a call to concat so that the emacs-root dir can be appened to p ;; below, this function is called to add paths to load-path (add-path "elisp") ;; all my personal elisp code (add-path "php") ;; php customization (add-path "yaml") ;; yaml mode (add-path "geben") ;; geben for php debugging (add-path "org-mode/lisp") ;; org-mode (add-path "org-mode/contrib") ;; org-mode conributions ;; (add-path "nxhtml") ;; nxhtml mode ) ;; (add-path "emacs/icicles") ;; icicles for minibuffer stuff ;; Load files with settings that I use (load-library "setfly") ;; setup makefly (load-library "ekeys") ;; key bindings (load-library "myfont") ;; settings for fonts and windows colors (load-library "autostart") ;; autoload nxhtml (load-library "css-mode") ;; load css mode (load-library "modes") ;; settings for my modes --end init file--- My ~/emacs/elisp/modes.el file (contains org-mode settings): --begin modes.el-- ;; Path which contains php manual (setq php-manual-path "~/emacs/php-chunked-xhtml") ;; Path for php-completion-file (setq php-completion-file "~/emacs/php/php-completion-file") ;;(setq org-clock-idle-time 1) ;; When TODO is turned to DONE, entry is marked as "CLOSED: [timestamp]' 01-04-10 (setq org-log-done 'time) (setq fundamental-mode 'org-mode) (setq initial-major-mode 'org-mode) ;; default mode for txt files is org-mode (add-to-list 'auto-mode-alist '(".txt" . org-mode)) ;; change settings for default php-mode indentations to pear (setq php-mode-force-pear 1) ;; Default yaml mode for yaml files (require 'yaml-mode) (add-to-list 'auto-mode-alist '(".yml$" . yaml-mode)) ;; autoload geben (autoload 'geben "geben" "PHP Debugger on Emacs" t) ;; Org-mode (require 'org-install) ;; Hooks for org-mode (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) ;; Many commands in Org work on the region if the region is active. ;; To make use of this, you need to have transient-mark-mode (zmacs-regions in XEmacs) turned on. ;;In Emacs 23 this is the default, in Emacs 22 you need to do this yourself with (transient-mark-mode 1) --end modes.el-- My system: Aquamacs is a distribution of GNU Emacs that is adapted for Mac users. GNU Emacs 23.3.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-03-18 on braeburn.aquamacs.org - Aquamacs Distribution 2.2 on my Mac OS X 10.6.7. Note: I have the exact same error when running emacs22 from the command-line from terminal. Org-mode: Org-mode version 7.5 (release_7.5.226.gc7ed6.dirty) Nxhtml-mode: nXhtml mode version 2.08 Thank you, James