On Thu, 17 Nov 2011 09:45:27 -0500 Ted Zlatanov <t...@lifelogs.com> wrote: 

TZ> this is because I only tested against Emacs 24, I didn't know prog-mode
TZ> was not available in earlier ones.  I will make the necessary changes.

Please try the attached patch and tell me if it works for you.  It
should, it's a one-line change.  I'll put the change into the cfengine
and Emacs trunks if it works OK.

Thanks
Ted

=== modified file 'lisp/progmodes/cfengine.el'
--- lisp/progmodes/cfengine.el	2011-11-20 03:48:53 +0000
+++ lisp/progmodes/cfengine.el	2011-11-22 23:39:35 +0000
@@ -48,6 +48,9 @@
 
 ;;; Code:
 
+;; compatibility with Emacsen where prog-mode doesn't exist
+(unless (fboundp 'prog-mode) (defalias 'prog-mode 'fundamental-mode))
+
 (defgroup cfengine ()
   "Editing Cfengine files."
   :group 'languages)

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to