Fix octave-inf completion problems reported by Alexander Klimov.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 25 Apr 2011 16:29:31 +0000 (13:29 -0300)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 25 Apr 2011 16:29:31 +0000 (13:29 -0300)
commite92f3bd31bba8010468c91b6af7090652969679b
tree9eb8ca14de4bd9eba623e8fa54c49be5dbb15070
parentcd22b309b432f65d0191e46a7677e0d9c11ea9fd
Fix octave-inf completion problems reported by Alexander Klimov.
* lisp/progmodes/octave-inf.el (inferior-octave-mode-syntax-table):
Inherit from octave-mode-syntax-table.
(inferior-octave-mode): Set info-lookup-mode.
(inferior-octave-completion-at-point): New function.
(inferior-octave-complete): Use it and completion-in-region.
(inferior-octave-dynamic-complete-functions): Use it as well, and use
comint-filename-completion.
* lisp/progmodes/octave-mod.el (octave-mode-syntax-table): Use _ syntax for
symbol elements which shouldn't be word elements.
(octave-font-lock-keywords, octave-beginning-of-defun)
(octave-function-header-regexp): Adjust regexps accordingly.
(octave-mode-map): Also use info-lookup-symbol for C-c C-h.
lisp/ChangeLog
lisp/progmodes/octave-inf.el
lisp/progmodes/octave-mod.el