From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John =?UTF-8?Q?Ankarstr=C3=B6m?= Newsgroups: gmane.emacs.bugs Subject: bug#52245: Wishlist: cycle input methods Date: Sat, 11 Dec 2021 15:31:59 +0100 Message-ID: <87ilvv5i1s.fsf@ankarstrom.se> References: <874k7rdn17.fsf@gmail.com> <838rx2an87.fsf@gnu.org> <87r1aucc61.fsf@gmail.com> <875ys0flvg.fsf@gmail.com> <871r2oml7o.fsf@gmail.com> <83v900xru6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11638"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (berkeley-unix) To: 52245@debbugs.gnu.org Cancel-Lock: sha1:TENKDv/9fnoz5Z7rVNhXRx3zZRs= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 11 17:58:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mw5hK-0002oa-Tk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Dec 2021 17:58:10 +0100 Original-Received: from localhost ([::1]:34204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mw5hJ-0008AC-QK for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Dec 2021 11:58:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mw5hC-0008A2-In for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2021 11:58:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38385) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mw5hC-0003qP-Ax for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2021 11:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mw5hC-00048o-5J for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2021 11:58:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: John =?UTF-8?Q?Ankarstr=C3=B6m?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Dec 2021 16:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52245 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163924183315851 (code B ref -1); Sat, 11 Dec 2021 16:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Dec 2021 16:57:13 +0000 Original-Received: from localhost ([127.0.0.1]:49931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mw5gN-00047Z-7b for submit@debbugs.gnu.org; Sat, 11 Dec 2021 11:57:13 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:35466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mw3Xn-0006mL-2S for submit@debbugs.gnu.org; Sat, 11 Dec 2021 09:40:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mw3Xm-0006NH-HU for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2021 09:40:10 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:43582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mw3Xh-0000uh-TD for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2021 09:40:09 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mw3Xd-0004K9-QE for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2021 15:40:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 11 Dec 2021 11:57:10 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222130 Archived-At: Eli Zaretskii writes: > The use case that I have in mind is this: even if the user customized > the list of input methods to include more than just one, there could > be situations where the user needs to use just one input method when > typing. In such situations, it would be good to have a way of > toggling, like we do now, instead of cycling through all the other > methods. > > Any reasonable solution to this use case would be welcome. I'm > working with systems which allow you to do something like that, and it > frequently annoys me to have to cycle through all the keyboard layouts > I defined, just to be able to toggle between US English and some other > language. So I wish that Emacs didn't have such an annoying problem, > if possible. IIRC Windows 10 handles this by implementing the input method list as a stack of sorts, so that Win-Space selects an input method similarly to how Alt-Tab selects a window. Pressing Win-Space once is a toggle, but pressing Win-Space consecutively (while holding Win) cycles through all input methods. Emacs could do something similar. A single C-\ could toggle between the two input methods at the top of the list, whereas any number of consecutive C-\'s could cycle the list. The implementation would just need to check last-command.