From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64805: 28.2; XIM cursor position is incorrect Date: Mon, 24 Jul 2023 20:05:24 +0800 Message-ID: <87sf9d1pmj.fsf@yahoo.com> References: <835y69tw3s.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14079"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64805@debbugs.gnu.org, YOSHINO Yoshihito To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 24 14:06:45 2023 Return-path: Envelope-to: geb-bug-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 1qNuKq-0003RQ-Ki for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jul 2023 14:06:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNuKN-0003hV-AI; Mon, 24 Jul 2023 08:06:15 -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 1qNuKB-0003h8-8G for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 08:06:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qNuKA-00033T-Dl for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 08:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNuKA-0000Ol-9C for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 08:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jul 2023 12:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64805 X-GNU-PR-Package: emacs Original-Received: via spool by 64805-submit@debbugs.gnu.org id=B64805.16902003461509 (code B ref 64805); Mon, 24 Jul 2023 12:06:02 +0000 Original-Received: (at 64805) by debbugs.gnu.org; 24 Jul 2023 12:05:46 +0000 Original-Received: from localhost ([127.0.0.1]:42006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNuJu-0000OH-66 for submit@debbugs.gnu.org; Mon, 24 Jul 2023 08:05:46 -0400 Original-Received: from sonic316-20.consmr.mail.ne1.yahoo.com ([66.163.187.146]:43101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNuJr-0000O3-Qt for 64805@debbugs.gnu.org; Mon, 24 Jul 2023 08:05:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1690200338; bh=J3jh0c4ER/dZmmhBPFnZ5k0Bj/z6ahxcZtaCHJyzTZ8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=PxoM3gwUhiyeoSYkX950hW/7eqalD5uDr5VN3le6oa/HT5lcZ2lH6Rp9s4uxhprTv8xES84B+IzSJd2p2/2nFgDhDdDAlbqs1jcxXYBEfhD8YdKYu9OVO9sv6qZOBwdH6s1Rh/3g5yIVbwj668Wu9tlsT/KFbqZkbrouV+UcN+l0xiL8f2W5YfUqSEz5yUqOkpABD0tRatSBv/U5IkOMdsT2kH8dzchDIrVdoAFSCs45XZ5DO9t6hQLPmWOa5bCTZN4O6ELfH/gaGRZqL1+r/fwCX/vg8+PBLNPZVZQ6hy9uX0V0hm6jxOkJAn7zBSHonKE6l2iqmrlzDamqfQ2F6A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1690200338; bh=d6+JpOSKhArkdvZhSqh9P4z4uS2Kbd76j655+ANL4I5=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=R8srSSS2RCZpn10Dhe/tAmJiqgmfqaYEA212k3ank0k+zI7d+/cVnrftrUpxHwWNk+EptBxrUKeE9GfVsP17wIuRJ/wlGHqwuVQK+YIQZZ1QxYJ0tfmFvsAmNedLuPmAvrzAvKcC0HYqYwgW3KtHHZ9CFQWuiV7m2hSAzxcV89KShG1/rW4O0DXSB1LuhZJGI5628PTGVCl+t9Hs+UowRTM4uOLizGOSbSyfSTAtx0/jJ6NHSk4eCzZL+232YJIh5cYNmU1bNTb7slVfLv4i7YZXxTzLenybC28V1kQTfLJuUim3zRAActppU603pD7/zErbxqwnOWwjOdc24qXc4g== X-YMail-OSG: 9stHalsVM1kS5PwWgbEQ1mNOSWtOPPWbI2SK.ahsbaNjayMnzlGXsHj0kqsZ7SK pj7YB5w7TY0NY3kIhhikahlONUB064CGmROL9o5welFhFJJiGzeDyMLH_gBA9JxQmtn7TYrMJmhD uMaTU7hXbt0fJw0vurWIkeQx6McuUiq2.3q39T2udsktbzEaUYtx55M2SDAuzNnRTwh6O2Mn5yzQ hx797ucnjAvWy8vHbccCYFkUArNaQzZRU7.HDayEPn1IX85avIcSOXH.5s78kobLOh8gQVwXA7nK G5E3ymFCi_Phxz.QpCSF73U.7ocYXAxUIAukIXg32.nlquwMOxtUVl4KbubN3CxJXZRCCpcGiCoK cudAwcYWdkamFDoZXZiMu8VX8mYzRDXaRdwjSp9Qq.gXUDk83Yft.nwIMi3wrlsw9FsgMz5QHEum X54RuNsOFrR4QMFDIThdX8glGk8JM4Ib7NMGLVAcuHPDcd9QecTyMNfpX15PCZENAikk9XOu19ax Wz7CtwZVPMTLqLvbWVZ1oKsIPTxo95RzMYxEz7KvcYbLQ0a.ZcfE_4iNDb5nxlTRZ2aPKX0SKOYu gHqAiVku56wSxwX45e7Diz6TlFTEfGYioKcWcOriJA5FZ8z.jQMEJGtZ2Sy9aTPR_TnbNFK33Nwd hVPO7PkxF4wq.CKA7omg4LqKKs75GoEPYL26Sy0O5MIKmqLJtq_JyDW5SC7ekFYkKsYWX5KuWvtZ 2tHXcQZdgZqzrQVVfv5qIOx.kya3GFsg78li0WUrxSeTdVnqx3DbhO7deGfW9GoK0ToOptrSLcx2 pKUyMAfvv.IbvjdiofSQOAy2i_fOGPrO_enJOjpF9t X-Sonic-MF: X-Sonic-ID: 560c088a-5e85-4d3b-a3ce-cc844588442e Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Mon, 24 Jul 2023 12:05:38 +0000 Original-Received: by hermes--production-sg3-9dc5f54fc-5qj2h (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ff9a3aaef009096b02b5d61946e9d617; Mon, 24 Jul 2023 12:05:31 +0000 (UTC) In-Reply-To: <835y69tw3s.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 24 Jul 2023 13:57:59 +0300") X-Mailer: WebService/1.1.21647 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:265955 Archived-At: Eli Zaretskii writes: >> From: YOSHINO Yoshihito >> Date: Sun, 23 Jul 2023 19:17:19 +0900 >> >> I use Debian in Japanese and `uim' for an XIM server, >> which is a default in Debian Japanese desktop. >> >> Recently I have upgraded Debian to its new stable version, >> and subsequently upgraded Emacs from 27.1 to 28.2. >> >> On Emacs 27.1, cursor position reported via XIM is the same as those in >> the current buffer, and uim displays its input candidate window adjacent >> to the position, as found in the attached screenshot `27.1.png'. >> This is the expected behavior. >> >> On Emacs 28.2, however, the cursor position is far below and outside the >> Emacs frame, as found in the attached screenshot `28.2.png'. >> >> I have bisected Emacs git repository between 27.1 and 28.2, and found >> that this regression has been caused by commit >> 2a64de5e982fb8b868b76626ac2e92ddfafc9ca5, which was introduced in the >> following bug report: >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=10867 >> >> Reverting the commit restores the expected behavior. > > Maybe we should have a Lisp variable to control whether that change is > in effect. > > Po Lu, any other ideas? Perhaps this is already fixed in Emacs 29? > > Thanks. I think I already fixed this in time for Emacs 29, but to avoid disruptions for users of input methods that are affected by the Xlib bug that was the subject of #10867 (approximately 75% of CJK X desktop users), the fix is located behind an X resource. Yoshihito-san probably needs to place: Emacs.inputStyle: overthespot in his .Xresources or .Xdefaults.