From: tpeplt <tpeplt@gmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: Displaying result of describe-input-method
Date: Wed, 27 Mar 2024 18:26:01 -0400 [thread overview]
Message-ID: <87plvffh1i.fsf@gmail.com> (raw)
In-Reply-To: <QdcrYWohyAIQvxkw97K3aNt7J3BV6Y2wEFtUxP4i3heAT9hi1JYsMqommPlCjB1_kBG5_DWoZ_dpht75nqZqsanuv3hG7ei2lZUvMnqh3Ag=@protonmail.com> (Heime's message of "Wed, 20 Mar 2024 14:12:26 +0000")
Heime <heimeborgia@protonmail.com> writes:
> Want to display the result of calling 'describe-input-method' based on a user
> selection. But I cannot get the resulting text to be displayed.
>
> (defun razad (uselec)
> (interactive
> (list
> (let ( (cseq '("icelandic-keyboard" "italian-alt-postfix" "icelandic-postfix")) )
> (completing-read
> " Lingu: " cseq nil t "icelandic-postfix"))))
>
> (describe-input-method uselec)
> ;; (call-interactively 'describe-input-method)
>
> )
The resulting text is displayed in a *Help* buffer. Are you not seeing
that result?
Using Emacs version 29.2:
1. Start emacs from a shell prompt:
$ emacs -Q
2. Copy your definition above to the *scratch* buffer and then evaluate
it to define the command ‘razad’.
3. Invoke the command ‘razad’: M-x razad
4. At the prompt " Lingu: icelandic-postfix", accept the default by
pressing RET.
5. A second window is displayed with a *Help* buffer that has the
following contents:
Input method: icelandic-postfix (mode line indicator:IS<)
Icelandic (Íslenska) input method with postfix modifiers
A' -> Á
E' -> É
I' -> Í
O' -> Ó
U' -> Ú
Y' -> Ý
AE -> Æ
OE -> Ö
D/ -> Ð (eth)
T/ -> Þ (thorn)
E= -> €
Doubling the postfix separates the letter and postfix: e.g. a'' -> a'
KEY SEQUENCE
------------
You can input characters by the following key sequences:
key char [type a key sequence to insert the corresponding character]
--- ---- --- ---- --- ---- --- ---- --- ---- --- ---- --- ----
A' Á E' É OE Ö Y' Ý d/ ð o' ó u' ú
AE Æ I' Í T/ Þ a' á e' é oe ö y' ý
D/ Ð O' Ó U' Ú ae æ i' í t/ þ
-- End of *Help* buffer text --
next prev parent reply other threads:[~2024-03-27 22:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-20 14:12 Displaying result of describe-input-method Heime
2024-03-27 22:26 ` tpeplt [this message]
2024-03-28 3:22 ` Emanuel Berg
2024-03-31 11:18 ` Heime
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=87plvffh1i.fsf@gmail.com \
--to=tpeplt@gmail.com \
--cc=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@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.
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).