GNU logs - #52245, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 02 Dec 2021 15:31:01 +0000
Resent-Message-ID: <handler.52245.B.16384590314277 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 52245 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.16384590314277
          (code B ref -1); Thu, 02 Dec 2021 15:31:01 +0000
Received: (at submit) by debbugs.gnu.org; 2 Dec 2021 15:30:31 +0000
Received: from localhost ([127.0.0.1]:48950 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mso2Z-00016t-MA
	for submit <at> debbugs.gnu.org; Thu, 02 Dec 2021 10:30:31 -0500
Received: from lists.gnu.org ([209.51.188.17]:51718)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tor.a.s.kringeland@HIDDEN>) id 1mso2U-00016h-KQ
 for submit <at> debbugs.gnu.org; Thu, 02 Dec 2021 10:30:29 -0500
Received: from eggs.gnu.org ([209.51.188.92]:34120)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tor.a.s.kringeland@HIDDEN>)
 id 1mso2U-0004jf-EZ
 for bug-gnu-emacs@HIDDEN; Thu, 02 Dec 2021 10:30:26 -0500
Received: from mailgw301.it.ntnu.no ([129.241.56.179]:45984)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tor.a.s.kringeland@HIDDEN>)
 id 1mso2R-0001D1-Go
 for bug-gnu-emacs@HIDDEN; Thu, 02 Dec 2021 10:30:26 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntnu.no;
 i=@ntnu.no; q=dns/txt; s=s1-1909-ntnu; t=1638459020; h=from : to :
 subject : date : message-id : mime-version : content-type : from;
 bh=C1tnrsCGAsl9MlT9kN2QmKBS/w8DVqCJBNqVCJSoKGg=;
 b=GJNJ1+I9ygxX48YobwoHTpOLFSUsSOakyjrCkV9c9X8qvUmpGNMUeUFJnpuFpwQvSy67S
 qcAuegBwJmFW0A47JU3RGUOVEDvoxo/rbkFHlG78SVg2m/HztsSpe0VCGJVX7yakRDJi2Tk
 1s/fg6vF5ZyJexnGHJFFBtbMYT+PaIxsf316+xXqlTCTSu6lKLrF5JMh7pZEU7r6Z/zNQJK
 c1ReDtZ6oliY9ZpvC39LlgXZO8YwsVwnaUlWBRzqsZqoDBELYzu62B73TM88XkVpjBBneX0
 5Bjh91umfMKIWeA+9SFbHoBAqtGNs17rX74VVe78IK/gXnIg+aaP7AfAQ7lg==
Received: from localhost (localhost [127.0.0.1])
 by mailgw301.it.ntnu.no (Postfix) with ESMTP id 8C7F7682ACD
 for <bug-gnu-emacs@HIDDEN>; Thu,  2 Dec 2021 16:30:20 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mailgw301.it.ntnu.no
