From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: james borden Newsgroups: gmane.emacs.help Subject: Org-mode, nxhtml-mode (mumamo) conflicts? Date: Sat, 14 May 2011 14:32:59 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636c5b6c99c7ea604a3417e25 X-Trace: dough.gmane.org 1305401819 7310 80.91.229.12 (14 May 2011 19:36:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 May 2011 19:36:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 14 21:36:54 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QLKdx-0006hp-Ii for geh-help-gnu-emacs@m.gmane.org; Sat, 14 May 2011 21:36:53 +0200 Original-Received: from localhost ([::1]:50981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLKdx-00027W-1t for geh-help-gnu-emacs@m.gmane.org; Sat, 14 May 2011 15:36:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLKaa-00006E-Br for help-gnu-emacs@gnu.org; Sat, 14 May 2011 15:33:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QLKaY-0001uj-Ew for help-gnu-emacs@gnu.org; Sat, 14 May 2011 15:33:24 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:43781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLKaX-0001uC-UA for help-gnu-emacs@gnu.org; Sat, 14 May 2011 15:33:22 -0400 Original-Received: by bwz17 with SMTP id 17so3638877bwz.0 for ; Sat, 14 May 2011 12:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=N4I5ej6dKIlzaV/Gr6LBp2Jv+P/72iTFKGagsm/XKGI=; b=LbKyPzRqw79hC9WAhT9+FWvfI26yV72Qm7wV6lg3bqmxGM0zeONMYyTgqFaRp3rqo5 AskVGWpT3TOiOIEqYwkwK0mnkYbhhJH9s6Iiw297mnfVJ/ocj5EH1xGpoeK981WlKCT9 q7GbKFDaUTPJRRMOxiwqh94F1tg6vrfzJ9HNQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=lKNLqe2ncpxxF+J//04KtiBfVSRLUqBJ4yHWW/iLTq4TS/Y3MXtKgU3AR3UHCwIDbj 38vj5tbi4or9RgLb96Z8qbP6aa4JRtCF4fvZx+Tl3OjP9DTScd9aSIOMHQHrQz0Yye38 knAhUSNZ/RJVScnlXB8W6wmL7/gtc5MJ0jYRw= Original-Received: by 10.204.71.193 with SMTP id i1mr2751451bkj.102.1305401599229; Sat, 14 May 2011 12:33:19 -0700 (PDT) Original-Received: by 10.204.58.211 with HTTP; Sat, 14 May 2011 12:32:59 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-Mailman-Approved-At: Sat, 14 May 2011 15:36:12 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80979 Archived-At: --001636c5b6c99c7ea604a3417e25 Content-Type: text/plain; charset=ISO-8859-1 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 --001636c5b6c99c7ea604a3417e25 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am currently having difficulty debugging an error that I have encountered= .
Please see the bottom of this message for further information about m= y system and init files.

Problem:

When I have nxhtml loaded, via my init file, I cannot get my .org file= s to open in org-mode. I have set my init file up for org-mode according to= Section 1 of the org-mode manual.=A0

=A0I have th= e following message in=A0

*Backtrace*:
=A0
--begin *Back= trace*--
Debugger entered--Lisp error: = =A0(error ":END: line missing at position 111725") =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0
=A0 signal(error (":END: line missing at position 111725")) = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0
=A0 error(":END: line missin= g at position %s" 111725) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0<= /div>
=A0 org-flag-drawer(t) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =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0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0
=A0 (when mode (funcall m= ode) mode) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0=A0
=A0 (if (and keep-mode-if-same (eq ... ...)) nil (when mode (funcall m= ode) mode)) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0<= /div>
=A0 (unless (and keep-mode-if-same (eq ... ...)) (when mode (func= all mode) mode)) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0=A0
=A0 mumamo-ad-set-auto-mode-0(org-mode nil) =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0
=A0 set-auto-mode-0(org-m= ode nil) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0=A0
=A0 set-auto-mode() =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0
= =A0 normal-mode(t) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
=A0 after-find-file(nil t) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
=A0 find-= file-noselect-1(#<buffer Personal.org> "~/Documents/Personal.org= " nil nil "~/Documents/Personal.org" ($
=A0 find-file-noselect("~/Documents/Personal.org" nil nil t)= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
=A0 find-file("~/Documents/P= ersonal.org" t) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0=A0
=A0 call-interactively(find-file)=A0
--end *Backtrace* = --

However, if after receiving this message, I ent= er "M-x org-mode" and start org-mode, and load the file again (Pe= rsonal.org), it loads in org-mode with no problems. If I disable nxhtml fro= m 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)=A0

=
in *Backtrace* is probably the culprit. There seems to be an iss= ue 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 fil= e it is missing from.

Questions:

1) How can di= sable mumamo from handling org-mode? Org-mode does a fine job of=A0recogniz= ing=A0my .org files on its own.

2) Does anyone kno= w which file the missing :END: is in ? How can I get the lisp debugger to g= ive me more information about where the file with the missing :END: is? (ye= s, I did a=A0C-u M-x org-rel= oad RET and I have the same
*Backtrace* message)=A0


