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.help Subject: Re: set-input-method versus activate-input-method Date: Tue, 19 Mar 2024 16:05:10 +0100 Message-ID: <865xxixnx5.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15046"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.0; emacs 29.2 Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 19 16:06:11 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rmb2W-0003cN-8c for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 19 Mar 2024 16:06:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmb1x-00039p-53; Tue, 19 Mar 2024 11:05:33 -0400 Original-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 ) id 1rmb1l-00038D-70 for help-gnu-emacs@gnu.org; Tue, 19 Mar 2024 11:05:23 -0400 Original-Received: from fhigh7-smtp.messagingengine.com ([103.168.172.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmb1i-0006Xx-5v for help-gnu-emacs@gnu.org; Tue, 19 Mar 2024 11:05:20 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id D170A11400B0; Tue, 19 Mar 2024 11:05:15 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 19 Mar 2024 11:05:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1710860715; x=1710947115; bh=+kN2u7zj1f jUclCIsh3/FsCdnbR54Mn+Gd6rJJrr/b8=; b=WnFsQdTnSk5WAIxB0htKdeNz+W aArRK42X5iuQqBybZFSvwwdUhjAm38AsI8BGtOpJPg/Ukpn6jiIFTWy3O6rHyV5z RlyYqdvaXUbbINY2L2AxV4GJsFeepvDoTgE1Oe+RSH4AHxNnWVjsEXW36qF3wK8o 59r3PL24t/uBlx2cTO2xyXDQuTH5PTeuJp6M2O9t2wZhR/s1c7t3Q5D5ioJpojqp 8/6n8mLWJX2Pcjan1dtavDQi1x+GN5/wga6i6KpfTloPySVaVE0OF0z8eGWE9dtm CbTBi0ASgpdzt153RPPg/J3ysZ8/zsHkW8GTgs2B+kg6vvBgSMXUsJsrrRKg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1710860715; x=1710947115; bh=+kN2u7zj1fjUclCIsh3/FsCdnbR5 4Mn+Gd6rJJrr/b8=; b=fnw54zShUYYQfrk3zNf2jX/hWZ8HuuZbTgJnz14YELrd 7OP/kwnLDVKbRzU06CLZ2AxhGcivRVs/gVO+NIw7IZRZmCEDUWFT/Uq2kmbnk3wt G5AQLfjcbfkJ7NVDpUquxv71uysxCamo0lagWX+POOXS/EBr2W/ZsdQsDY8wPM6z HYPi5g1nY/E9d0WhpxiuDvEXsCU6GiFowpOw8T7LljJQ+a3rs7flXzW9T2snc03i ZiN659GuNDo2hHTDWpiVqInJ3AAbcBnTCfoA4PHUwbTdyzYCL5kozzDywyMvU4Vv JUQQj2uXMXdqUQiL7MX8lir/9R1uHj8CY7wdPrJp6A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrledtgdeghecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufgjfhgffffkgggtsehttdertddtredtnecuhfhrohhmpeflohhoshht ucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhmqe enucggtffrrghtthgvrhhnpeefkeejgffftdfgffejudeukeetheduhfevtefhhfehiefh ledtgffhgeekiedvheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 19 Mar 2024 11:05:14 -0400 (EDT) In-Reply-To: (Heime's message of "Tue, 19 Mar 2024 14:36:04 +0000") Received-SPF: pass client-ip=103.168.172.158; envelope-from=joostkremers@fastmail.fm; helo=fhigh7-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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146135 Archived-At: On Tue, Mar 19 2024, Heime wrote: > Both 'set-input-method' and 'activate-input-method' are functions used to work > with input methods, but they seem to serve different purposes. > > Which one should be used in elisp code to change the input method for the > current > buffer. A tip: learn to use Emacs' built-in help facilities: - Use `C-h f` and `C-h v` (`describe-function` / `describe-variable`) to read the doc strings of functions and variables. - See also `C-h ?` for a quick overview of other help facilities. - Learn to use the Elisp manual: `C-h i` to access the Info system, then `m` to access the menu. Type `Elisp RET` to access the Elisp manual. - In an Info manual, use `i` to find a topic in its index. - Look at the source (accessible from the *Help* buffer showing the doc string for a function / variable, provided you have the Emacs sources installed). If you look at the source for `set-input-method`, you'll notice that it uses `activate-input-method` internally, which tells you a lot about the relation between the two. HTH -- Joost Kremers Life has its moments