Hi Anders, Anders Waldenborg <and...@0x63.nu> writes:
> isn't creating a new major mode derived from org-mode supported? Yes it is... > I guess that part of the problem is that org-mode-p doesn't use > derived-mode-p. (org-mode-p) does the advertized job: checking whether we are in org-mode major mode. It would be confusing to also check against org derived modes, at least with that function's name. > 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" Fixed, I corrected this directly in `org-edit-src-code', allow source code to be edited from org-mode derived modes. Can you share what kind of derived mode you're writing? What for? Thanks, -- Bastien _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode