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 21:09:32 -0500
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

On Tue, 22 Nov 2011 17:30:01 -0500 Stefan Monnier <address@hidden> wrote: 

>> That's a good way, but I don't know if the maintainers would mind, and
SM> Which maintainers?

The Emacs maintainers.  I mean I don't know if you want to have
fallbacks like that in the Emacs 24 code, since obviously prog-mode
exists there.

>> if it would cause autoload/compilation issues.  Do I have to wrap it all
>> in `eval-when-compile'?

SM> I think that

SM>   (unless (fboundp 'prog-mode) (defalias 'prog-mode 'fundamental-mode))

SM> should do the trick.

The compilation passes cleanly and it seems to work OK under 24.  I'll
try it out in 23 and XEmacs.

Thanks
Ted




reply via email to

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