unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* set-input-method versus activate-input-method
@ 2024-03-19 14:36 Heime
  2024-03-19 15:05 ` Joost Kremers
  0 siblings, 1 reply; 2+ messages in thread
From: Heime @ 2024-03-19 14:36 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: set-input-method versus activate-input-method
  2024-03-19 14:36 set-input-method versus activate-input-method Heime
@ 2024-03-19 15:05 ` Joost Kremers
  0 siblings, 0 replies; 2+ messages in thread
From: Joost Kremers @ 2024-03-19 15:05 UTC (permalink / raw)
  To: Heime; +Cc: Heime via Users list for the GNU Emacs text editor

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-19 15:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-19 14:36 set-input-method versus activate-input-method Heime
2024-03-19 15:05 ` Joost Kremers

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