GNU bug report logs - #66325
`inherit-input-method`'s poor behavior

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Ali AlipourR <alipoor90@HIDDEN>; Keywords: moreinfo; dated Tue, 3 Oct 2023 16:27:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) moreinfo. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 66325 <at> debbugs.gnu.org:


Received: (at 66325) by debbugs.gnu.org; 3 Oct 2023 17:18:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 03 13:18:13 2023
Received: from localhost ([127.0.0.1]:40641 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qnj2D-0008Ij-3D
	for submit <at> debbugs.gnu.org; Tue, 03 Oct 2023 13:18:13 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:36106)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qnj2B-0008IV-Be
 for 66325 <at> debbugs.gnu.org; Tue, 03 Oct 2023 13:18:11 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qnj1o-0004ew-Ju; Tue, 03 Oct 2023 13:17:48 -0400
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=jGXgOoB0dSwx6OjIj9+lUvxjRrF4goLxsN1nryOk3NM=; b=jOSUtjQrlDEj
 we8vGGW8Ix3xVuLdjkcizn91juQW8Np4Z7qNHaonvfp8xlo/52SktkxV4om8EmQmwdUQ9Jp/DCOf6
 xptCAfs4WShzp4H8qWSBeKaLC3s59OVbrFLzs/KWi+PDVlehXk817amAQeJCu6enrC2cB3g6EF5De
 fSJJK9kBpOlWAVIZpYPctHpXECh+wxh636uxgW7fwL9l0LmIdSucT3ky+sj4JOw3looQFW77O3jKr
 uVPbIN3eE5ZlHigcie7RLE9HmwCAaIELJzQbcqbJnttpWOltf4aJrM7gxAkNWxjHNtZE5D8PSJpKR
 FmmCNSjfldzxzmEgoUA54A==;
Date: Tue, 03 Oct 2023 20:17:46 +0300
Message-Id: <834jj77hhh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Ali AlipourR <alipoor90@HIDDEN>
In-Reply-To: <CABvhJLig9saigDoBz9FX=rs72y3XDb1O4s=8JcHbD8KsEEwXRA@HIDDEN>
 (message from Ali AlipourR on Tue, 3 Oct 2023 19:55:42 +0330)
Subject: Re: bug#66325: `inherit-input-method`'s poor behavior
References: <CABvhJLig9saigDoBz9FX=rs72y3XDb1O4s=8JcHbD8KsEEwXRA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66325
Cc: 66325 <at> debbugs.gnu.org
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: Ali AlipourR <alipoor90@HIDDEN>
> Date: Tue, 3 Oct 2023 19:55:42 +0330
> 
> When you open a minibuffer with a non-nil inherit-input-method argument, the minibuffer will inherit its
> -default- input method from the parent buffer. This much is fine and desirable behavior. 
> 
> However, with this option enabled, you can no longer change your input method while editing inside
> the minibuffer. (i.e. using C-\ or toggle-input-method)

C-\ (toggle-input-method) indeed toggles between the (inherited) input
method of the parent buffer and no input method, but you can select a
different input method by typing "C-u C-\", which will trhen prompt
for an input method.

> This is poor behavior, since if you are someone who uses input methods (i.e. uses emacs to write in
> languages other than English) you often want to use multiple input methods while editing inside a
> minibuffer.
> For example, to enter a mixed English-Chinese/Arabic/Persian/... text as a search term etc.

You should be able to switch to any input method by using "C-u C-\".
If it works for you, I see no bug here.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66325; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Oct 2023 16:26:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 03 12:26:22 2023
Received: from localhost ([127.0.0.1]:40611 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qniE2-0006x9-5i
	for submit <at> debbugs.gnu.org; Tue, 03 Oct 2023 12:26:22 -0400
Received: from lists.gnu.org ([2001:470:142::17]:34522)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alipoor90@HIDDEN>) id 1qniE0-0006ww-HW
 for submit <at> debbugs.gnu.org; Tue, 03 Oct 2023 12:26:21 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <alipoor90@HIDDEN>)
 id 1qniDd-0003N9-Rk
 for bug-gnu-emacs@HIDDEN; Tue, 03 Oct 2023 12:25:57 -0400
Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <alipoor90@HIDDEN>)
 id 1qniDb-0003O2-OJ
 for bug-gnu-emacs@HIDDEN; Tue, 03 Oct 2023 12:25:57 -0400
Received: by mail-ed1-x52a.google.com with SMTP id
 4fb4d7f45d1cf-533d31a8523so2051757a12.1
 for <bug-gnu-emacs@HIDDEN>; Tue, 03 Oct 2023 09:25:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1696350353; x=1696955153; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=+UvGI1vVoYNYWIeBgbkVIlTNJktsyIpu7qbPw1G7y+0=;
 b=TzvFQDZJyKg/hUjgGloB8RW5bbtrqo0KxtcfuoazrvyGiSezyh+0ny3CR2Oo08Yr7T
 9LKl3y0//EG5Y2V2mznZr4rnW5pgZWObHuLmgdXvlqmpAlh6QyB6nz5k47d/uppng2dc
 q54Sm2uiqMYlS3Gvf4sYnzxiNovwUdZWqo2HTNVaJdaz/YooICOCu8VF1PtrMc546lqM
 b/WmFTvtOif6xMrwELh8imBrmO3yzzcQBixFsEWlB5o3TP3lXChqcm79ESb6xCnQirw+
 dpZ/Zte8pMBKyIjCppDutD594HTl62hF0Vrga2aeNFyx7BFKdBWHwmEOgYQ1KLOzKRue
 sj7w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1696350353; x=1696955153;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=+UvGI1vVoYNYWIeBgbkVIlTNJktsyIpu7qbPw1G7y+0=;
 b=ryx6T1C1Z8dWDVzd437qPdkcWooi5MoVXDvx6npBxs1Y+167OhADCzQV+RqxL9whAF
 w6XVJwAZk3HhLJJbKc6BdGh6vvFpMDW9e9EREloGzx5uge4hX66oNGp+zLJW4KixhYkK
 58qhg1S04622K0b0pO+za0poApgwq7T9M6Ho56+4ISQfdv1N6Z7UwEAnf6VpeloZXkzO
 ICQfAOV+mtx+7jFsrsfpsioP3MACXIJ47A1DX6DaKuD82hOi50vS6twZpxCCeZUIwTrd
 LnTqXt1EyP0z8g1Fm6s0Iy28gOLzd/usv1StePtxs0ytDVuz7qT8+o5JbGGJxhVGIHIt
 N0bQ==
