(help-with-tutorial): Display completion list right away.

This commit is contained in:
Richard M. Stallman
2002-07-12 23:26:17 +00:00
parent 0fe826e987
commit e870de8835

View File

@@ -45,7 +45,15 @@ If there's no tutorial in that language, `TUTORIAL' is selected.
With arg, you are asked to choose which language."
(interactive "P")
(let ((lang (if arg
(read-language-name 'tutorial "Language: " "English")
(progn
;; Display a completion list right away
;; to guide the user.
(with-output-to-temp-buffer "*Completions*"
(display-completion-list
(all-completions "" language-info-alist
(lambda (elm)
(and (listp elm) (assq 'tutorial elm))))))
(read-language-name 'tutorial "Language: " "English"))
(if (get-language-info current-language-environment 'tutorial)
current-language-environment
"English")))