diff options
| author | Richard M. Stallman | 2002-07-12 23:26:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-07-12 23:26:17 +0000 |
| commit | e870de8835d8ddcf54b4879bc0e32c1d08035b95 (patch) | |
| tree | f20a8910b07ba9410a33de9a3580ff8ed328c637 | |
| parent | 0fe826e987e8fb1ce9b82d7955e384e1b14d2924 (diff) | |
| download | emacs-e870de8835d8ddcf54b4879bc0e32c1d08035b95.tar.gz emacs-e870de8835d8ddcf54b4879bc0e32c1d08035b95.zip | |
(help-with-tutorial): Display completion list right away.
| -rw-r--r-- | lisp/help-fns.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index b6c9ecd456f..996f6a48aaa 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -45,7 +45,15 @@ If there's no tutorial in that language, `TUTORIAL' is selected. | |||
| 45 | With arg, you are asked to choose which language." | 45 | With arg, you are asked to choose which language." |
| 46 | (interactive "P") | 46 | (interactive "P") |
| 47 | (let ((lang (if arg | 47 | (let ((lang (if arg |
| 48 | (read-language-name 'tutorial "Language: " "English") | 48 | (progn |
| 49 | ;; Display a completion list right away | ||
| 50 | ;; to guide the user. | ||
| 51 | (with-output-to-temp-buffer "*Completions*" | ||
| 52 | (display-completion-list | ||
| 53 | (all-completions "" language-info-alist | ||
| 54 | (lambda (elm) | ||
| 55 | (and (listp elm) (assq 'tutorial elm)))))) | ||
| 56 | (read-language-name 'tutorial "Language: " "English")) | ||
| 49 | (if (get-language-info current-language-environment 'tutorial) | 57 | (if (get-language-info current-language-environment 'tutorial) |
| 50 | current-language-environment | 58 | current-language-environment |
| 51 | "English"))) | 59 | "English"))) |