From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: `help-with-tutorial' (with arg) completion problem
Date: Wed, 04 Sep 2002 22:47:41 -0400 [thread overview]
Message-ID: <E17mmgH-0007Ha-00@fencepost.gnu.org> (raw)
In-Reply-To: <E17mRi7-0008RY-00@bundalo.shootybangbang.com> (message from John Paul Wallington on Wed, 04 Sep 2002 05:24:11 +0100)
Does this fix it?
*** help-fns.el.~1.23.~ Tue Aug 20 13:32:27 2002
--- help-fns.el Wed Sep 4 20:51:36 2002
***************
*** 45,59 ****
With arg, you are asked to choose which language."
(interactive "P")
(let ((lang (if arg
! (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")))
--- 45,71 ----
With arg, you are asked to choose which language."
(interactive "P")
(let ((lang (if arg
! (let (completion-buffer)
;; 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)))))
! (setq completion-buffer standard-output))
! ;; Arrange to set completion-reference-buffer
! ;; in *Completions* to point to the minibuffer,
! ;; after entering the minibuffer.
! (let ((minibuffer-setup-hook minibuffer-setup-hook))
! (add-hook 'minibuffer-setup-hook
! (lambda ()
! (let ((mini (current-buffer)))
! (with-current-buffer completion-buffer
! (make-local-variable 'completion-reference-buffer)
! (setq completion-reference-buffer
! mini)))))
! (read-language-name 'tutorial "Language: " "English")))
(if (get-language-info current-language-environment 'tutorial)
current-language-environment
"English")))
next prev parent reply other threads:[~2002-09-05 2:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-04 4:24 `help-with-tutorial' (with arg) completion problem John Paul Wallington
2002-09-05 2:47 ` Richard Stallman [this message]
2002-09-05 3:15 ` John Paul Wallington
2002-09-06 16:18 ` Stefan Monnier
2002-09-07 3:17 ` Richard Stallman
2018-12-14 15:39 ` Basil L. Contovounesios
2018-12-14 15:49 ` Eli Zaretskii
2018-12-14 16:34 ` Basil L. Contovounesios
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E17mmgH-0007Ha-00@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).