[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set-input-method versus activate-input-method
From: |
Joost Kremers |
Subject: |
Re: set-input-method versus activate-input-method |
Date: |
Tue, 19 Mar 2024 16:05:10 +0100 |
User-agent: |
mu4e 1.12.0; emacs 29.2 |
On Tue, Mar 19 2024, Heime wrote:
> Both 'set-input-method' and 'activate-input-method' are functions used to work
> with input methods, but they seem to serve different purposes.
>
> Which one should be used in elisp code to change the input method for the
> current
> buffer.
A tip: learn to use Emacs' built-in help facilities:
- Use `C-h f` and `C-h v` (`describe-function` / `describe-variable`) to read
the
doc strings of functions and variables.
- See also `C-h ?` for a quick overview of other help facilities.
- Learn to use the Elisp manual: `C-h i` to access the Info system, then `m` to
access the menu. Type `Elisp RET` to access the Elisp manual.
- In an Info manual, use `i` to find a topic in its index.
- Look at the source (accessible from the *Help* buffer showing the doc string
for a function / variable, provided you have the Emacs sources installed). If
you look at the source for `set-input-method`, you'll notice that it uses
`activate-input-method` internally, which tells you a lot about the relation
between the two.
HTH
--
Joost Kremers
Life has its moments