emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Deriving mode from org-mode


From: Anders Waldenborg
Subject: [Orgmode] Deriving mode from org-mode
Date: Sun, 13 Feb 2011 22:23:49 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101227 Icedove/3.0.11


Hi,

isn't creating a new major mode derived from org-mode supported?

I guess that part of the problem is that org-mode-p doesn't use derived-mode-p.


For example:
(define-derived-mode org-derived-mode org-mode "Org-Derived")

and then create a new buffer using org-derived-mode and enter a source block, like this:

#+BEGIN_SRC emacs-lisp
#+END_SRC

and do org-edit-special (C-c ') in that buffer. When finishing editing one gets this message:
"org-edit-src-exit: This is not a sub-editing buffer, something is wrong"

 anders




reply via email to

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