diff options
| author | Leo Liu | 2013-06-07 21:00:47 +0800 |
|---|---|---|
| committer | Leo Liu | 2013-06-07 21:00:47 +0800 |
| commit | ce8209d4fe5fef08a4d7e835066770e6ead28a43 (patch) | |
| tree | 58dd7f86bfe2384002c80285baec22b1bca191f9 | |
| parent | a175bf337ae1cb146bf01f69648cd5cbe35d4384 (diff) | |
| download | emacs-ce8209d4fe5fef08a4d7e835066770e6ead28a43.tar.gz emacs-ce8209d4fe5fef08a4d7e835066770e6ead28a43.zip | |
* progmodes/octave.el (octave-function-header-regexp): Fix.
(octave-help-mode-finish-hook, octave-help-mode-finish):
Remove. Just use temp-buffer-show-hook.
Fixes: debbugs:14570
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/progmodes/octave.el | 11 |
2 files changed, 4 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b6d934e95c4..4ff6a28ae9c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -2,6 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | * progmodes/octave.el (octave-mode): Set comment-use-global-state | 3 | * progmodes/octave.el (octave-mode): Set comment-use-global-state |
| 4 | to t. (Bug#14303) | 4 | to t. (Bug#14303) |
| 5 | (octave-function-header-regexp): Fix. (Bug#14570) | ||
| 6 | (octave-help-mode-finish-hook, octave-help-mode-finish): | ||
| 7 | Remove. Just use temp-buffer-show-hook. | ||
| 5 | 8 | ||
| 6 | * newcomment.el (comment-search-backward): Revert last change. | 9 | * newcomment.el (comment-search-backward): Revert last change. |
| 7 | (Bug#14434) | 10 | (Bug#14434) |
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index 14d04b0d03c..5281af60b5d 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el | |||
| @@ -89,7 +89,7 @@ Used in `octave-mode' and `inferior-octave-mode' buffers.") | |||
| 89 | 89 | ||
| 90 | (defvar octave-function-header-regexp | 90 | (defvar octave-function-header-regexp |
| 91 | (concat "^\\s-*\\_<\\(function\\)\\_>" | 91 | (concat "^\\s-*\\_<\\(function\\)\\_>" |
| 92 | "\\([^=;\n]*=[ \t]*\\|[ \t]*\\)\\(\\(?:\\w\\|\\s_\\)+\\)\\_>") | 92 | "\\([^=;(\n]*=[ \t]*\\|[ \t]*\\)\\(\\(?:\\w\\|\\s_\\)+\\)\\_>") |
| 93 | "Regexp to match an Octave function header. | 93 | "Regexp to match an Octave function header. |
| 94 | The string `function' and its name are given by the first and third | 94 | The string `function' and its name are given by the first and third |
| 95 | parenthetical grouping.") | 95 | parenthetical grouping.") |
| @@ -1607,15 +1607,6 @@ if ismember(exist(\"%s\"), [2 3 5 103]) print_usage(\"%s\") endif\n" | |||
| 1607 | (when (or help-xref-stack help-xref-forward-stack) | 1607 | (when (or help-xref-stack help-xref-forward-stack) |
| 1608 | (insert "\n")))) | 1608 | (insert "\n")))) |
| 1609 | 1609 | ||
| 1610 | (defvar octave-help-mode-finish-hook nil | ||
| 1611 | "Octave specific hook for `temp-buffer-show-hook'.") | ||
| 1612 | |||
| 1613 | (defun octave-help-mode-finish () | ||
| 1614 | (when (eq major-mode 'octave-help-mode) | ||
| 1615 | (run-hooks 'octave-help-mode-finish-hook))) | ||
| 1616 | |||
| 1617 | (add-hook 'temp-buffer-show-hook 'octave-help-mode-finish) | ||
| 1618 | |||
| 1619 | (defun octave-help (fn) | 1610 | (defun octave-help (fn) |
| 1620 | "Display the documentation of FN." | 1611 | "Display the documentation of FN." |
| 1621 | (interactive (list (octave-completing-read))) | 1612 | (interactive (list (octave-completing-read))) |