While a neat feature it doesn't quite work 100% of the time. Open a new buffer and put any amount of text on the top line, C-a, and then hit return. Also, xemacs doesn't like `previous-line' without any arguments.
(define-key jde-mode-map [return]
[...]
(insert "}")
(c-indent-command))
- (previous-line)
+ (previous-line 1)
(c-indent-command)))))
--
Bryan Shell CivicNet (www.civicnet.net)
Applications Developer
