Misc code cleanup of octave-mode.el.
commitc82d5b11aa7281c167367e4f94322d06909380d8
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 12 Aug 2010 11:22:16 +0000 (12 13:22 +0200)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 12 Aug 2010 11:22:16 +0000 (12 13:22 +0200)
treefc1aa7bcc34ada114148fe097f3ccfaafba7f8dc
parentdc94fc858f547a4f78b04c17c4a4dec8c0d55fe1
Misc code cleanup of octave-mode.el.
* lisp/progmodes/octave-mod.el (octave-mode-map): Remove special bindings
for (un)commenting the region and performing completion.
(octave-mode-menu): Use standard commands for help and completion.
(octave-mode-syntax-table): Support %{..%} comments (sort of).
(octave-mode): Use define-derived-mode.
Set completion-at-point-functions and don't set columns.
Don't disable adaptive-fill-regexp.
(octave-describe-major-mode, octave-comment-region)
(octave-uncomment-region, octave-comment-indent)
(octave-indent-for-comment): Remove.
(octave-indent-calculate): Rename from calculate-octave-indent.
(octave-indent-line): Update caller.
(octave-initialize-completions): No need to make an alist.
(octave-completion-at-point-function): New function.
(octave-complete-symbol): Use it.
(octave-insert-defun): Use define-skeleton.
lisp/ChangeLog
lisp/progmodes/octave-mod.el