unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* prog-mode not available in earlier Emacsen, need help with cfengine.el
@ 2011-11-22 17:18 Ted Zlatanov
  2011-11-22 18:05 ` Eli Zaretskii
  0 siblings, 1 reply; 25+ messages in thread
From: Ted Zlatanov @ 2011-11-22 17:18 UTC (permalink / raw)
  To: emacs-devel

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.

Is that possible and OK with the maintainers, and if so, can I have an
example which works in Emacs 23.x and 24.x alike (and, I hope, XEmacs)?

Thanks
Ted




^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2011-12-21 11:31 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-22 17:18 prog-mode not available in earlier Emacsen, need help with cfengine.el Ted Zlatanov
2011-11-22 18:05 ` Eli Zaretskii
2011-11-22 18:45   ` Ted Zlatanov
2011-11-22 22:30     ` Stefan Monnier
2011-11-23  2:09       ` Ted Zlatanov
2011-11-23  6:03         ` Chong Yidong
2011-11-23 13:35           ` Ted Zlatanov
2011-11-24  6:03             ` Chong Yidong
2011-11-25 13:17               ` Ted Zlatanov
2011-11-26 10:57                 ` Reiner Steib
2011-11-27  2:06                   ` Ted Zlatanov
2011-12-01 15:39                     ` Ted Zlatanov
2011-12-02 16:12                       ` changes to cfengine-mode (was: prog-mode not available in earlier Emacsen, need help with cfengine.el) Ted Zlatanov
2011-12-02 20:32                         ` changes to cfengine-mode Stefan Monnier
2011-12-07 11:04                           ` Ted Zlatanov
2011-12-07 16:10                             ` Stefan Monnier
2011-12-08  9:52                               ` Chong Yidong
2011-12-13 17:21                               ` Ted Zlatanov
2011-12-13 19:51                                 ` Stefan Monnier
2011-12-13 21:46                                   ` Ted Zlatanov
2011-12-17  0:45                                     ` Stefan Monnier
2011-12-21 11:31                                       ` Ted Zlatanov
2011-12-13 17:23                               ` Ted Zlatanov
2011-12-07 16:12                             ` Stefan Monnier
2011-12-13 15:47                               ` Ted Zlatanov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).