Author: Kevin Ryde <user42@zip.com.au>
Integrated: Ralf Treinen <treinen@debian.org>
Debian-bug: #676858
Description: emacs21 needs an (required 'derived)
Forwarded: https://forge.ocamlcore.org/tracker/index.php?func=detail&aid=1172&group_id=43&atid=257

Index: tuareg-mode/tuareg.el
===================================================================
--- tuareg-mode.orig/tuareg.el	2012-06-12 21:05:00.000000000 +0200
+++ tuareg-mode/tuareg.el	2012-06-12 21:06:12.000000000 +0200
@@ -134,6 +134,12 @@
                             (or history 'shell-command-history))))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;      Compatibility with emacs21
+
+(unless (fboundp 'derived-mode-p) ;; in derived.el in emacs21
+  (require 'derived))
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;                             Import types and help features
 
 (defvar tuareg-with-caml-mode-p
