diff options
| author | Juanma Barranquero | 2004-05-22 01:58:25 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2004-05-22 01:58:25 +0000 |
| commit | 7d57db2916957d1ea8b8d1582d96de6fb9ecea05 (patch) | |
| tree | 093cecb2fa20e6e0db249b81e8b955931bc40a9d | |
| parent | f63fd14ef3045ed0390707e919ea16e5c356b7e8 (diff) | |
| download | emacs-7d57db2916957d1ea8b8d1582d96de6fb9ecea05.tar.gz emacs-7d57db2916957d1ea8b8d1582d96de6fb9ecea05.zip | |
(help-add-fundoc-usage): Use %S only for output of `help-make-usage'.
(help-highlight-arguments): Skip function name before searching for
arguments.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/help-fns.el | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d958cc0457f..43e7b47eb61 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2004-05-22 Juanma Barranquero <lektu@terra.es> | ||
| 2 | |||
| 3 | * help-fns.el (help-add-fundoc-usage): Use %S only for output of | ||
| 4 | `help-make-usage'. | ||
| 5 | (help-highlight-arguments): Skip function name before searching | ||
| 6 | for arguments. | ||
| 7 | |||
| 1 | 2004-05-21 Juanma Barranquero <lektu@terra.es> | 8 | 2004-05-21 Juanma Barranquero <lektu@terra.es> |
| 2 | 9 | ||
| 3 | * allout.el (allout-chart-subtree, allout-rebullet-topic-grunt): | 10 | * allout.el (allout-chart-subtree, allout-rebullet-topic-grunt): |
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index e0692119a21..e7e09a431bd 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -181,14 +181,14 @@ ARGLIST can also be t or a string of the form \"(FUN ARG1 ARG2 ...)\"." | |||
| 181 | (unless (stringp docstring) (setq docstring "Not documented")) | 181 | (unless (stringp docstring) (setq docstring "Not documented")) |
| 182 | (if (or (string-match "\n\n(fn\\(\\( .*\\)?)\\)\\'" docstring) (eq arglist t)) | 182 | (if (or (string-match "\n\n(fn\\(\\( .*\\)?)\\)\\'" docstring) (eq arglist t)) |
| 183 | docstring | 183 | docstring |
| 184 | (format "%s%s%S" docstring | 184 | (concat docstring |
| 185 | (if (string-match "\n?\n\\'" docstring) | 185 | (if (string-match "\n?\n\\'" docstring) |
| 186 | (if (< (- (match-end 0) (match-beginning 0)) 2) "\n" "") | 186 | (if (< (- (match-end 0) (match-beginning 0)) 2) "\n" "") |
| 187 | "\n\n") | 187 | "\n\n") |
| 188 | (if (and (stringp arglist) | 188 | (if (and (stringp arglist) |
| 189 | (string-match "\\`([^ ]+\\(.*\\))\\'" arglist)) | 189 | (string-match "\\`([^ ]+\\(.*\\))\\'" arglist)) |
| 190 | (concat "(fn" (match-string 1 arglist) ")") | 190 | (concat "(fn" (match-string 1 arglist) ")") |
| 191 | (help-make-usage 'fn arglist))))) | 191 | (format "%S" (help-make-usage 'fn arglist)))))) |
| 192 | 192 | ||
| 193 | (defun help-function-arglist (def) | 193 | (defun help-function-arglist (def) |
| 194 | ;; Handle symbols aliased to other symbols. | 194 | ;; Handle symbols aliased to other symbols. |
| @@ -275,6 +275,7 @@ else ARG is returned in uppercase normal." | |||
| 275 | (next (not (or args (looking-at "\\[")))) | 275 | (next (not (or args (looking-at "\\[")))) |
| 276 | (opt nil)) | 276 | (opt nil)) |
| 277 | ;; Make a list of all arguments | 277 | ;; Make a list of all arguments |
| 278 | (skip-chars-forward "^ ") | ||
| 278 | (while next | 279 | (while next |
| 279 | (or opt (not (looking-at " &")) (setq opt t)) | 280 | (or opt (not (looking-at " &")) (setq opt t)) |
| 280 | (if (not (re-search-forward " \\([\\[(]*\\)\\([^] &)\.]+\\)" nil t)) | 281 | (if (not (re-search-forward " \\([\\[(]*\\)\\([^] &)\.]+\\)" nil t)) |