X-Gm-Message-State: AOJu0Yx3fSLmpOxhilefEQKMyAvXS3bTUMkCZP40vZhISl9YL0fIWGDZ
 OJCwvA7xbeVdmL0FaheNIkzXu0C9HtD+A98oysjalhPmGUzipbOs
X-Google-Smtp-Source: AGHT+IFO5eXpytw9pBaQ1ShdhezLRSLG2155MAaje7cTEAm6zV4DgbkwN2hzs+ZPpXJ4sEwmlWs7O/BGG0NFy1hSwy8=
X-Received: by 2002:a17:906:1db1:b0:9b2:d64a:9ecd with SMTP id
 u17-20020a1709061db100b009b2d64a9ecdmr11427306ejh.66.1696350353291; Tue, 03
 Oct 2023 09:25:53 -0700 (PDT)
MIME-Version: 1.0
From: Ali AlipourR <alipoor90@HIDDEN>
Date: Tue, 3 Oct 2023 19:55:42 +0330
Message-ID: <CABvhJLig9saigDoBz9FX=rs72y3XDb1O4s=8JcHbD8KsEEwXRA@HIDDEN>
Subject: `inherit-input-method`'s poor behavior
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="00000000000039003e0606d258fe"
Received-SPF: pass client-ip=2a00:1450:4864:20::52a;
 envelope-from=alipoor90@HIDDEN; helo=mail-ed1-x52a.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 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,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: When you open a minibuffer with a non-nil
 inherit-input-method
 argument, the minibuffer will inherit its -default- input method from the
 parent buffer. This much is fine and desirable behavior. However, with this
 option enabled, you can no longer change your input method while editing
 inside the minibuffer. (i.e. using C-\ or toggle-input-method) 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (alipoor90[at]gmail.com)
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (alipoor90[at]gmail.com)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 0.0 HTML_MESSAGE           BODY: HTML included in message
X-Debbugs-Envelope-To: submit
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: 0.2 (/)

--00000000000039003e0606d258fe
Content-Type: text/plain; charset="UTF-8"

When you open a minibuffer with a non-nil inherit-input-method argument,
the minibuffer will inherit its -default- input method from the parent
buffer. This much is fine and desirable behavior.

However, with this option enabled, you can no longer change your input
method while editing inside the minibuffer. (i.e. using C-\ or
toggle-input-method)

This is poor behavior, since if you are someone who uses input methods
(i.e. uses emacs to write in languages other than English) you often want
to use multiple input methods while editing inside a minibuffer.
For example, to enter a mixed English-Chinese/Arabic/Persian/... text as a
search term etc.

Acceptable behavior would be if even with inherit-input-method enabled,
Emacs allowed changing the input method inside the minibuffer (And just
default to the input-method that it inherited from the parent buffer).

Optimal behavior would be if change of input-method inside a minibuffer
also changed the current input method of the parent buffer, so that when
you close the minibuffer and return to parent buffer, you have your last
selected input method that you used inside the minibuffer, selected and
ready to use inside the parent buffer.

Sorry if the technical terms used aren't 100% accurate, as I'm still an
Emacs newbie ...

Thanks,
Ali

--00000000000039003e0606d258fe
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">When you open a minibuffer with a non-nil=C2=A0inherit-inp=
ut-method argument, the minibuffer will inherit its -default- input method =
from the parent buffer. This much is fine and desirable behavior.=C2=A0<br>=
<br>However, with this option enabled, you can no longer change your input =
method while editing inside the minibuffer. (i.e. using C-\ or toggle-input=
-method)<br><br>This is poor behavior, since if you are someone who uses in=
put methods (i.e. uses emacs to write in=C2=A0languages other than English)=
 you often want to use multiple input methods while editing inside a minibu=
ffer.<br>For example, to enter a mixed English-Chinese/Arabic/Persian/... t=
ext as a search term etc.<br><br>Acceptable behavior would be if even with=
=C2=A0inherit-input-method enabled, Emacs allowed changing the input method=
 inside the minibuffer (And just default to the input-method that it inheri=
ted from the parent buffer).<br><br>Optimal behavior would be if change of =
input-method inside a minibuffer also changed the current input method of t=
he parent buffer, so that when you close the minibuffer and return to paren=
t buffer, you have your last selected input method that you used inside the=
 minibuffer, selected and ready to use inside the parent buffer.=C2=A0<br><=
br>Sorry if the technical terms used aren&#39;t 100% accurate, as I&#39;m s=
till an Emacs newbie ...<br><br>Thanks,<br>Ali</div>

--00000000000039003e0606d258fe--




Acknowledgement sent to Ali AlipourR <alipoor90@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#66325; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 5 Oct 2023 22:00:02 UTC

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