help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying result of describe-input-method


From: tpeplt
Subject: Re: Displaying result of describe-input-method
Date: Wed, 27 Mar 2024 18:26:01 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

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 --




reply via email to

[Prev in Thread] Current Thread [Next in Thread]