* progmodes/octave.el (octave-mode): Set comment-use-global-state
to t. (Bug#14303)
+ (octave-function-header-regexp): Fix. (Bug#14570)
+ (octave-help-mode-finish-hook, octave-help-mode-finish):
+ Remove. Just use temp-buffer-show-hook.
* newcomment.el (comment-search-backward): Revert last change.
(Bug#14434)
(defvar octave-function-header-regexp
(concat "^\\s-*\\_<\\(function\\)\\_>"
- "\\([^=;\n]*=[ \t]*\\|[ \t]*\\)\\(\\(?:\\w\\|\\s_\\)+\\)\\_>")
+ "\\([^=;(\n]*=[ \t]*\\|[ \t]*\\)\\(\\(?:\\w\\|\\s_\\)+\\)\\_>")
"Regexp to match an Octave function header.
The string `function' and its name are given by the first and third
parenthetical grouping.")
(when (or help-xref-stack help-xref-forward-stack)
(insert "\n"))))
-(defvar octave-help-mode-finish-hook nil
- "Octave specific hook for `temp-buffer-show-hook'.")
-
-(defun octave-help-mode-finish ()
- (when (eq major-mode 'octave-help-mode)
- (run-hooks 'octave-help-mode-finish-hook)))
-
-(add-hook 'temp-buffer-show-hook 'octave-help-mode-finish)
-
(defun octave-help (fn)
"Display the documentation of FN."
(interactive (list (octave-completing-read)))