My ini= t file:

--begin init file--
;; To r= eload this file, M-x load-file ENTER ~/.emacs ENTER
;; C-h v to d= escribe a particular variable
;; This is required for labels
(require 'cl)
<= br>
;; Default encoding using UTF-8
(set-language-envir= onment "utf-8")

;; load up lisp files (m= odes, 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=A0
(add= -to-list 'load-path ;; definition of add-path, uses function add-to-lis= t (add-to-list LIST-VAR ELEMENT) to add elements to load-path=A0
= (concat = emacs-root p)))) ;; element to add, which is actually a call to concat so t= hat the emacs-root dir can be appened to p
=A0 ;; below, this function is called to add paths to load-path
<= div>=A0 (add-path "elisp") =A0 =A0;; all my personal elisp code
=A0 (add-path "php") =A0 =A0 =A0;; php customization
=A0 (add-path "yaml") =A0 =A0 ;; yaml mode
=A0 (add-path "geben") =A0 =A0;; geben for php debugging
=A0 (add-path "org-mode/lisp") ;; org-mode
=A0 (= add-path "org-mode/contrib") ;; org-mode conributions
;= ; =A0(add-path "nxhtml") =A0 =A0 =A0 =A0 =A0 ;; nxhtml mode=A0
)
;; =A0(add-path "emacs/icicles")=A0
;;= icicles for minibuffer stuff
;; Load files with settings that I = use
(load-library "setfly") =A0;; setup makefly=A0
(load-library "ekeys") =A0 ;; key bindings
(load-librar= y "myfont") =A0;; settings for fonts and windows colors
(load-library "autostart") ;; autoload nxhtml
(load-li= brary "css-mode") =A0;; load css mode
(load-library "modes") =A0 ;; settings for my modes
--end init file---

My ~/emacs/elisp/modes.= el file (contains org-mode settings):

--begin mode= s.el--
;; Path which contains php manual=A0
(setq php-manual-p= ath "~/emacs/php-chunked-xhtml")
;; Path for php-comple= tion-file
(setq php-completion-file "~/emacs/php/php-complet= ion-file")
;;(setq org-clock-idle-time 1)
;; When TODO is turned to DON= E, entry is marked as "CLOSED: [timestamp]' 01-04-10=A0
= (setq org-log-done 'time)
(setq fundamental-mode 'org-mod= e)
(setq initial-major-mode 'org-mode)=A0
;; default mode f= or 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 f= iles
(require 'yaml-mode)
(add-to-list 'auto-mo= de-alist '(".yml$" . yaml-mode))
;; autoload geben<= /div>
(autoload 'geben "geben" "PHP Debugger on Emacs&quo= t; t)
;; Org-mode
(require 'org-install)
= ;; Hooks for org-mode
(add-to-list 'auto-mode-alist '(&qu= ot;\\.org\\'" . org-mode))
;; Many commands in Org work on the region if the region is active.=A0=
;; To make use of this, you need to have transient-mark-mode (zm= acs-regions in XEmacs) turned on.=A0
;;In Emacs 23 this is the de= fault, 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 Em= acs 23.3.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
=A0of 2011-03-18 on braeburn.= aquamacs.org - Aquamacs Distribution 2.2

on my Mac OS X 10.6.7.

No= te: 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=A0

Thank you,

James

--001636c5b6c99c7ea604a3417e25--