From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master f041d61008 2/3: Improve documentation of the preedit-text event Date: Fri, 07 Jan 2022 18:48:18 +0800 Message-ID: <87fspzyg7h.fsf@yahoo.com> References: <164154759534.24569.1062687039370550695@vcs2.savannah.gnu.org> <20220107092636.08509C0DA1D@vcs2.savannah.gnu.org> <87a6g77u4n.fsf@gmail.com> 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="36120"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 07 11:50:18 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 1n5mp7-00097N-8q for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Jan 2022 11:50:17 +0100 Original-Received: from localhost ([::1]:33246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5mp5-0005f4-CZ for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Jan 2022 05:50:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5mnQ-0003rj-6W for emacs-devel@gnu.org; Fri, 07 Jan 2022 05:48:32 -0500 Original-Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]:37989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5mnN-00072T-Bc for emacs-devel@gnu.org; Fri, 07 Jan 2022 05:48:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1641552507; bh=Y+aFDOF+r7kxzwzfDePQNpfqCbhHrC7P6qInRuu/l3k=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=QII9NeGeH9NOCeRVo2v3dBsT5xNDy/0nD1k96TxTO0fcpXw4K3PAe1ruzdoXLeTu1eW/mvgeutymVMsQYMg8Fn50wvgO2GksrlAvoSmVugPR08ap/ighGCVRMsu3FGEj+mDc6hQ8lkaXNwr6tVeZU3/6Q6nkcBULbQl0UR9ulm/+/Nuzko4W2Fph53W1xyTw9u+sckoscGxmO+lq+hVMKb/bwFzZ1PbTJLMi6vZqVmov2QBvyoK9Vt6BRID1SuYa0ZElZRynSjkWuWPyTa1DH4Uqgm7dKn241/i1gBYpCRgJ52iEdKr8NUR13XgXql4YOwKUgo/Qf4QSlTqqH67aRg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1641552507; bh=0sjkWqrRB+TgOwc8Us1833uaTl1LWgkfzLvvjzAOkI/=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Qqssw05wDVaMcBdkL4WiyyH8O13j/VfDRRPXILw6Irdc/Q8qCEKiMleESDL5iCqEpS6rXrCFStfwu9ZcEP03ooKbQmdLXZdMxA2/U8dD82p80Yhw5aGzm8jcJMmYguwPE7F7bBkE3iA2l9ZDH+z36SdRgQa7WpbUEOzv4QIDu+wc5AFNWBbKP7RdYdPxdF7/xZSYpql2nLqxPm2Zlt+9AZmRY6YQspK5q0XfNSNh+pzo/BR0CNSleOpzdZ0spvjRvlCMxOzpV8lkOLmJB9bwnKMriSm95BjUSK1tsGEPywHMn8NO5cvTpCvi7n8wy3Bv3sBH7IHdE6raYPsUSj6wew== X-YMail-OSG: hB1xvmQVM1kO6XCHAm_aQSby14zjlNRjHGZe3.ACmiDbZuh1rWpyoPXbxRibmKM j6MFsmcY6naNxJnjeTkipk8Y7G3uCx4TM.tO3wbHtCQl7ldYZbkVTWNyi51kPkPK6t06pbEqwam7 Rsy1pSj6yla3.b5nofeeetnzXC7xb7jax_X.95y6SuC1jzKNkAjA4tP8lkPauJcfKcgya1xqme8e i1qGHOHFuZkVbt2PSjmeo0fNeGcfWUKKDDHxd_AHICipo2mnzChl.RTBruOTxcneKBxPda5s35G0 10Ezcai5wkCdcFPPmHBTy5sCKhHhtXD6zf2.jQgk8mlbe4xuEJHNwSyRnWEzUzRzgFz.QvuAFSrV l4P7Kc1TAIN1L4T2mmqUpukkPylsOUnD_iT.5pQW8Gf1ALULZ04uUqQg.08Vs2oclLsS5IEKRSZI 3w_2PGKLyTb4P80._BP7HByU6yFQA9L1hfrxMdPern3moZMMsSDvEddEAbYfLNJnQnmLqTV0lT4g 95tVR1D2JSIL0G00NS8Gp2eOSuB4.65XxyHUZgZ_joAUcJc5kfZTtApRWyvYPEXPLzNaljJlFDQ3 d.EbiLDg91UugyrIIpzYD59a8X7etT_PP6fvrlBfBZlbI0UfWdmKplB_6jGY9otXIzrPyIEWU.uL Tl7OK08cA1RUHux.nSJQPxIae_34zZP8JNR1FXlRFLgmtm8NJ2VT5PVDG8xRIORWIsBUppsM2Jts 5EO6smegOwaP4XnDw028SfGeSw8Hpkfh2i5Vr1O8hs7QdHVtoQlVMVAYtk.bsYhwfsqb78leYlG_ sHeJyv7RdgpOM2ZVKw2bD.5sDfIfhln5LOcPT5cfIF X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Fri, 7 Jan 2022 10:48:27 +0000 Original-Received: by kubenode501.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 8e8887aa1c774fa9c77c1b2b18fba13c; Fri, 07 Jan 2022 10:48:24 +0000 (UTC) In-Reply-To: <87a6g77u4n.fsf@gmail.com> (Robert Pluim's message of "Fri, 07 Jan 2022 10:49:44 +0100") X-Mailer: WebService/1.1.19551 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.82; envelope-from=luangruo@yahoo.com; helo=sonic306-20.consmr.mail.ne1.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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.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:284407 Archived-At: Robert Pluim writes: >>>>>> On Fri, 7 Jan 2022 04:26:35 -0500 (EST), Po Lu via Mailing list for= Emacs changes said: > > Po> branch: master > Po> commit f041d610083ca0815ab18c589f115bacc523b9bb > Po> Author: Po Lu > Po> Commit: Po Lu > > Po> Improve documentation of the preedit-text event >=20=20=20=20=20 > Po> * doc/lispref/commands.texi (Misc Events): Document how > Po> `preedit-text' events are used. > Po> --- > Po> doc/lispref/commands.texi | 4 +++- > Po> 1 file changed, 3 insertions(+), 1 deletion(-) > > Po> diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi > Po> index eb364d2f49..062b8ea911 100644 > Po> --- a/doc/lispref/commands.texi > Po> +++ b/doc/lispref/commands.texi > Po> @@ -2140,7 +2140,9 @@ cursor. It can be @code{nil}, which means = to remove any text > Po> previously displayed. @c FIXME: what is the value of ARG on PGT= K? >=20=20 > Po> This is a special event (@pxref{Special Events}), which normally > Po> -should not be bound by the user to any command. > Po> +should not be bound by the user to any command. Emacs will typi= cally > Po> +the text contained in the event behind the cursor on-screen when= it is > Po> +received. > > I think you=CA=BCre missing a verb. Thanks, I'll fix that. > And what does "behind the cursor on-screen" mean? An overlay? Yes. > (plus I thought this was disabled by default now?) Yes, it's disabled by default in the sense that preedit-text events are no longer sent on X unless inputStyle is set to "callback". The PGTK port has been sending these events since day one, and I didn't implement that resource there, as most of the options it provides only make sense on X-Windows.