emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prog-mode not available in earlier Emacsen, need help with cfengine.


From: Eli Zaretskii
Subject: Re: prog-mode not available in earlier Emacsen, need help with cfengine.el
Date: Tue, 22 Nov 2011 20:05:41 +0200

> From: Ted Zlatanov <address@hidden>
> Date: Tue, 22 Nov 2011 12:18:10 -0500
> 
> I'd like, instead of saying 
> 
> (define-derived-mode cfengine3-mode prog-mode "CFEngine3" ...
> 
> to say something like:
> 
> (define-derived-mode cfengine3-mode (if (fboundp 'prog-mode) prog-mode 
> fundamental-mode) "CFEngine3" ...
> 
> or something like it, which will keep the compiler happy and will work
> in older Emacsen.  I'd rather not maintain two versions of cfengine.el.
> I don't use any prog-mode features in cfengine.el.

Why can't you define a fake prog-mode in cfengine.el, if prog-mode is
not already fboundp?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]