Forum OpenACS Development: Re: Developmnet tools, debuggers, IDEs, etc

Collapse
Posted by Bart Teeuwisse on
Andrei,

you should definately give my Emacs OACS Minor Mode a try. (http://www.thecodemill.biz/services/oacs/). Emacs OACS automatically inserts headers for OpenACS files such as ad_page_contract, ad_library, .XQL and .ADP files.

In addition, EMACS OACS offers several abbreviations that expand to procedure definitions, debug messages and the like. Each of these (headers and abbreviations) will ask for input.

See the Emacs OACS changelog for documentation (http://www.thecodemill.biz/services/oacs/changelog/index?revision_id=10054). Emacs OACS is in beta and stable enough to be used. A hand full of developers are using it daily, but documentation is behind the development curve.

/Bart

Collapse
Posted by Andrei Popov on
Bart -- Sure, I've tried it out some time ago, but not in the past few weeks.  Will take it for a further spin -- I've seen the changelog et al, but I'd like to really try it out :)
Collapse
15: OACS-mode (response to 14)
Posted by Andrei Popov on
Bart, this really does kick ass (pardon my French).
Collapse
Posted by Claudio Pasolini on
Hi Bart,

thank you for sharing your oacs-mode! It looks very useful for oacs developers.

I followed the installation instructions without problems until I tried adding sql mode to XQL files. After copying your code snippets into my .emacs file I get this error during emacs startup:
Symbol's value as variable is void: xml-mode
I don't know lisp and so I'm not able to debug it: perhaps you can help posting your .emacs file?

TIA, Claudio

Collapse
Posted by Andrei Popov on
You probably are missing psgml or have not set it up correctly.  In the least you should have something along the lines of:

(add-to-list 'load-path "/full/path/to/psgml/dir")

(setq auto-mode-alist
    (append
      (list
    '("\\.xql$" . xml-mode))

in your .emacs file

Collapse
Posted by Bart Teeuwisse on
Claudio,

as http://www.thecodemill.biz/services/oacs/ describes, Emacs OACS depends on the PSGML and MMM modules. Be sure to install them. Installation instructions are included each module. You'll find links to these modules from http://www.thecodemill.biz/services/oacs/.

/Bart