unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to get default input method by set-input-method?
Date: Thu, 26 Dec 2024 14:17:28 +0300	[thread overview]
Message-ID: <Z207SO6VxViJ-GtB@lco2> (raw)
In-Reply-To: <86zfkiye6u.fsf@gnu.org>

* Eli Zaretskii <eliz@gnu.org> [2024-12-26 12:42]:
> > Date: Thu, 26 Dec 2024 11:37:51 +0300
> > From: Jean Louis <bugs@gnu.support>
> > 
> > For long time I have no idea how to go to the default input method by
> > using M-x set-input-method
> > 
> > I am using several input methods, mixing them and I use the M-x
> > set-input-method, not the keybinding.
> > 
> > How to get default input method by set-input-method?
> 
>   M-: (get-language-info current-language-environment 'input-method) RET

(get-language-info current-language-environment 'input-method) ➜ nil
current-language-environment ➜ "English"

I get nil, and then M-x set-input-method cannot go to nil

in fact there is no standard input method that I can find. I see here:

2 possible completions:
english-colemak
english-dvorak

I hope you understand the problem:

- I choose German postfix

- I may choose other input method, those are 2

- after that there is no function or possibility to get interactively
  into that nil

If you confirm that above is true, that there is no way to go back to
NIL for example, then I will use this function:

(defun rcd-input-method-nil ()
  "Reset `input-method' back to NIL."
  (interactive)
  (set-input-method nil))

Jean Louis



  reply	other threads:[~2024-12-26 11:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-26  8:37 How to get default input method by set-input-method? Jean Louis
2024-12-26  9:40 ` Eli Zaretskii
2024-12-26 11:17   ` Jean Louis [this message]
2024-12-26 12:05     ` Eli Zaretskii
2024-12-26 12:18       ` SOLVED - " Jean Louis
2024-12-27 15:57       ` Eric S Fraga
2024-12-27 16:11         ` Eli Zaretskii

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=Z207SO6VxViJ-GtB@lco2 \
    --to=bugs@gnu.support \
    --cc=eliz@gnu.org \
    --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).