Emacs CDL Mode .el file

Hello
The WOK Users guide (Appendix A - Using the Emacs Editor) says "A CDL mode has been created for Emacs. The .el file for this mode is not provided in the distribution, but is available on request from Open CASCADE".
How can I obtain the .el file for CDL mode?
Regards,
Venkat

sergey zaritchny's picture

Hi,
Find the .el file attached, please.
To use it, it is necessary:
1) To put this file to a place where emacs can load it from. Such places are enumerated in a list stored by 'load-path' emacs variable.
2) To add to any of user 's emacs customization files (e.g. .emacs) the following line

(setq auto-mode-alist (cons (cons "\\.cdl$" 'cdl-mode) auto-mode-alist))

Regards
Sergey

Attachments: 
venkat's picture

Thank you, much appreciated.

Regards,
Venkat

Denis Teissandier's picture

Is this file compatible with any release of xemacs ?

I am using XEmacs21.4.19 and I can read this message when a cdl file is opened :

(error : cdl mode)

Regards,

Denis

venkat's picture

Hello Denis

I am using it with emacs 23.2 and it is working fine. Though for some reason, the syntax highlighting seems to be not working for some specific cdl files. I do not have access to xemacs currently, in case you want I can test it with xemacs and let you know on Tuesday.

Regards,
Venkat

Denis Teissandier's picture

I am really interested by your test on xemacs.

Regards,

Denis

venkat's picture

Have tested it on xemacs 21.5(beta 29) on FC13. I do not get any errors and xemacs loads the CDL mode when I open a *.cdl file. However the syntax highlighting does not work.

Regards,
Venkat