From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anders Waldenborg Subject: Deriving mode from org-mode Date: Sun, 13 Feb 2011 22:23:49 +0100 Message-ID: <4D584BE5.2050401@0x63.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=52632 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PojQg-0000aw-Kx for emacs-orgmode@gnu.org; Sun, 13 Feb 2011 16:24:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PojQP-0008Lq-3d for emacs-orgmode@gnu.org; Sun, 13 Feb 2011 16:24:26 -0500 Received: from mta.proceranetworks.com ([194.153.91.40]:55139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PojQO-0008LT-Rv for emacs-orgmode@gnu.org; Sun, 13 Feb 2011 16:24:09 -0500 Received: from hoth.proceranetworks.com (hoth.proceranetworks.com [194.153.91.41]) by mta.proceranetworks.com (Postfix) with ESMTP id 7E3A7E3001A for ; Sun, 13 Feb 2011 22:24:05 +0100 (CET) Received: from hidden.prnw.net (hidden.prnw.net [127.0.0.1]) by hoth.proceranetworks.com (Postfix) with ESMTP id 4BA401B1003D for ; Sun, 13 Feb 2011 22:24:05 +0100 (CET) Received: from hoth.proceranetworks.com ([127.0.0.1]) by localhost (hoth.proceranetworks.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z7-RvWz5zlZu for ; Sun, 13 Feb 2011 22:24:04 +0100 (CET) Received: from hidden.prnw.net (hidden.prnw.net [127.0.0.1]) by hoth.proceranetworks.com (Postfix) with ESMTPSA id 73AA51B1003C for ; Sun, 13 Feb 2011 22:24:04 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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