Hi!

I'd like to derive a mode from org-mode.

I do something like this:

(define-derived-mode derived-org-mode org-mode "dorg" "derived org-mode"
  (message "derived-org-mode activated")
  )

When I activate the derived-org-mode, M-: (org-entry-properties) does no longer 
work.

Using org-mode it works.

When I use derived-mode-p in org-mode-p everything works:


(defsubst org-mode-p ()
  "Check if the current buffer is in Org-mode or a derived mode."
  ;;(eq major-mode 'org-mode))
  (if (derived-mode-p 'org-mode) t nil))


I think changing org-mode-p should be the correct change to make
deriving from org-mode work.

Perhaps a (if (symbolp 'derived-mode-p) ...) is necessary to avoid
compatibility problems.

What do the org developers think of this improvement?


Stefan.


Reply via email to