From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#52245: Wishlist: cycle input methods Date: Wed, 08 Dec 2021 10:40:01 +0100 Message-ID: <87a6hbqvta.fsf@gmail.com> 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; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7176"; mail-complaints-to="usenet@ciao.gmane.io" Cc: andremegafone@gmail.com, tor.a.s.kringeland@ntnu.no, 52245@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 08 10:41:22 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 1mutRy-0001d4-Du for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Dec 2021 10:41:22 +0100 Original-Received: from localhost ([::1]:58130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mutRw-0006nQ-SV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Dec 2021 04:41:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mutRe-0006mu-19 for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 04:41:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56258) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mutRd-0000ut-PV for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 04:41:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mutRd-0003eV-MR for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 04:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Dec 2021 09:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52245 X-GNU-PR-Package: emacs Original-Received: via spool by 52245-submit@debbugs.gnu.org id=B52245.163895641413974 (code B ref 52245); Wed, 08 Dec 2021 09:41:01 +0000 Original-Received: (at 52245) by debbugs.gnu.org; 8 Dec 2021 09:40:14 +0000 Original-Received: from localhost ([127.0.0.1]:39571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mutQr-0003dK-VF for submit@debbugs.gnu.org; Wed, 08 Dec 2021 04:40:14 -0500 Original-Received: from mail-wm1-f41.google.com ([209.85.128.41]:52138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mutQm-0003cv-Nf for 52245@debbugs.gnu.org; Wed, 08 Dec 2021 04:40:12 -0500 Original-Received: by mail-wm1-f41.google.com with SMTP id 137so1334376wma.1 for <52245@debbugs.gnu.org>; Wed, 08 Dec 2021 01:40:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=AJphZEMvU10B14rDeHvTfuwT83ysurL4FiWcxUFWfbw=; b=NmNqjHXh3BMf3mxq/KqzzJK4AcAIopY6rLYlvRf1y4dVlGnYX9t62ACmhTMJBqFho+ s9t/TZ3zmOUz54t5dMIwJXdNhKtnbt1EPjVdtOhjdsu7Si0R5qZX9jOe16qOSWvZ0IoC yYF5/LFSv7UC2mIB4Jq7QBOpW71Yv8tW8PLugV7g7spRRRAZUNyyyX/T+DaA7uFf26sa UCr9B2QfeOkpObX3uObtSnvN7CHERrFPxyK/cEoQ30cSuZfVpEvjSX/P1wWfMC/qGBNx ZSzCcky4XV3YVdrlNzSBdL+J1HIv0JtdkXX8Qo6m3j2DTIJgoSBEhUFza+QoZFGBeqcY r3nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=AJphZEMvU10B14rDeHvTfuwT83ysurL4FiWcxUFWfbw=; b=Fk/+suThle04pc4wXp3qfotx0w/bqsx3/DlFLZkCw9glCYlpJ7SDHAIhyTuzYWbipM RJo80t02L8w8jbdyDDFeV+VEcONNu/rci8JtHIkg8qmuOZuQ2f00fQmOcXzB898eaX6B GVE92WiQ+V9kBFzfvwLHxsj2SjXVitS85pslfFgbC4JXz5t9Y8mi5UDAWRcLiZTAVPI4 fRrJofWjI+dOaK1A6YEJlKfPxsQN18SfRuZommsxHPBl4D84ZVb08KkjAPx6HMFdezbJ NbQle81dmmreuCpJvzeIL7YjRwUJRKoJ/T4uYlHcyyhseRd3eFzi55OkIBb2KEkaWmoj LCfA== X-Gm-Message-State: AOAM531jhRTqQtA3uDb0VUuM7d8aK4JgfMhPB5GwYQwvHE8Lq1dsxVR4 OLPB7bKCzFCzdedBN5WA/LXF1dljSYY= X-Google-Smtp-Source: ABdhPJxfSJ8B4qIDwGAm5rb7/vREl79xi9SDt5O0R6NhiHuSxZFwYjnRCoQe7R8/2hD871iE4W5ESg== X-Received: by 2002:a05:600c:4104:: with SMTP id j4mr14636593wmi.178.1638956402366; Wed, 08 Dec 2021 01:40:02 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:e06b:fb08:141a:5ed3]) by smtp.gmail.com with ESMTPSA id g19sm5322345wmg.12.2021.12.08.01.40.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Dec 2021 01:40:01 -0800 (PST) In-Reply-To: <83v900xru6.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 07 Dec 2021 19:11:45 +0200") 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:221914 Archived-At: >>>>> On Tue, 07 Dec 2021 19:11:45 +0200, Eli Zaretskii said: >> If we=CA=BCre now saying we want a separate command that cycles thro= ugh a >> list of input methods, then we might as well add a separate user >> option for that list (and then we could add *another* user option >> called input-method-toggle-or-cycle to indicate which command should >> be used for C-\) >>=20 >> I guess we could also have C-u C-u C-\ mean 'cycle', but that=CA=BCs >> unergonomic. Eli> The use case that I have in mind is this: even if the user customi= zed Eli> the list of input methods to include more than just one, there cou= ld Eli> be situations where the user needs to use just one input method wh= en Eli> typing. In such situations, it would be good to have a way of Eli> toggling, like we do now, instead of cycling through all the other Eli> methods. Eli> Any reasonable solution to this use case would be welcome. I'm Eli> working with systems which allow you to do something like that, an= d it Eli> frequently annoys me to have to cycle through all the keyboard lay= outs Eli> I defined, just to be able to toggle between US English and some o= ther Eli> language. So I wish that Emacs didn't have such an annoying probl= em, Eli> if possible. Hmm, so how about: - default-input-method is an atom =E2=87=92 C-\ behaves as a toggle - default-input method is a list =E2=87=92 C-\ cycles through them and back to nil =E2=87=92 C-\ with a prefix arg behaves as today, prompting for an input method. C-\ again deactivates the input method - C-u C-u C-\ just unconditionally deactives the current input method, regardless of the value of default-input-method. Or would 'any negative prefix arg' suit better? I now think having the history automatically be part of the list of values to cycle through would not be a good idea: that history can get large, and it can contain duplicates (by default), so trying to reach the end of your default-input-method list could be annoying. Robert --=20