From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: itrans input methods and motion keys Date: Wed, 29 Jun 2022 17:44:25 +0530 Message-ID: <87a69vfyzi.fsf@gmail.com> References: <87k091dqhl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15003"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: =?utf-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 29 16:23:40 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6YbU-0003hs-83 for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Jun 2022 16:23:40 +0200 Original-Received: from localhost ([::1]:56420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6YbT-0002Hv-8t for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Jun 2022 10:23:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6Wat-00017G-PO for emacs-devel@gnu.org; Wed, 29 Jun 2022 08:14:55 -0400 Original-Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]:36614) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6Wak-0005zA-Lp for emacs-devel@gnu.org; Wed, 29 Jun 2022 08:14:55 -0400 Original-Received: by mail-pj1-x1044.google.com with SMTP id c6-20020a17090abf0600b001eee794a478so8524025pjs.1 for ; Wed, 29 Jun 2022 05:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version; bh=i6QhcDrBrv/q+dZH92mDx3kXJ6HNXIt9EAnnr0NZB9U=; b=b8em7r3dmfN0sHZoL3jst8beAxfHzdTVoyDWxuAADkiAAdb4g40cEYVV1JGrmLan2U ZhBF0sJzp+Zf5zpm+dLg7eQntBoWtbCO+DcuukMfKcpNGH1pHqhkHPMTCWTyC/cPpmJR MGuwI/nNBkKgFktZe7Q6Yvk2llSvtp7zr7ijTsHZCUFVPMqsDHohJAMir6SyO7VwPgoi 0TVxigCRQA+51rOl9VDXsXMc471FRwMbxzM/pPh+2pbXet6eaZvV4V4ebobIeO9N8rEo M23M48Os3FZIRBsU19GTMrM7zdHF2XzSMWRFllHk/ZLbA5YIIjnhM+V3yR2GNXBDcB49 1ing== 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:in-reply-to:date:message-id :references:user-agent:mime-version; bh=i6QhcDrBrv/q+dZH92mDx3kXJ6HNXIt9EAnnr0NZB9U=; b=h+zF9aDfNxpidjtgvLh42wxaaHLOHzYTAikI0wjMAvD97bh1Ld8YBXj84wIG/hG13i /03t3MHXkkL0KuBjuKnBvvHuDYCCSR1DlbuDSdTz9/4cwAZwGBVzWqSyf/4GZtHCUzIE qBH3FDhKmu5CSixUsJPFUWc0vospWnd+sGkbPCDCzxmyE8L3beVJEFpRbAZZM1eDgX1l lWP/oMGweSbkhGh9N0Et9En9VaiQafPYvBEOQbY+3vdbPgKXku/Ds6VBskWTTs/XMKIo Yw6YMPQbeZRBJTPpmMaWTnex5fw3KGhJJZaZ7vXq4Df0UypS+wup8bRqG2tXTiAnUkp4 MR/A== X-Gm-Message-State: AJIora8XvFAUfewo+cM2Sp4cD0l3PrzrbGIg0FiFFx6UYAdNfRpjIKAz TLJQcOZ1RbprNET2l9jLE+c= X-Google-Smtp-Source: AGRyM1tYo7Ow4G64yIgJ9QYS6/qEA9xsGAkRRsCjZasJh/CEpQo9GJA7gymj/XKtsJGsU3/36Mog6g== X-Received: by 2002:a17:902:c405:b0:16a:23c7:e9a6 with SMTP id k5-20020a170902c40500b0016a23c7e9a6mr8957611plk.58.1656504884836; Wed, 29 Jun 2022 05:14:44 -0700 (PDT) Original-Received: from localhost ([49.205.84.49]) by smtp.gmail.com with ESMTPSA id ms9-20020a17090b234900b001ec7c8919f0sm1957424pjb.23.2022.06.29.05.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 05:14:43 -0700 (PDT) In-Reply-To: (=?utf-8?B?IuCkuOCkruClgOCksCDgpLjgpL/gpILgpLk=?= Sameer Singh"'s message of "Wed, 29 Jun 2022 00:14:36 +0530") Received-SPF: pass client-ip=2607:f8b0:4864:20::1044; envelope-from=visuweshm@gmail.com; helo=mail-pj1-x1044.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 29 Jun 2022 10:06:34 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291717 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable [=E0=AE=AA=E0=AF=81=E0=AE=A4=E0=AE=A9=E0=AF=8D =E0=AE=9C=E0=AF=82=E0=AE=A9= =E0=AF=8D 29, 2022] =E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0 =E0=A4=B8=E0=A4=BF= =E0=A4=82=E0=A4=B9 Sameer Singh wrote: > I am sorry I do not use the itrans input methods, therefore do not know > much about it :( > So may I know why are motion keys disabled while typing in these input > methods? > It is not that they are disabled but they are in conflict with the keybindings in quail-translation-keymap so you no longer have access to the motion keys. Quail has facility to make use of a dictionary to insert text: the Chinese and the Japanese input methods use these. When such a facility is used, the translation keymap is useful since you have to pick from multiple translations for an input sequence, however, IME itrans is not such a complex IM so not having it be a SIMPLE quail IM is annoying since the quail-translation-keymap steals the motion keys. If this is still not clear, you can think of a non-SIMPLE quail IM as akin to the Google input tools. You type in text, it presents multiple translations of the text, then you select one. But what happens in an itrans method is simple transliteration for which a SIMPLE quail IM should be good enough. And reading the code more a bit, I think pushing the following patch shouldn't bring in any new annoyances. Can someone push it please? --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Stop-itrans-input-methods-from-stealing-motion-keys.patch >From 493f0f63ddda2a3a8a360cec76c9f221aecac29d Mon Sep 17 00:00:00 2001 From: Visuwesh Date: Wed, 29 Jun 2022 17:42:18 +0530 Subject: [PATCH] Stop itrans input methods from stealing motion keys The itrans input methods only do transliteration and as such don't need any of the fancy features a non-SIMPLE quail package offers. This change prevents the itrans IMs from stealing the motion keys. See . * leim/quail/indian.el (quail-define-indian-trans-package): Make the SIMPLE argument non-nil. --- lisp/leim/quail/indian.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/leim/quail/indian.el b/lisp/leim/quail/indian.el index 8fffcc3511..a67af1cac5 100644 --- a/lisp/leim/quail/indian.el +++ b/lisp/leim/quail/indian.el @@ -43,7 +43,7 @@ quail-define-indian-trans-package ;; determining that this is a quail definition (it searches for ;; "(quail-define-package"). (funcall #'quail-define-package pkgname lang title t doc - nil nil nil nil nil nil t nil) + nil nil nil nil nil nil t nil nil nil t) (maphash (lambda (key val) (quail-defrule key (if (= (length val) 1) -- 2.35.1 --=-=-=--