[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Deriving mode from org-mode
From: |
Bastien |
Subject: |
Re: [Orgmode] Deriving mode from org-mode |
Date: |
Tue, 15 Feb 2011 05:11:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi Anders,
Anders Waldenborg <address@hidden> 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