summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-07-12 23:26:17 +0000
committerRichard M. Stallman <rms@gnu.org>2002-07-12 23:26:17 +0000
commite870de8835d8ddcf54b4879bc0e32c1d08035b95 (patch)
treef20a8910b07ba9410a33de9a3580ff8ed328c637 /lisp/help-fns.el
parent0fe826e987e8fb1ce9b82d7955e384e1b14d2924 (diff)
downloademacs-e870de8835d8ddcf54b4879bc0e32c1d08035b95.tar.gz
emacs-e870de8835d8ddcf54b4879bc0e32c1d08035b95.tar.bz2
emacs-e870de8835d8ddcf54b4879bc0e32c1d08035b95.zip
(help-with-tutorial): Display completion list right away.
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el10
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.
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")))