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: Ted Zlatanov
Subject: Re: prog-mode not available in earlier Emacsen, need help with cfengine.el
Date: Tue, 22 Nov 2011 13:45:00 -0500
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

On Tue, 22 Nov 2011 20:05:41 +0200 Eli Zaretskii <address@hidden> wrote: 

>> 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.

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

That's a good way, but I don't know if the maintainers would mind, and
if it would cause autoload/compilation issues.  Do I have to wrap it all
in `eval-when-compile'?

Ted




reply via email to

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