From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Re: How do you write input methods? Date: Mon, 30 Aug 2021 13:24:07 +0200 Message-ID: <87lf4jtbdv.fsf@fastmail.fm> References: <8d1a3c4b-80fd-65c8-70b6-1ab452a52f6a@piermont.com> <87o89fchf7.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31978"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.5; emacs 27.2 Cc: emacs-devel@gnu.org, "Perry E. Metzger" To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 30 13:34:59 2021 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 1mKfZ4-00081E-JF for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Aug 2021 13:34:59 +0200 Original-Received: from localhost ([::1]:33952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKfZ2-0000Cx-Lv for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Aug 2021 07:34:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKfY6-0007w2-6J for emacs-devel@gnu.org; Mon, 30 Aug 2021 07:33:58 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:33581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKfY4-0004y8-Df for emacs-devel@gnu.org; Mon, 30 Aug 2021 07:33:57 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 0130A5C0174; Mon, 30 Aug 2021 07:33:54 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 30 Aug 2021 07:33:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=fm1; bh= uahFygxqeJJVWhADFT3m47orQt6Okh8Qw5Le7LOIFO8=; b=EOcMFiZDcNbS0R4t tHxQI94NDY6WE7mbmYQkaNPHswfavWksILpQSGqbZWYc9M+hQQbPEQZ6/FKC0U3n O4tBQbcPmefPJrugefwzZTvCdawKTf06l3dPdPhwLMVJtwxArpBJFffu/4C6LNLb 8Vn6M7FOmM7yJ291oLMzRImqA2cKFRJx5bh+zSsgXU6HOVwkak/lf1K+fjqFC6V2 /nHoVq57XxBvmTv9daixULGchEt2tEJU8oXvScK1GcC0+KF9nCETzrCGObr1aEHw DmodHUj4QSxTTuIWVz+bZf/hvXGmM9bVkq9FCp6Co42pan5OMvFmHGXMfZh0CUhY 40epAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=uahFygxqeJJVWhADFT3m47orQt6Okh8Qw5Le7LOIF O8=; b=Hf5E+o3PFaqC+73zGEqcKeZtXebhrBSkqBThCHey5lPiStqD5YawUQqkH UxMAoHCAkkp3+mESV+vp0uCdTA9CV9JOq09bQt3g9y0FPUdexWs0S9mdlbWJJ81J iGaSX1/YdqF8+0pj33iCf9kbrFSZ1cSCRePtRoELDqMlPEIXZUKgJ6slLDQKBJWG PBZM+8K+QqrPtP+Kr9Q9LN5y6+3ZGH3fXiuGNQdBo5QZ0Ki9l76JM828XU7cGKaX GEvtMp4GIHAg3JHaHEZDOy6WCaTULhWdwJNxtQCuaY4pH9puE+xYwOIorG69QwsH U+u3ySJj4Anipj36YWYd1YiarWC8g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudduledggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffjgfkgggtgfesthhqredttderjeenucfhrhhomheplfhoohhs thcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh eqnecuggftrfgrthhtvghrnhepvddvgfeghfdtiefhvedvvddtjefhleejveeltdelffev hfeijeekhfdutdffgeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 30 Aug 2021 07:33:52 -0400 (EDT) In-reply-to: <87o89fchf7.fsf@gmx.net> Received-SPF: pass client-ip=66.111.4.29; envelope-from=joostkremers@fastmail.fm; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:273474 Archived-At: On Mon, Aug 30 2021, Stephen Berman wrote: > And you need > to use register-input-method to enable invoking the input method via > `C-\'; examples are in the lisp/leim/leim-list.el file. That's interesting... I define a couple of personal input methods in my init files and they do show up when I do `M-x set-input-method`, even though I d= on't use `register-input-method`. Hmm, looking at the doc string of `register-input-method`, I see the follow= ing comment: " The commands =E2=80=98describe-input-method=E2=80=99 and =E2=80=98list-inpu= t-methods=E2=80=99 need these duplicated values to show some information about input methods **without loading the relevant Quail packages.** (emphasis mine) " Does that mean that `register-input-method` is basically just a way to tell Emacs about available input methods without loading them? And since my input methods get loaded during startup, there's no need to register them anymore? --=20 Joost Kremers Life has its moments