X-Spam-Flag: NO
X-Spam-Score: -4.59
X-Spam-Level: 
Received: from mailgw301.it.ntnu.no ([127.0.0.1])
 by localhost (mailgw301.it.ntnu.no [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 11Wp-Jk2Di3D for <bug-gnu-emacs@HIDDEN>;
 Thu,  2 Dec 2021 16:30:20 +0100 (CET)
Received: from localhost (unknown [91.219.215.154])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: takringe@HIDDEN)
 by mailgw301.it.ntnu.no (Postfix) with ESMTPSA id 22BD7680F99
 for <bug-gnu-emacs@HIDDEN>; Thu,  2 Dec 2021 16:30:19 +0100 (CET)
From: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
Date: Thu, 02 Dec 2021 16:30:18 +0100
Message-ID: <m2zgpj9g8l.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=129.241.56.179;
 envelope-from=tor.a.s.kringeland@HIDDEN; helo=mailgw301.it.ntnu.no
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

This was suggested by Robert Pluim and discussed in bug#52173.

Basically, extend `toggle-input-method' to cycle through multiple input
methods, which would be very useful for multilingual writing.




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
Subject: bug#52245: Acknowledgement (Wishlist: cycle input methods)
Message-ID: <handler.52245.B.16384590314277.ack <at> debbugs.gnu.org>
References: <m2zgpj9g8l.fsf@HIDDEN>
X-Gnu-PR-Message: ack 52245
X-Gnu-PR-Package: emacs
Reply-To: 52245 <at> debbugs.gnu.org
Date: Thu, 02 Dec 2021 15:31:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 52245 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
52245: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D52245
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 02 Dec 2021 15:51:02 +0000
Resent-Message-ID: <handler.52245.B52245.16384602056289 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
Cc: 52245 <at> debbugs.gnu.org
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.16384602056289
          (code B ref 52245); Thu, 02 Dec 2021 15:51:02 +0000
Received: (at 52245) by debbugs.gnu.org; 2 Dec 2021 15:50:05 +0000
Received: from localhost ([127.0.0.1]:48975 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1msoLV-0001dN-Gd
	for submit <at> debbugs.gnu.org; Thu, 02 Dec 2021 10:50:05 -0500
Received: from mail-wr1-f50.google.com ([209.85.221.50]:39644)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1msoLU-0001cl-Au
 for 52245 <at> debbugs.gnu.org; Thu, 02 Dec 2021 10:50:05 -0500
Received: by mail-wr1-f50.google.com with SMTP id a18so60666546wrn.6
 for <52245 <at> debbugs.gnu.org>; Thu, 02 Dec 2021 07:50:04 -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=XG85TbpJmoRnanNsjtPHKsda3HiJIWXz/QmrwFahkp4=;
 b=DS1UQpEk/9JK2FZld/7dtf5RIgzVj5rhf17ta15CfGDD8R2l5WyhGpL4DPRo/BI11s
 DbQOyHRwv8kNR7GoUW1PH4JKoXspTMU0v9cT56tXxpjzI+NooMY0xfTrlTHHSQYA5tga
 PoBbpHJwlsOq91iGwIShzSQuk3qVt02bVg/fpJTROCoSEYcV7U+Mid8UtyKiePnpBOJO
 POS9wzhnfV8jtEyiFSmFwX1sqNyJJhZR+IOfxzy+xTo/x2DtT7mq1qffYyUrfkDh3Amv
 gtZV13t0J3nmt8AwBaETP9irPru53051Yld83xaIvnoO94oLiIyeQSluRpWiBFi9H6M/
 6NCQ==
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=XG85TbpJmoRnanNsjtPHKsda3HiJIWXz/QmrwFahkp4=;
 b=PQlGD+WsoF1XUsJ675o1JqZUMAJGNlPcyW/BSR1XJYeYNIlt900R1/Kb+YSR9kSLTX
 jqmLK0MaVUQzBi4O4AwQcrclnCfdx10fNfyP3nbOnP5o+909HxOHWhF6hcC2yjzWTf0+
 JjemraPchZFOKD5IOd38/gJauTXq9eCeU5ZCKaK0JPjiw9zdRhmOf3KhHTGtSB6xYrFF
 M52OsDlRhOAkiYRZstmoFcHKaS4UPPX6mMrknPzPpIhySGZ7TP0r3ziGqd0RwHFWFN1V
 3i61+j1qhFIaqnRsYV5Ak0xMDbaL5i1+ucnI/8tIApTnMNzjEWc9Y57QsXRz+RL1DYO1
 zjQw==
X-Gm-Message-State: AOAM530YzYuNTyJkP/Or/qQtlVQwaCNDOFJOQDpbzuDGJOOzWz83MitY
 eDxLahdsUHwZ9yzO3BJZifWo2MDVVrE=
X-Google-Smtp-Source: ABdhPJyqQwhrB7CpE8l9GE5/rHX9wT2Xy2mY0cC5EuO1SI+A2AFyjnEXCZsocH6Xr1eNiEfnoyY6/Q==
X-Received: by 2002:adf:d22e:: with SMTP id k14mr15350973wrh.446.1638460198045; 
 Thu, 02 Dec 2021 07:49:58 -0800 (PST)
Received: from rltb ([2a01:e0a:3f3:fb50:97f2:6b7d:aacf:5c88])
 by smtp.gmail.com with ESMTPSA id m125sm2504810wmm.39.2021.12.02.07.49.57
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 02 Dec 2021 07:49:57 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
References: <m2zgpj9g8l.fsf@HIDDEN>
Date: Thu, 02 Dec 2021 16:49:56 +0100
In-Reply-To: <m2zgpj9g8l.fsf@HIDDEN> (Tor Kringeland's message of "Thu, 02
 Dec 2021 16:30:18 +0100")
Message-ID: <874k7rdn17.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Thu, 02 Dec 2021 16:30:18 +0100, Tor Kringeland <tor.a.s.kringelan=
d@HIDDEN> said:

    Tor> This was suggested by Robert Pluim and discussed in bug#52173.
    Tor> Basically, extend `toggle-input-method' to cycle through multiple =
input
    Tor> methods, which would be very useful for multilingual writing.

Having slept since then =F0=9F=98=8A, I=CA=BCve come up with a slightly dif=
ferent
variant.

`default-input-method' is currently either nil or an input method to
use for `toggle-input-method'. Extend it to allow it to be a list to
cycle through, containing either

- input-method symbols
- the symbol 'input-method-history

So you could have eg

'(latin-prefix input-method-history czech)

If input-method-history contained 'polish, then cycling would go

latin-prefix -> polish -> czech -> no input method

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 02 Dec 2021 18:15:01 +0000
Resent-Message-ID: <handler.52245.B52245.163846886013496 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Robert Pluim <rpluim@HIDDEN>
Cc: tor.a.s.kringeland@HIDDEN, 52245 <at> debbugs.gnu.org
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.163846886013496
          (code B ref 52245); Thu, 02 Dec 2021 18:15:01 +0000
Received: (at 52245) by debbugs.gnu.org; 2 Dec 2021 18:14:20 +0000
Received: from localhost ([127.0.0.1]:49195 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1msqb6-0003Vc-Jk
	for submit <at> debbugs.gnu.org; Thu, 02 Dec 2021 13:14:20 -0500
Received: from eggs.gnu.org ([209.51.188.92]:54210)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1msqb4-0003VP-Do
 for 52245 <at> debbugs.gnu.org; Thu, 02 Dec 2021 13:14:18 -0500
Received: from [2001:470:142:3::e] (port=55464 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1msqay-0003Qd-Pm; Thu, 02 Dec 2021 13:14:12 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=WJpSfRSyseE2EbIfejB8gn6VzFc/BJoKRGLEaNbR8tY=; b=T9rN8HjrG7fs
 Xjw4E7Tm8gzpDGqvGs5YQl3qpQ0YjlorU7YZKs0GGVhIa/ZDqDArBFKbiI1kiYk6l4MpY6TKXmK9k
 e8uemOaq1API1v6203OgKiTkmwmkD3Hzrk2eK0DSBZh3nEeM6I2jKpUW7+G7umnSb9kNhj5cyFzOC
 yY63v/kWnGUNcuwEHFaJxMQO8jCTBoLWOo1O9VP1LYn2ZlrZ81aZJSbWZxz9PtBoo6HTyID77aL8d
 caJt8NI4fGiAt24q9l2QrwaYSJ/DrccPzwJFQbZePiYfQwcn/zvUBdaDs8h1F+Pd6TugmTA0LQiwL
 mTKiYxiGrOyR/SxkNJ//nA==;
Received: from [87.69.77.57] (port=2894 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1msqay-0001qq-Gu; Thu, 02 Dec 2021 13:14:12 -0500
Date: Thu, 02 Dec 2021 20:14:00 +0200
Message-Id: <838rx2an87.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <874k7rdn17.fsf@HIDDEN> (message from Robert Pluim on Thu, 02
 Dec 2021 16:49:56 +0100)
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Robert Pluim <rpluim@HIDDEN>
> Date: Thu, 02 Dec 2021 16:49:56 +0100
> Cc: 52245 <at> debbugs.gnu.org
> 
> `default-input-method' is currently either nil or an input method to
> use for `toggle-input-method'. Extend it to allow it to be a list to
> cycle through, containing either
> 
> - input-method symbols
> - the symbol 'input-method-history
> 
> So you could have eg
> 
> '(latin-prefix input-method-history czech)
> 
> If input-method-history contained 'polish, then cycling would go
> 
> latin-prefix -> polish -> czech -> no input method

That's okay, but we should have this as an optional behavior, so that
people could still toggle only between some input method and no input
method with a single C-\, even if they defined a list of them.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 03 Dec 2021 08:43:01 +0000
Resent-Message-ID: <handler.52245.B52245.163852094520181 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: tor.a.s.kringeland@HIDDEN, 52245 <at> debbugs.gnu.org
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.163852094520181
          (code B ref 52245); Fri, 03 Dec 2021 08:43:01 +0000
Received: (at 52245) by debbugs.gnu.org; 3 Dec 2021 08:42:25 +0000
Received: from localhost ([127.0.0.1]:49977 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mt49B-0005FR-4v
	for submit <at> debbugs.gnu.org; Fri, 03 Dec 2021 03:42:25 -0500
Received: from mail-wm1-f43.google.com ([209.85.128.43]:54152)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1mt498-0005FE-8q
 for 52245 <at> debbugs.gnu.org; Fri, 03 Dec 2021 03:42:23 -0500
Received: by mail-wm1-f43.google.com with SMTP id y196so1709426wmc.3
 for <52245 <at> debbugs.gnu.org>; Fri, 03 Dec 2021 00:42:22 -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=xta18UdElLvEczQ4RIU/KQEMVMnley8cUuCEbv5N210=;
 b=KVIK5muTU37WtTZmF6N5Tqlx1fv1Ute/1vgS6pP75NfJ3+frPfZKCjBk8hzO1FlVyq
 uZaMw8l87i+AQOAF82xw/B3Rvz6QczBo+gJ5484Ud8Q2Q1YY2JRld46OqTqnjki2SZpA
 yYC5I4pwIr206bxsShBzpLH6B7GWuFUW2Mwg9hlRVMvRLSDeOjUkZvWH2hZm92xmpScL
 yPS/lPg1Bc3NDwSl4SVP5eLkH9Cu0kzDra0frXx6C2pAC+V0XGcQN45Kssm8dvd32quj
 P3IJPxly3W0AEDzBVJn892Uo/7I3VCCTawr0FrlSOEaSqK7Goc3mp2A/Gh4OUSWKd4Ow
 Z95g==
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=xta18UdElLvEczQ4RIU/KQEMVMnley8cUuCEbv5N210=;
 b=lhKVPVybO5gReT8MwElck/uOqCjQsnYBgqxfOgsB7yyoN3M2ymMEB3FndTH66d6Y95
 azrxOeOzJdp5m7EHujucKcWp/NYasOjkCyGPqHEppvZ8LVuoPkCnsCabNO3t64JbKxt4
 x7ZiIKrv4uMi8VkBvyWbjK7VVPxbGumkyU4w6LyKuLxTWZt3nnq82QyfDvuC2u2HqqmN
 hA9GNFdyIhcW+1e8NbJpavvk8lk5tfg6QM+petA49c01ds7grsrmxB6qlxzVEWqOX75H
 KtzCDhp36HDPH4zWrwjkZzw4aDf+xv6lriHzZKc3tEOhUdXD+BQ/5w6y3CW+O1lxCKGD
 qKoQ==
X-Gm-Message-State: AOAM531EUcusUHYuySsMeTmcXDl/WJgXMrF7IK8oIxwnnXUkl7f2vSMN
 r9jLvJccrIHN4ABnfmYG/cSHaDyOXuk=
X-Google-Smtp-Source: ABdhPJxUnpiA2QqvRnRWliNVHaql068vKE5O0j+lkMJW/JlsXt6XSKNw6HLMv+DWOEwPdnOTAmjPAA==
X-Received: by 2002:a05:600c:40b:: with SMTP id
 q11mr13008012wmb.185.1638520936129; 
 Fri, 03 Dec 2021 00:42:16 -0800 (PST)
Received: from rltb ([2a01:e0a:3f3:fb50:97f2:6b7d:aacf:5c88])
 by smtp.gmail.com with ESMTPSA id d15sm2778235wri.50.2021.12.03.00.42.15
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 03 Dec 2021 00:42:15 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN>
Date: Fri, 03 Dec 2021 09:42:14 +0100
In-Reply-To: <838rx2an87.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 02 Dec
 2021 20:14:00 +0200")
Message-ID: <87r1aucc61.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Thu, 02 Dec 2021 20:14:00 +0200, Eli Zaretskii <eliz@HIDDEN> said:

    Eli> That's okay, but we should have this as an optional behavior, so t=
hat
    Eli> people could still toggle only between some input method and no in=
put
    Eli> method with a single C-\, even if they defined a list of them.

It would be optional: people who choose to customize
default-input-method to a list get the behaviour, people who leave it
as a symbol don=CA=BCt. I don=CA=BCt see why we=CA=BCd need to add
yet-another-variable to essentially say "ignore this request you've
made via this other variable".

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: =?UTF-8?Q?Andr=C3=A9?= A. Gomes <andremegafone@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 07 Dec 2021 15:52:02 +0000
Resent-Message-ID: <handler.52245.B52245.163889231212703 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: Robert Pluim <rpluim@HIDDEN>, 52245 <at> debbugs.gnu.org, tor.a.s.kringeland@HIDDEN
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.163889231212703
          (code B ref 52245); Tue, 07 Dec 2021 15:52:02 +0000
Received: (at 52245) by debbugs.gnu.org; 7 Dec 2021 15:51:52 +0000
Received: from localhost ([127.0.0.1]:38464 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mucky-0003Ip-Ek
	for submit <at> debbugs.gnu.org; Tue, 07 Dec 2021 10:51:52 -0500
Received: from mail-wr1-f44.google.com ([209.85.221.44]:46001)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andremegafone@HIDDEN>) id 1muckt-0003IZ-Qd
 for 52245 <at> debbugs.gnu.org; Tue, 07 Dec 2021 10:51:51 -0500
Received: by mail-wr1-f44.google.com with SMTP id o13so30343825wrs.12
 for <52245 <at> debbugs.gnu.org>; Tue, 07 Dec 2021 07:51:47 -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
 :user-agent:mime-version:content-transfer-encoding;
 bh=vZfPCSXKNq2btlhvE5LTrlGqZXwab0FBQXCky2BSMNc=;
 b=ItpJj3pq0iJQf1ToaZmqEs5U7cq8GnQ8EucXFGOX0/gewlcpRqIZF37VREM8coKEg2
 vNf0wxs0akKlF9V3HIbHIdC3UL9t0reZGdc2z8t3eGfz2QLrgc0zM/wZaJyBjJjYhVGv
 IZhPhNyY/L+EsZY4ELxMbFy6m0IhMF+gkEF1GmUzAq3jsjyu+oQZT7zHngjABfzCnvoy
 BIExhZZ5MwEAOF/N+AA+EEtZfQQjCAnf+8Ry5WnI0mf7BsI+lQOEJvsBHYdZSsmFNxsw
 sEs9G95IjcVgz1v0gw1iBtzuvneCH2Dt9Es4wzF+JH84Eudw/9ARNB2XmNgnJj2uVxru
 +8bA==
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:user-agent:mime-version:content-transfer-encoding;
 bh=vZfPCSXKNq2btlhvE5LTrlGqZXwab0FBQXCky2BSMNc=;
 b=u37bAefJykuQxYowQan+fMyNWNArZjdPP0CxhyDoTrZ6J700n9/UDLpRwmvKROdgwt
 bSMH8Oj+X1wWwO0cVmfG3T7kupCYv2RZsXHWZ3R1iC9LhDTU6B/71x/BT9YZd8OPZlM6
 hg61u6tq8ieM5LKIwU/IBofJ97xVMEPBUSZctMdGgzH2EdXhYQ5n2yz6vujk9qC6c+Ss
 y7TS7ExTuB8DeorPbjU+8j+t4rVxyUw4otALKl0oer92eb2gNwo8yH+hkJMQp45bg+AK
 vBDmtLDAluvsttwh3ahPWHWdxmsJZ/jMDVMRhoa5IxVQvjKWW8C2ihb/jNhHQRgBQkC2
 84uw==
X-Gm-Message-State: AOAM5321ZC7T5OMefMNCuxCDkbF2ZTTuRJkQyP/GCQqHenD09I+DBnS/
 HJgA9EJph/iiFc0yFcrjea5pscr/JDybbA==
X-Google-Smtp-Source: ABdhPJwUuD/KHL6k6LHuLp8nqj6PY+sREj8FYH8iWa0uKU4fFIspevFxzg6CIc8fgfVE/I405FiKaA==
X-Received: by 2002:a5d:6d8a:: with SMTP id l10mr51416297wrs.232.1638892301816; 
 Tue, 07 Dec 2021 07:51:41 -0800 (PST)
Received: from guix-xps13 ([2001:818:daa9:6700:462d:384e:6de8:4a1c])
 by smtp.gmail.com with ESMTPSA id z5sm3874484wmp.26.2021.12.07.07.51.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 07 Dec 2021 07:51:41 -0800 (PST)
From: =?UTF-8?Q?Andr=C3=A9?= A. Gomes <andremegafone@HIDDEN>
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN>
Date: Tue, 07 Dec 2021 15:51:40 +0000
In-Reply-To: <838rx2an87.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 02 Dec
 2021 20:14:00 +0200")
Message-ID: <87czm8fm5v.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Robert Pluim <rpluim@HIDDEN>
>> Date: Thu, 02 Dec 2021 16:49:56 +0100
>> Cc: 52245 <at> debbugs.gnu.org
>>
>> `default-input-method' is currently either nil or an input method to
>> use for `toggle-input-method'. Extend it to allow it to be a list to
>> cycle through, containing either
>>
>> - input-method symbols
>> - the symbol 'input-method-history
>>
>> So you could have eg
>>
>> '(latin-prefix input-method-history czech)
>>
>> If input-method-history contained 'polish, then cycling would go
>>
>> latin-prefix -> polish -> czech -> no input method
>
> That's okay, but we should have this as an optional behavior, so that
> people could still toggle only between some input method and no input
> method with a single C-\, even if they defined a list of them.

I agree, but there's a minor detail.  C-\ should not toggle between nil
and the last selected input method, but between the last selected input
method and `default-input-method`, which might be non-nil.


--
Andr=C3=A9 A. Gomes
"Free Thought, Free World"




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: =?UTF-8?Q?Andr=C3=A9?= A. Gomes <andremegafone@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 07 Dec 2021 15:59:02 +0000
Resent-Message-ID: <handler.52245.B52245.163889268513298 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Robert Pluim <rpluim@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 52245 <at> debbugs.gnu.org, tor.a.s.kringeland@HIDDEN
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.163889268513298
          (code B ref 52245); Tue, 07 Dec 2021 15:59:02 +0000
Received: (at 52245) by debbugs.gnu.org; 7 Dec 2021 15:58:05 +0000
Received: from localhost ([127.0.0.1]:38472 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mucqz-0003SQ-Dq
	for submit <at> debbugs.gnu.org; Tue, 07 Dec 2021 10:58:05 -0500
Received: from mail-wm1-f52.google.com ([209.85.128.52]:53089)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andremegafone@HIDDEN>) id 1mucqx-0003Ru-BS
 for 52245 <at> debbugs.gnu.org; Tue, 07 Dec 2021 10:58:03 -0500
Received: by mail-wm1-f52.google.com with SMTP id o29so11156289wms.2
 for <52245 <at> debbugs.gnu.org>; Tue, 07 Dec 2021 07:58:03 -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
 :user-agent:mime-version:content-transfer-encoding;
 bh=PlNcIy4qMauJNkNBgMaoA9cEBiVTRPB7oVfcSb7+r8I=;
 b=Z30RKw7H5dxHPREDDiPpWSmmWT57DSe0OJNyzm7POdkU4DpB8+N4E3JBgN0VCs3Nu1
 edn2HmARLsco1BIkSmcHaQErbaca4/Wbhm9PGuwFyJysjmVZb2BklCVsMcdUrShisU+e
 vn2yPOQBuC3Y4Q4WMLBc82ez0RhdD+XZm9BMHk7/Iu4u0zLTg56G54cIA1dCf2TiT0OQ
 1ek1JjEoRob2ATXtDGdlLmlBqAvcPScHcHUNICadXYIEHBVPicLTxEJNwUADyjtd2WaJ
 S+g6Py7h9lUDZbi4hQAGpJfVt+pnQHtSMBQJylARB1P2QrV0wXwQ9B6F0b6RN4Wm4VrW
 O9PA==
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:user-agent:mime-version:content-transfer-encoding;
 bh=PlNcIy4qMauJNkNBgMaoA9cEBiVTRPB7oVfcSb7+r8I=;
 b=70x6ylQUjan3BrajfpgeA0KOEkJW2n0bOvhwsmxKbmBJwkcdoIiw5cR4PpJlVQQrcM
 pwAvOa9HWn9fw1UnUdBwaAVNg1cqcRXxMrER9FwSf1CRdoOb85pMqA8h5SA45ZnE/2uU
 QH83K9Cx7t129uiIrzi5dkuBoy/uphrI0yrfIi+Is7c3tAsgxSI6BjubCjsuzq+VvYFw
 6zpCz3LQQE20nCKJuK4dmc2aRoPuRPHU1pRnBPS831UCb7DqslKo2riFtalqcsXGlCBY
 17tfpVbmkJYZeiQ4Y+s7de6ScCDHUePoB8caZfXyhHDIEO9VShBXz/DL7zylWEFD2mnt
 f/nA==
X-Gm-Message-State: AOAM533iS5sZRG0oJTFi8wpKAuOyB2UJuRrtZZvQkiOwdFx143JcVREl
 qPc5ztLlCP12Z5yJAoywUbbzrHJ4eNXX5A==
X-Google-Smtp-Source: ABdhPJxX6F0e/RrZseRVM98pWf8oqwFgnkzaua66ia3vK1zX5ok6oFxBzBvg3vMqp5F0L5oCGaGUBg==
X-Received: by 2002:a05:600c:21c3:: with SMTP id
 x3mr7914870wmj.13.1638892677504; 
 Tue, 07 Dec 2021 07:57:57 -0800 (PST)
Received: from guix-xps13 ([2001:818:daa9:6700:462d:384e:6de8:4a1c])
 by smtp.gmail.com with ESMTPSA id d2sm22534wmb.31.2021.12.07.07.57.56
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 07 Dec 2021 07:57:56 -0800 (PST)
From: =?UTF-8?Q?Andr=C3=A9?= A. Gomes <andremegafone@HIDDEN>
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
Date: Tue, 07 Dec 2021 15:57:55 +0000
In-Reply-To: <87r1aucc61.fsf@HIDDEN> (Robert Pluim's message of "Fri, 03
 Dec 2021 09:42:14 +0100")
Message-ID: <875ys0flvg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Robert Pluim <rpluim@HIDDEN> writes:

>>>>>> On Thu, 02 Dec 2021 20:14:00 +0200, Eli Zaretskii <eliz@HIDDEN> sai=
d:
>
>     Eli> That's okay, but we should have this as an optional behavior, so=
 that
>     Eli> people could still toggle only between some input method and no =
input
>     Eli> method with a single C-\, even if they defined a list of them.
>
> It would be optional: people who choose to customize
> default-input-method to a list get the behaviour, people who leave it
> as a symbol don=CA=BCt. I don=CA=BCt see why we=CA=BCd need to add
> yet-another-variable to essentially say "ignore this request you've
> made via this other variable".

If I understand correctly, we're not discussing variables but commands.
Eli urges that it's import to keep C-\ as a toggle, and to add another
command to cycle the ring.  Seems fair to me, so that the old behaviour
is preserved.

Let's continue the discussion since I find this feature valuable.


--
Andr=C3=A9 A. Gomes
"Free Thought, Free World"




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 07 Dec 2021 16:31:01 +0000
Resent-Message-ID: <handler.52245.B52245.163889463016576 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?Andr=C3=A9?= A. Gomes <andremegafone@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 52245 <at> debbugs.gnu.org, tor.a.s.kringeland@HIDDEN
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.163889463016576
          (code B ref 52245); Tue, 07 Dec 2021 16:31:01 +0000
Received: (at 52245) by debbugs.gnu.org; 7 Dec 2021 16:30:30 +0000
Received: from localhost ([127.0.0.1]:38494 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mudML-0004JI-Rf
	for submit <at> debbugs.gnu.org; Tue, 07 Dec 2021 11:30:30 -0500
Received: from mail-wm1-f48.google.com ([209.85.128.48]:52974)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1mudMJ-0004J3-9a
 for 52245 <at> debbugs.gnu.org; Tue, 07 Dec 2021 11:30:29 -0500
Received: by mail-wm1-f48.google.com with SMTP id o29so11247360wms.2
 for <52245 <at> debbugs.gnu.org>; Tue, 07 Dec 2021 08:30:27 -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=9GVP2a4lehbZh3t1wAlaRBcQ3n8jZ6c93W9wkCGi9p8=;
 b=GpOkJ1OPFLpExJ8SY2njKa+YKdFxpdY5Ii0otLEGPGCF1hlzGSpIVCl6jH/uMgCkO1
 c2r56ejuCZ2TQ2HSUJNLKRadAk1vORfYkqMbE/XUPigXGwAwp3AypnBqNWdgfnxP6ca0
 AtIe7nUBpISExm5eTklolFSknA9j1YlSDXd8KYYpabsBc9lR266sL5GcWyoE0LRrZbzz
 SQ5zaOw/F5wT3UFfxugLOdmsPtHFCssyIlDIovMvRvlKFQGVCeCpseYjR9m5zUB4OCab
 JC9QatigAppEcemk4gBVBapmpAmy+lj46XI0TqFY7u3pSKcUxiCKSC6I2Go+LzcCFrX9
 8T9Q==
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=9GVP2a4lehbZh3t1wAlaRBcQ3n8jZ6c93W9wkCGi9p8=;
 b=EY4aO+15W1g+Ysa/sMO43Up9nSi41QGVajz/qKQ1Z1BU7vTIwfTQWX3vE26bd9schR
 c1V0TzGCZuEgu0wIsPwZ+PZSAJ/x9A28jOOcEvMz7DeW2oEYXmEAtLp11UHQe8JcM4ox
 DCoisvbeQvhX9Fl4xfdEw+buF8wAY3RHnfPWF1bY1zkQsY0i8L/EzRgTSnEs3iM5STO9
 yhiU2uobdLA2EfiSmPoDsVufmL3klrl9hPFq96wx7ikU3IHIGqESnRKVC8GHLFkr+zTS
 9BcChJjG7amMTqMkpUS3jXvIRjTnfCJuX21YbeYHcznqvocyXCCpcEnYFTTbPJg5GmAO
 jXbg==
X-Gm-Message-State: AOAM531glkwzxacaCojVfyHBESVaRIhOQo8SFrA0/AJr694ICrIFXmru
 Kvft2XucYuRufVnIhwQM+Clvo5UmQvOdBg==
X-Google-Smtp-Source: ABdhPJxmEhlrpA8lDX1hFwJAMaF3tYkKfzd0DYus6IPL1TG07HfFGJQZ50kdz9CNr2MEZyaegwtyjA==
X-Received: by 2002:a1c:7f43:: with SMTP id a64mr8610351wmd.4.1638894621077;
 Tue, 07 Dec 2021 08:30:21 -0800 (PST)
Received: from rltb ([2a01:e0a:3f3:fb50:cebf:1ade:d5ce:2eb3])
 by smtp.gmail.com with ESMTPSA id h204sm64134wmh.33.2021.12.07.08.30.20
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 07 Dec 2021 08:30:20 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
 <875ys0flvg.fsf@HIDDEN>
Date: Tue, 07 Dec 2021 17:30:19 +0100
In-Reply-To: <875ys0flvg.fsf@HIDDEN> ("=?UTF-8?Q?Andr=C3=A9?= A.
 Gomes"'s message of "Tue, 07 Dec 2021 15:57:55 +0000")
Message-ID: <871r2oml7o.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Tue, 07 Dec 2021 15:57:55 +0000, Andr=C3=A9 A. Gomes <andremegafon=
e@HIDDEN> said:

    Andr=C3=A9> Robert Pluim <rpluim@HIDDEN> writes:
    >>>>>>> On Thu, 02 Dec 2021 20:14:00 +0200, Eli Zaretskii <eliz@HIDDEN=
> said:
    >>=20
    Eli> That's okay, but we should have this as an optional behavior, so t=
hat
    Eli> people could still toggle only between some input method and no in=
put
    Eli> method with a single C-\, even if they defined a list of them.
    >>=20
    >> It would be optional: people who choose to customize
    >> default-input-method to a list get the behaviour, people who leave it
    >> as a symbol don=CA=BCt. I don=CA=BCt see why we=CA=BCd need to add
    >> yet-another-variable to essentially say "ignore this request you've
    >> made via this other variable".

    Andr=C3=A9> If I understand correctly, we're not discussing variables b=
ut commands.
    Andr=C3=A9> Eli urges that it's import to keep C-\ as a toggle, and to =
add another
    Andr=C3=A9> command to cycle the ring.  Seems fair to me, so that the o=
ld behaviour
    Andr=C3=A9> is preserved.

We can keep C-\ as a toggle, 100% identical to how it works today. All
people who have customized `default-input-method' to a single value
have to do is nothing whatsoever.

If we=CA=BCre now saying we want a separate command that cycles through 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-\)

I guess we could also have C-u C-u C-\ mean 'cycle', but that=CA=BCs
unergonomic.

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 07 Dec 2021 17:12:01 +0000
Resent-Message-ID: <handler.52245.B52245.163889711420803 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Robert Pluim <rpluim@HIDDEN>
Cc: andremegafone@HIDDEN, tor.a.s.kringeland@HIDDEN, 52245 <at> debbugs.gnu.org
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.163889711420803
          (code B ref 52245); Tue, 07 Dec 2021 17:12:01 +0000
Received: (at 52245) by debbugs.gnu.org; 7 Dec 2021 17:11:54 +0000
Received: from localhost ([127.0.0.1]:38522 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mue0P-0005PT-R0
	for submit <at> debbugs.gnu.org; Tue, 07 Dec 2021 12:11:54 -0500
Received: from eggs.gnu.org ([209.51.188.92]:42526)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1mue0M-0005PE-3M
 for 52245 <at> debbugs.gnu.org; Tue, 07 Dec 2021 12:11:53 -0500
Received: from [2001:470:142:3::e] (port=49338 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mue0G-0005gN-EW; Tue, 07 Dec 2021 12:11:44 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=mlpHTk1UiT6X1Z0Hlnu+fsX//tHPTUKTI00dY2oqHas=; b=QYtJ23Ls7zGEaQyoVXoV
 0FxUMvxGGcylm628BKInMCQ/vvPgLHm/IJcNZNhxSNFrpuinHZDGYCfIa4odB8t1KeHwevVRiEPrY
 xMGe1tKL8dvktigAWhrSIlSWfbxsT9qcFuN7fXmFLYtK5cQDS13yFGI0xjLGHKSQbocKl1YIo4hEJ
 gP4CluY2hC+0kv08gyRQVNWt+kJm4N7R/P1zF8wKqY8Rjmw+/hzv2YYxi6K7mdgnHxZ7SmCWMTXtV
 UhSPuGOXlsRVUBGXd7wjWyd+jPvSHF4sRbtlIgTMl0MczzdBsScW2FcHQCVxAyv4tCXgm6fEMjbpR
 einBIXN332gTRw==;
Received: from [87.69.77.57] (port=3139 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mue0G-0002TW-7f; Tue, 07 Dec 2021 12:11:44 -0500
Date: Tue, 07 Dec 2021 19:11:45 +0200
Message-Id: <83v900xru6.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <871r2oml7o.fsf@HIDDEN> (message from Robert Pluim on Tue, 07
 Dec 2021 17:30:19 +0100)
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
 <875ys0flvg.fsf@HIDDEN> <871r2oml7o.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Robert Pluim <rpluim@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>,  tor.a.s.kringeland@HIDDEN,
>   52245 <at> debbugs.gnu.org
> Date: Tue, 07 Dec 2021 17:30:19 +0100
> 
>     André> If I understand correctly, we're not discussing variables but commands.
>     André> Eli urges that it's import to keep C-\ as a toggle, and to add another
>     André> command to cycle the ring.  Seems fair to me, so that the old behaviour
>     André> is preserved.
> 
> We can keep C-\ as a toggle, 100% identical to how it works today. All
> people who have customized `default-input-method' to a single value
> have to do is nothing whatsoever.
> 
> If weʼre now saying we want a separate command that cycles through 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-\)
> 
> I guess we could also have C-u C-u C-\ mean 'cycle', but thatʼs
> unergonomic.

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.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 08 Dec 2021 09:41:01 +0000
Resent-Message-ID: <handler.52245.B52245.163895641413974 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: andremegafone@HIDDEN, tor.a.s.kringeland@HIDDEN, 52245 <at> debbugs.gnu.org
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.163895641413974
          (code B ref 52245); Wed, 08 Dec 2021 09:41:01 +0000
Received: (at 52245) by debbugs.gnu.org; 8 Dec 2021 09:40:14 +0000
Received: from localhost ([127.0.0.1]:39571 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mutQr-0003dK-VF
	for submit <at> debbugs.gnu.org; Wed, 08 Dec 2021 04:40:14 -0500
Received: from mail-wm1-f41.google.com ([209.85.128.41]:52138)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1mutQm-0003cv-Nf
 for 52245 <at> debbugs.gnu.org; Wed, 08 Dec 2021 04:40:12 -0500
Received: by mail-wm1-f41.google.com with SMTP id 137so1334376wma.1
 for <52245 <at> 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)
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)
From: Robert Pluim <rpluim@HIDDEN>
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
 <875ys0flvg.fsf@HIDDEN> <871r2oml7o.fsf@HIDDEN>
 <83v900xru6.fsf@HIDDEN>
Date: Wed, 08 Dec 2021 10:40:01 +0100
In-Reply-To: <83v900xru6.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 07 Dec
 2021 19:11:45 +0200")
Message-ID: <87a6hbqvta.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Tue, 07 Dec 2021 19:11:45 +0200, Eli Zaretskii <eliz@HIDDEN> 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




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 08 Dec 2021 13:27:01 +0000
Resent-Message-ID: <handler.52245.B52245.163896999820563 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Robert Pluim <rpluim@HIDDEN>
Cc: andremegafone@HIDDEN, tor.a.s.kringeland@HIDDEN, 52245 <at> debbugs.gnu.org
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.163896999820563
          (code B ref 52245); Wed, 08 Dec 2021 13:27:01 +0000
Received: (at 52245) by debbugs.gnu.org; 8 Dec 2021 13:26:38 +0000
Received: from localhost ([127.0.0.1]:39766 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1muwxx-0005Lb-R2
	for submit <at> debbugs.gnu.org; Wed, 08 Dec 2021 08:26:38 -0500
Received: from eggs.gnu.org ([209.51.188.92]:46036)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1muwxt-0005LL-Gq
 for 52245 <at> debbugs.gnu.org; Wed, 08 Dec 2021 08:26:36 -0500
Received: from [2001:470:142:3::e] (port=58154 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1muwxm-00066o-AL; Wed, 08 Dec 2021 08:26:27 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=/sXO025poCMvap3g8uLWCTg/X/iHF0Qqu4FISv7q4Kg=; b=OMszwahx6bHeQpTFxqNL
 QFaXHnob4/XzijU9yGq1Nmm/MOEiEmtuh1WrxfGJePO2A6g8T+Z1tQ9AOxg2y4yOpFCZb/4GN1/4d
 dyztQ4YxwEKhfw7lQ2+NpFl02TwwBCPecH8k05+KIhNw2YYTqX8ql5ldlN9c6eTBY3i9KluwvlQv0
 Z5v2CgCJG74KcaWmZhjTTY2PGWKB+f753fD+m/OnW3TbdbznWlGrSvGkMjtOBYDCV95uQjV5OrIlR
 fSwDp2BDj3RA8dB8luJqNEgD7VSXRBR3eXVBIZRdtx6c248SjLxYeDbpDwD0SoFCeex57KmtxKLUU
 ABuU0NBAbRMquA==;
Received: from [87.69.77.57] (port=2632 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1muwxk-0005aa-SW; Wed, 08 Dec 2021 08:26:26 -0500
Date: Wed, 08 Dec 2021 15:26:05 +0200
Message-Id: <83o85rw7ma.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87a6hbqvta.fsf@HIDDEN> (message from Robert Pluim on Wed, 08
 Dec 2021 10:40:01 +0100)
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
 <875ys0flvg.fsf@HIDDEN> <871r2oml7o.fsf@HIDDEN>
 <83v900xru6.fsf@HIDDEN> <87a6hbqvta.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Robert Pluim <rpluim@HIDDEN>
> Cc: andremegafone@HIDDEN,  tor.a.s.kringeland@HIDDEN,
>   52245 <at> debbugs.gnu.org
> Date: Wed, 08 Dec 2021 10:40:01 +0100
> 
>     Eli> The use case that I have in mind is this: even if the user customized
>     Eli> the list of input methods to include more than just one, there could
>     Eli> be situations where the user needs to use just one input method when
>     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, and it
>     Eli> frequently annoys me to have to cycle through all the keyboard layouts
>     Eli> I defined, just to be able to toggle between US English and some other
>     Eli> language.  So I wish that Emacs didn't have such an annoying problem,
>     Eli> if possible.
> 
> Hmm, so how about:
> 
> - default-input-method is an atom
>   ⇒ C-\ behaves as a toggle
> 
> - default-input method is a list
>   ⇒ C-\ cycles through them and back to nil
>   ⇒ C-\ with a prefix arg behaves as today, prompting
>     for an input method. C-\ again deactivates the input method

Sounds good, but I don't understand how you will pull out the trick in
the last sentence.  How will Emacs know to "just deactivate" instead
of cycling?




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 08 Dec 2021 13:45:02 +0000
Resent-Message-ID: <handler.52245.B52245.163897107622256 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: andremegafone@HIDDEN, tor.a.s.kringeland@HIDDEN, 52245 <at> debbugs.gnu.org
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.163897107622256
          (code B ref 52245); Wed, 08 Dec 2021 13:45:02 +0000
Received: (at 52245) by debbugs.gnu.org; 8 Dec 2021 13:44:36 +0000
Received: from localhost ([127.0.0.1]:39795 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1muxFM-0005mu-EE
	for submit <at> debbugs.gnu.org; Wed, 08 Dec 2021 08:44:36 -0500
Received: from mail-wr1-f41.google.com ([209.85.221.41]:43946)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1muxFJ-0005mg-Gm
 for 52245 <at> debbugs.gnu.org; Wed, 08 Dec 2021 08:44:34 -0500
Received: by mail-wr1-f41.google.com with SMTP id v11so4131632wrw.10
 for <52245 <at> debbugs.gnu.org>; Wed, 08 Dec 2021 05:44:33 -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=LHdVsLeHfsVqQdpdrp+lgXAs3lRO56EGh4GHfR92sro=;
 b=oXV1K5vw86Ym15r0ENW6CFUXGAWq6RjpbS8QhDZga7Qg7PGqXjTIN0UHqqat+/jZ5p
 X40TYR3SHqcC3LWeXfEKdTkFvqmFlbkLNiYZYB5yHJ5x4dVcA44aEQ/oNjqRkNmCxkqH
 eIuSShvOZVpfRh4txnyd1L69FpB4yCxTnvodHyRbj4y85wD6vWIPa51C5tij/MdnYCuH
 WlOBL3fDf89zlUy/3t0G9flrC+76BijAQc02lKYE1oxx4oHQw//WacvMU6ENfyLV4irx
 qbtDX/mWqpb3zfyO7d1gHgYfU/c4N0I+QBGPBQ3Zrq/UltPnFtDPlJQshfT6ayAIFXCW
 4j/A==
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=LHdVsLeHfsVqQdpdrp+lgXAs3lRO56EGh4GHfR92sro=;
 b=F1BjiPLDOK2RP7Z2259r+Nm+Q65qogXXMIjn1do8eI3mR7IEU+fljqisHbQSW75Few
 4DlznVs9zIX24Tdcuz3G3zcFdZXo3aACI3ftSmg5bVZvsNTtec6C2VlBx4mfy6vGZD4i
 z5+tJSkJnLMDAVxzBboItNkgojUoOsKx03vaoPPB1L+AmXteXPWdfqJ3xNpp54CTyQT/
 yrfxC07S9bmCZrpU+20JVYpZuch/sR7Q2xpJtqtvj28fP5bN8CkbC8z774LqLMz6gCuK
 efj+yf095z0auDRinkVG0/S0zLC03ePaJEE3/eciTZfOef5dSNcFPs5wVhjxAByYhJmc
 itYw==
X-Gm-Message-State: AOAM532WbvbfYSsTA0TKywE6M9BXLZVyjBb8kePFFYBt07p2qGhf1KZU
 SCT5NK8d4nA8sSCxs06+HHPYkncREdg=
X-Google-Smtp-Source: ABdhPJzqi1DMrhddvxTBoq7s/DgNdRhY7Cy/HIfuqVJD5gRfPyR3qiRMRwBx1bHtkndl9E20w2FSog==
X-Received: by 2002:adf:fa04:: with SMTP id m4mr59354504wrr.389.1638971067172; 
 Wed, 08 Dec 2021 05:44:27 -0800 (PST)
Received: from rltb ([2a01:e0a:3f3:fb50:e06b:fb08:141a:5ed3])
 by smtp.gmail.com with ESMTPSA id w22sm2634121wmi.27.2021.12.08.05.44.26
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 08 Dec 2021 05:44:26 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
 <875ys0flvg.fsf@HIDDEN> <871r2oml7o.fsf@HIDDEN>
 <83v900xru6.fsf@HIDDEN> <87a6hbqvta.fsf@HIDDEN>
 <83o85rw7ma.fsf@HIDDEN>
Date: Wed, 08 Dec 2021 14:44:25 +0100
In-Reply-To: <83o85rw7ma.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 08 Dec
 2021 15:26:05 +0200")
Message-ID: <87wnkfp5xi.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Wed, 08 Dec 2021 15:26:05 +0200, Eli Zaretskii <eliz@HIDDEN> said:

    >> From: Robert Pluim <rpluim@HIDDEN>
    >> Hmm, so how about:
    >>=20
    >> - default-input-method is an atom
    >> =E2=87=92 C-\ behaves as a toggle
    >>=20
    >> - 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

    Eli> Sounds good, but I don't understand how you will pull out the tric=
k in
    Eli> the last sentence.  How will Emacs know to "just deactivate" inste=
ad
    Eli> of cycling?

Similar to how it knows to toggle today, by storing an "I was
activated via prefix" state in a defvar-local state variable.

What did you think of the C-u C-u C-\ suggestion to mean "always
deactivate"? Or do you feel it=CA=BCs unnecessary?

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 08 Dec 2021 14:30:02 +0000
Resent-Message-ID: <handler.52245.B52245.163897378626491 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Robert Pluim <rpluim@HIDDEN>
Cc: andremegafone@HIDDEN, tor.a.s.kringeland@HIDDEN, 52245 <at> debbugs.gnu.org
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.163897378626491
          (code B ref 52245); Wed, 08 Dec 2021 14:30:02 +0000
Received: (at 52245) by debbugs.gnu.org; 8 Dec 2021 14:29:46 +0000
Received: from localhost ([127.0.0.1]:39843 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1muxx3-0006tD-N7
	for submit <at> debbugs.gnu.org; Wed, 08 Dec 2021 09:29:45 -0500
Received: from eggs.gnu.org ([209.51.188.92]:36388)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1muxx1-0006t1-EO
 for 52245 <at> debbugs.gnu.org; Wed, 08 Dec 2021 09:29:44 -0500
Received: from [2001:470:142:3::e] (port=60428 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1muxwv-0002e2-Vk; Wed, 08 Dec 2021 09:29:37 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=OeKnnwx1P3u6/ZoBpcrWH8Dfmkh5EqHzwgxVMghHEwQ=; b=D7ON6gQZADhkCGeZOGh8
 qJ21L8NSqoMVy9E2yL3ZuEzaA/3gtsyslxHnnz/OtA1xpSKtmOqlCdbuyspumf0qC9idF1j7nuqLG
 xiwmmv/xIHum8XhG/qmUb07ulRtXkj5cC3U/MthmIGQ+HezeXMeQMp368wFcdq9nfQVl4SGaYlTq3
 QaCi3DBAn9ZeijDTuEwvVG64NUQEKQWHVL5l9c0SUW7C7Xl8wFTRATuEI3ccwNeX4nXLKQPCI3AgB
 lgQFbt7/PN4IUPSQYi091HzbU0V+HQvR8+B84QijJd/ebdsFVBk74I9/Y1Bqo60n8n8XnqaIUQSK6
 aYrU50JigxT37Q==;
Received: from [87.69.77.57] (port=2544 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1muxwv-0004Np-Lk; Wed, 08 Dec 2021 09:29:37 -0500
Date: Wed, 08 Dec 2021 16:29:18 +0200
Message-Id: <83h7bjw4ox.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87wnkfp5xi.fsf@HIDDEN> (message from Robert Pluim on Wed, 08
 Dec 2021 14:44:25 +0100)
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
 <875ys0flvg.fsf@HIDDEN> <871r2oml7o.fsf@HIDDEN>
 <83v900xru6.fsf@HIDDEN> <87a6hbqvta.fsf@HIDDEN>
 <83o85rw7ma.fsf@HIDDEN> <87wnkfp5xi.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Robert Pluim <rpluim@HIDDEN>
> Cc: andremegafone@HIDDEN,  tor.a.s.kringeland@HIDDEN,
>   52245 <at> debbugs.gnu.org
> Date: Wed, 08 Dec 2021 14:44:25 +0100
> 
> >>>>> On Wed, 08 Dec 2021 15:26:05 +0200, Eli Zaretskii <eliz@HIDDEN> said:
> 
>     >> From: Robert Pluim <rpluim@HIDDEN>
>     >> Hmm, so how about:
>     >> 
>     >> - default-input-method is an atom
>     >> ⇒ C-\ behaves as a toggle
>     >> 
>     >> - default-input method is a list
>     >> ⇒ C-\ cycles through them and back to nil
>     >> ⇒ C-\ with a prefix arg behaves as today, prompting
>     >> for an input method. C-\ again deactivates the input method
> 
>     Eli> Sounds good, but I don't understand how you will pull out the trick in
>     Eli> the last sentence.  How will Emacs know to "just deactivate" instead
>     Eli> of cycling?
> 
> Similar to how it knows to toggle today, by storing an "I was
> activated via prefix" state in a defvar-local state variable.

Hmm... so just C-\ to activate is not enough to cause the toggle back?

> What did you think of the C-u C-u C-\ suggestion to mean "always
> deactivate"? Or do you feel itʼs unnecessary?

Given the above, some way of turning off the input method is
necessary, I think.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 08 Dec 2021 14:52:02 +0000
Resent-Message-ID: <handler.52245.B52245.16389750894624 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: andremegafone@HIDDEN, tor.a.s.kringeland@HIDDEN, 52245 <at> debbugs.gnu.org
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.16389750894624
          (code B ref 52245); Wed, 08 Dec 2021 14:52:02 +0000
Received: (at 52245) by debbugs.gnu.org; 8 Dec 2021 14:51:29 +0000
Received: from localhost ([127.0.0.1]:39864 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1muyI5-0001CW-80
	for submit <at> debbugs.gnu.org; Wed, 08 Dec 2021 09:51:29 -0500
Received: from mail-wm1-f50.google.com ([209.85.128.50]:42577)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1muyI2-0001CI-RD
 for 52245 <at> debbugs.gnu.org; Wed, 08 Dec 2021 09:51:27 -0500
Received: by mail-wm1-f50.google.com with SMTP id
 d72-20020a1c1d4b000000b00331140f3dc8so1966819wmd.1
 for <52245 <at> debbugs.gnu.org>; Wed, 08 Dec 2021 06:51:26 -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=YPSEol4YlceKThET+Qjyaj4CJ7K5yPd5eQ/e6vzRjaw=;
 b=h+ZYuXCIJ9hTuHoLCVZY6IwKPTVhpdMDfTPs60vPH61U/Tpy0AHlclh+8TWeEJJ08R
 Jpe9FcSXcICwD697YLknYPfHpZgXLWCfcBPnkBw3369ZxzAdJh+0wci+Is6h7XSvwlhn
 OHP0bOCdjg4M3pcWRrm9LT96hR/jJDYOPERNoOjSloGqQnX+fhGzV9L+K62nZ+P2MuVt
 refWnsqZmEPsPmD3dkMzumvZnTjOE3TQvhdlxi2wDuL/w81QPqrI3WREjta2Dcqzz04e
 9ESUwD7qDn5UYz9X5yAkRER4dLzIoQAQTuQ+8BYYPPPpRHciNZqa73qWjc69JBCsL/Wr
 EejA==
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=YPSEol4YlceKThET+Qjyaj4CJ7K5yPd5eQ/e6vzRjaw=;
 b=ZFHzwUvXD6xt17j8F+B50woSZhO8iMdsOFwrkQBn/9XCCx2B6emhivo4XmbrCqsP5l
 uyV7eiCcml8jm4zlw94REIdkfhZPXESx4zh4HzYx7xmv2fN74qyYVmDuVsu3mWTx2xRj
 Mrs2gCV1hdTOE7rWgzY9b1et/0UULrwheIS8cZU2SpBczf8Tmd6GuBFP02S6aEHOHo3t
 RTfn7XP+XU59SMY0dthxaMabDHyRcgaB97DbwPYSX2+MOJ8sUfw+lvnldjqK9Ft0XD75
 2OiMFj7P4fqPbNLbY5QpKM/0ZjLyP+7M6ytvnS+KJvExJozTigkq2+OJEw6i1UaG2EmN
 9uYg==
X-Gm-Message-State: AOAM533KsVVCdD8K98AclYr0p9Mc8QrVCfKOjiyaRWcVXg5Bj9R2jPiJ
 FDUE+nhmlf9swaSzfjGdi+b3AdXf8/M=
X-Google-Smtp-Source: ABdhPJz4bOUCwcukCXEQ+o/esANJ3cn9WKn8JkFPcB+s1ZkXbfq6c4otHb5tWUpDbZxW0QeIg2rwCw==
X-Received: by 2002:a1c:7715:: with SMTP id t21mr16336128wmi.183.1638975080479; 
 Wed, 08 Dec 2021 06:51:20 -0800 (PST)
Received: from rltb ([2a01:e0a:3f3:fb50:e06b:fb08:141a:5ed3])
 by smtp.gmail.com with ESMTPSA id az15sm2952997wmb.0.2021.12.08.06.51.19
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 08 Dec 2021 06:51:19 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
 <875ys0flvg.fsf@HIDDEN> <871r2oml7o.fsf@HIDDEN>
 <83v900xru6.fsf@HIDDEN> <87a6hbqvta.fsf@HIDDEN>
 <83o85rw7ma.fsf@HIDDEN> <87wnkfp5xi.fsf@HIDDEN>
 <83h7bjw4ox.fsf@HIDDEN>
Date: Wed, 08 Dec 2021 15:51:18 +0100
In-Reply-To: <83h7bjw4ox.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 08 Dec
 2021 16:29:18 +0200")
Message-ID: <87sfv3p2u1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Wed, 08 Dec 2021 16:29:18 +0200, Eli Zaretskii <eliz@HIDDEN> said:

    >> From: Robert Pluim <rpluim@HIDDEN>

    Eli> Sounds good, but I don't understand how you will pull out the tric=
k in
    Eli> the last sentence.  How will Emacs know to "just deactivate" inste=
ad
    Eli> of cycling?
    >>=20
    >> Similar to how it knows to toggle today, by storing an "I was
    >> activated via prefix" state in a defvar-local state variable.

    Eli> Hmm... so just C-\ to activate is not enough to cause the toggle b=
ack?

No, because you need to distinguish "I=CA=BCm cycling through
default-input-method" from "previous invocation used prefix", since in
the former you need to look up the current input method in
default-input-method and then activate the next one.

Hmm, what do we expect for the following sequence, assuming
default-input-method of '(a b c), and no input method activated.

1. C-\ ; activates a
2. C-u C-\ d RET ; activates d
3. C-\ ; back to a, I guess
4. C-\ ; activates b

Or do we want step 3 to be 'deactivate input method'?

    >> What did you think of the C-u C-u C-\ suggestion to mean "always
    >> deactivate"? Or do you feel it=CA=BCs unnecessary?

    Eli> Given the above, some way of turning off the input method is
    Eli> necessary, I think.

Escape hatches are always good, especially if we end up with confusing
behaviour :-)

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
In-Reply-To: <m2zgpj9g8l.fsf@HIDDEN>
Resent-From: John =?UTF-8?Q?Ankarstr=C3=B6m?= <john@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 11 Dec 2021 16:58:02 +0000
Resent-Message-ID: <handler.52245.B.163924183315851 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 52245 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.163924183315851
          (code B ref -1); Sat, 11 Dec 2021 16:58:02 +0000
Received: (at submit) by debbugs.gnu.org; 11 Dec 2021 16:57:13 +0000
Received: from localhost ([127.0.0.1]:49931 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mw5gN-00047Z-7b
	for submit <at> debbugs.gnu.org; Sat, 11 Dec 2021 11:57:13 -0500
Received: from lists.gnu.org ([209.51.188.17]:35466)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1mw3Xn-0006mL-2S
 for submit <at> debbugs.gnu.org; Sat, 11 Dec 2021 09:40:11 -0500
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 <geb-bug-gnu-emacs@HIDDEN>)
 id 1mw3Xm-0006NH-HU
 for bug-gnu-emacs@HIDDEN; Sat, 11 Dec 2021 09:40:10 -0500
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 <geb-bug-gnu-emacs@HIDDEN>)
 id 1mw3Xh-0000uh-TD
 for bug-gnu-emacs@HIDDEN; Sat, 11 Dec 2021 09:40:09 -0500
Received: from list by ciao.gmane.io with local (Exim 4.92)
 (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1mw3Xd-0004K9-QE
 for bug-gnu-emacs@HIDDEN; Sat, 11 Dec 2021 15:40:01 +0100
X-Injected-Via-Gmane: http://gmane.org/
From: John =?UTF-8?Q?Ankarstr=C3=B6m?= <john@HIDDEN>
Date: Sat, 11 Dec 2021 15:31:59 +0100
Message-ID: <87ilvv5i1s.fsf@HIDDEN>
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
 <875ys0flvg.fsf@HIDDEN> <871r2oml7o.fsf@HIDDEN>
 <83v900xru6.fsf@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (berkeley-unix)
Cancel-Lock: sha1:TENKDv/9fnoz5Z7rVNhXRx3zZRs=
Received-SPF: pass client-ip=116.202.254.214;
 envelope-from=geb-bug-gnu-emacs@HIDDEN; 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-Spam-Score: -1.1 (-)
X-Mailman-Approved-At: Sat, 11 Dec 2021 11:57:10 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

Eli Zaretskii <eliz@HIDDEN> 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.





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: =?UTF-8?Q?Andr=C3=A9?= A. Gomes <andremegafone@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 11 Dec 2021 20:09:02 +0000
Resent-Message-ID: <handler.52245.B52245.16392532851741 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: John =?UTF-8?Q?Ankarstr=C3=B6m?= <john@HIDDEN>
Cc: 52245 <at> debbugs.gnu.org
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.16392532851741
          (code B ref 52245); Sat, 11 Dec 2021 20:09:02 +0000
Received: (at 52245) by debbugs.gnu.org; 11 Dec 2021 20:08:05 +0000
Received: from localhost ([127.0.0.1]:50042 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mw8f6-0000S0-Nh
	for submit <at> debbugs.gnu.org; Sat, 11 Dec 2021 15:08:05 -0500
Received: from mail-wm1-f43.google.com ([209.85.128.43]:36734)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andremegafone@HIDDEN>) id 1mw8f4-0000RW-Mi
 for 52245 <at> debbugs.gnu.org; Sat, 11 Dec 2021 15:08:03 -0500
Received: by mail-wm1-f43.google.com with SMTP id
 i8-20020a7bc948000000b0030db7b70b6bso11396392wml.1
 for <52245 <at> debbugs.gnu.org>; Sat, 11 Dec 2021 12:08:02 -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
 :user-agent:mime-version:content-transfer-encoding;
 bh=Zwzolb+AroPkJj2cYRalFmnBcfbVa+FuDMiF5Wxfy9U=;
 b=I3bLvyFL/gP+JWvErG6YGYMmXkdWHRvyB4THtHx42LZSna4GRLMHCPYN/QYpcRoXiu
 MN1DMr7MDy/+LW7sP40YjfKfV1tT230/X0VdaFmcDFrgpNYKjN+6ufkbTSBgTLQ8DNrc
 f2dtFBoJ9zQ/VFe2w7ARpZWD9nG4zFkbCJN5xdo+nEel2ybdOh9bmu4RpD1UJrrtGgnO
 inz4uCKshGixuwznOh0NpvVCcsMwH4/RgY/S/6ajZJSWf0wyhexJT+DX4+WviUgK+c8T
 WESbvfZ68iJkcbCc15DlUoayJFt7QCmZOunj2Ev827+KPqWXQAzrkF1AHTf4o5hoHZFx
 xkpg==
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:user-agent:mime-version:content-transfer-encoding;
 bh=Zwzolb+AroPkJj2cYRalFmnBcfbVa+FuDMiF5Wxfy9U=;
 b=ZgZqM3fHuqsKS2oCLt7JQ2bCXKCig10OgbV/UI4/0oFDahItJguR2gLs3pmZ3y1jGU
 hxQkd/FPopxB93e3cmz/bcYYLzBaqZS61hNr4COJ6WlpnpjA9USIjVdS8TNaEbNkWHVM
 ayoaFOlCJV1ZhbmzkEE6RWDMkEasHp+F7I8LXJN5ci+X3UiphRlJn4RgpGuXPtd9vZva
 sJANGZAgn1df1X2zPsD891Ck7QkmbxOuU/t5eitEU5cOdwjwdiJDxo3hv+6S5GOU/LWz
 aJ1dIg1ZChQwrSYevhpPlsOp6+FUQ+cR5psELzJb7y7sXccsYXh4S4kp+LUyk+EQNmLY
 hgEw==
X-Gm-Message-State: AOAM532nLx946nMJGZmtPSf+DMWyGFxPc+BfK9AdeZqyUq4Byj3N6WWF
 5SwRhAGpEjTVfPKSTLvc70+3FiuSadU=
X-Google-Smtp-Source: ABdhPJxlnFm6xyHNRMf7f/YBvVg4L3DZPloNQo91RKdNgfP+kPL3a17CZ/3u4SckNEfbO9h0oqxbSA==
X-Received: by 2002:a7b:c10a:: with SMTP id w10mr25789500wmi.183.1639253276945; 
 Sat, 11 Dec 2021 12:07:56 -0800 (PST)
Received: from guix-xps13 ([2001:818:daa9:6700:462d:384e:6de8:4a1c])
 by smtp.gmail.com with ESMTPSA id o5sm5657916wrx.83.2021.12.11.12.07.56
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 11 Dec 2021 12:07:56 -0800 (PST)
From: =?UTF-8?Q?Andr=C3=A9?= A. Gomes <andremegafone@HIDDEN>
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
 <875ys0flvg.fsf@HIDDEN> <871r2oml7o.fsf@HIDDEN>
 <83v900xru6.fsf@HIDDEN> <87ilvv5i1s.fsf@HIDDEN>
Date: Sat, 11 Dec 2021 20:07:55 +0000
In-Reply-To: <87ilvv5i1s.fsf@HIDDEN> ("John =?UTF-8?Q?Ankarstr=C3=B6m?="'s message of
 "Sat, 11 Dec 2021 15:31:59 +0100")
Message-ID: <878rwqj46c.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

John Ankarstr=C3=B6m <john@HIDDEN> writes:

> Eli Zaretskii <eliz@HIDDEN> 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.

Could be a possibility indeed.

Let me raise a concern on this topic.  In Emacs, nil is what we call the
default OS-level IM (or the one dictated by the keyboard firmware).  But
this presents an issue since it both means "the nil input method", which
in itself might be english-us, and that `default-input-method' is
unbound.

I propose thinking about what we have today (no IM cycling, just the
toggle) and see if we need changes before moving on with the more
general case.

Let's think about a simple case - using 2 IMs.  Today you can't easily
go from input method A to B with C-\, unless either A or B is nil.  This
is because `default-input-method' is a buffer-local variable, and it
changes as the user selects IMs.

I suggest that `default-input-method' should be set to "default" and
shouldn't be mutated.  When already in use, fallback to the IM history
ring.  Yes, this requires some re-writing.


--
Andr=C3=A9 A. Gomes
"Free Thought, Free World"




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 23 Dec 2021 18:05:02 +0000
Resent-Message-ID: <handler.52245.B52245.1640282699367 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: andremegafone@HIDDEN, Robert Pluim <rpluim@HIDDEN>, 52245 <at> debbugs.gnu.org, tor.a.s.kringeland@HIDDEN
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.1640282699367
          (code B ref 52245); Thu, 23 Dec 2021 18:05:02 +0000
Received: (at 52245) by debbugs.gnu.org; 23 Dec 2021 18:04:59 +0000
Received: from localhost ([127.0.0.1]:34881 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n0SSZ-00005r-KQ
	for submit <at> debbugs.gnu.org; Thu, 23 Dec 2021 13:04:59 -0500
Received: from relay12.mail.gandi.net ([217.70.178.232]:42345)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1n0SSX-00005b-UM
 for 52245 <at> debbugs.gnu.org; Thu, 23 Dec 2021 13:04:58 -0500
Received: (Authenticated sender: juri@HIDDEN)
 by relay12.mail.gandi.net (Postfix) with ESMTPSA id 6D93D200003;
 Thu, 23 Dec 2021 18:04:49 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
Organization: LINKOV.NET
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
 <875ys0flvg.fsf@HIDDEN> <871r2oml7o.fsf@HIDDEN>
 <83v900xru6.fsf@HIDDEN>
Date: Thu, 23 Dec 2021 20:02:33 +0200
In-Reply-To: <83v900xru6.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 07 Dec
 2021 19:11:45 +0200")
Message-ID: <86y24b6vye.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> I guess we could also have C-u C-u C-\ mean 'cycle', but thatʼs
>> unergonomic.
>
> 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.

I have the same problem that cycling more than 2 keyboard layouts
is annoying.  It would be possible to avoid such a problem in Emacs
by using numeric prefix arguments, e.g.:

  C-1 C-\  activates the first input methods in the list of input methods
  C-2 C-\  second
  C-3 C-\  third
  ...
  C-0 C-\  deactivates the currently active input method




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 23 Dec 2021 18:28:01 +0000
Resent-Message-ID: <handler.52245.B52245.16402840612506 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Juri Linkov <juri@HIDDEN>
Cc: andremegafone@HIDDEN, rpluim@HIDDEN, 52245 <at> debbugs.gnu.org, tor.a.s.kringeland@HIDDEN
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.16402840612506
          (code B ref 52245); Thu, 23 Dec 2021 18:28:01 +0000
Received: (at 52245) by debbugs.gnu.org; 23 Dec 2021 18:27:41 +0000
Received: from localhost ([127.0.0.1]:34919 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n0SoX-0000eM-6h
	for submit <at> debbugs.gnu.org; Thu, 23 Dec 2021 13:27:41 -0500
Received: from eggs.gnu.org ([209.51.188.92]:54702)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1n0SoV-0000e9-Hi
 for 52245 <at> debbugs.gnu.org; Thu, 23 Dec 2021 13:27:40 -0500
Received: from [2001:470:142:3::e] (port=35948 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n0SoP-0005CF-MC; Thu, 23 Dec 2021 13:27:33 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=wuqWKD/CP9Jo+7VCCJByAi8kOYLNmmZdHknBIwO5Abk=; b=F/yA9GhOaD7B
 Rv/TSbWfT7XpsYUQyytULJMrMK2mdYt7b3NqeGltss23ec88eqFl533z89fD3g1VEwOdzA73AzPGn
 twlGWhq0Z9gG14nSPClaBy7k14Dj4j1QSd9iDQdsY983NY/OBj0KRjRq8loBMZBqRq/VPZJV/YQpl
 sZVlqF9xiiuwhn9Rfw2cQbqGOOUwNPxXGDEkuO+GDsgL17bvX1dbbkjOGQGwMBLo25xZtdkfzD4as
 5NDSgTwZCWiALyqyYBWJ+/UU2h9/au3I7MthhtnkvCzCY7NOn8C1bTA/7DcRD5VAc8g/mKqNr+rx5
 wgRDeZ2YPYD72+hiRukHKQ==;
Received: from [87.69.77.57] (port=4461 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n0SoP-0005b8-9U; Thu, 23 Dec 2021 13:27:33 -0500
Date: Thu, 23 Dec 2021 20:27:39 +0200
Message-Id: <8335mjuqg4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <86y24b6vye.fsf@HIDDEN> (message from Juri Linkov on
 Thu, 23 Dec 2021 20:02:33 +0200)
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
 <875ys0flvg.fsf@HIDDEN> <871r2oml7o.fsf@HIDDEN>
 <83v900xru6.fsf@HIDDEN> <86y24b6vye.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Cc: Robert Pluim <rpluim@HIDDEN>,  andremegafone@HIDDEN,
>   tor.a.s.kringeland@HIDDEN,  52245 <at> debbugs.gnu.org
> Date: Thu, 23 Dec 2021 20:02:33 +0200
> 
>   C-1 C-\  activates the first input methods in the list of input methods
>   C-2 C-\  second
>   C-3 C-\  third
>   ...
>   C-0 C-\  deactivates the currently active input method

The problem with this system is that the user needs to remember which
IM is the first and which the second.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52245: Wishlist: cycle input methods
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 23 Dec 2021 18:47:01 +0000
Resent-Message-ID: <handler.52245.B52245.16402851944387 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52245
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: andremegafone@HIDDEN, rpluim@HIDDEN, 52245 <at> debbugs.gnu.org, tor.a.s.kringeland@HIDDEN
Received: via spool by 52245-submit <at> debbugs.gnu.org id=B52245.16402851944387
          (code B ref 52245); Thu, 23 Dec 2021 18:47:01 +0000
Received: (at 52245) by debbugs.gnu.org; 23 Dec 2021 18:46:34 +0000
Received: from localhost ([127.0.0.1]:34945 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n0T6o-00018h-8e
	for submit <at> debbugs.gnu.org; Thu, 23 Dec 2021 13:46:34 -0500
Received: from relay5-d.mail.gandi.net ([217.70.183.197]:38587)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1n0T6n-00018T-4G
 for 52245 <at> debbugs.gnu.org; Thu, 23 Dec 2021 13:46:33 -0500
Received: (Authenticated sender: juri@HIDDEN)
 by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 1D9FE1C0007;
 Thu, 23 Dec 2021 18:46:24 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
Organization: LINKOV.NET
References: <m2zgpj9g8l.fsf@HIDDEN> <874k7rdn17.fsf@HIDDEN>
 <838rx2an87.fsf@HIDDEN> <87r1aucc61.fsf@HIDDEN>
 <875ys0flvg.fsf@HIDDEN> <871r2oml7o.fsf@HIDDEN>
 <83v900xru6.fsf@HIDDEN> <86y24b6vye.fsf@HIDDEN>
 <8335mjuqg4.fsf@HIDDEN>
Date: Thu, 23 Dec 2021 20:45:19 +0200
In-Reply-To: <8335mjuqg4.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 23 Dec
 2021 20:27:39 +0200")
Message-ID: <86o8575feo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>>   C-1 C-\  activates the first input methods in the list of input methods
>>   C-2 C-\  second
>>   C-3 C-\  third
>>   ...
>>   C-0 C-\  deactivates the currently active input method
>
> The problem with this system is that the user needs to remember which
> IM is the first and which the second.

The user already needs to remember the sequence of configured keyboard layouts
to be able to cycle them without looking at the indicator of the current layout.
The problem that makes such cycling annoying is that when the user forgets
what is the current layout, cycling selects a wrong layout.  Using a number
to select the layout avoids such a problem.





Last modified: Thu, 23 Dec 2021 19:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.