From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: wrong cursor position reported when window margins are wide Date: Wed, 01 Mar 2017 05:40:59 +0200 Message-ID: <83mvd5oe9g.fsf@gnu.org> References: <87bmtmxvm5.fsf@fastmail.fm> <83wpcanv9c.fsf@gnu.org> <87a896xd3q.fsf@fastmail.fm> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1488339726 25541 195.159.176.226 (1 Mar 2017 03:42:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2017 03:42:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Joost Kremers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 01 04:41:58 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1civ9J-0005HT-KW for ged-emacs-devel@m.gmane.org; Wed, 01 Mar 2017 04:41:57 +0100 Original-Received: from localhost ([::1]:38214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1civ9M-0006y6-Fo for ged-emacs-devel@m.gmane.org; Tue, 28 Feb 2017 22:42:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1civ8q-0006y0-DE for emacs-devel@gnu.org; Tue, 28 Feb 2017 22:41:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1civ8l-0006sT-SG for emacs-devel@gnu.org; Tue, 28 Feb 2017 22:41:28 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1civ8l-0006sP-On; Tue, 28 Feb 2017 22:41:23 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4683 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1civ8j-0000RJ-Pw; Tue, 28 Feb 2017 22:41:22 -0500 In-reply-to: <87a896xd3q.fsf@fastmail.fm> (message from Joost Kremers on Tue, 28 Feb 2017 21:41:13 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212672 Archived-At: > From: Joost Kremers > Cc: emacs-devel@gnu.org > Date: Tue, 28 Feb 2017 21:41:13 +0100 > > > On Tue, Feb 28 2017, Eli Zaretskii wrote: > >> From: Joost Kremers > >> Date: Tue, 28 Feb 2017 15:01:22 +0100 > >> It seems that when the window margins of an Emacs window are > >> non-nil, the cursor position is reported incorrectly, resulting > >> in > >> the input box being displayed in the wrong place. > >> > >> The original bug report is here: > >> > >> > >> > >> There are screen shots that illustrate the problem. (Scroll > >> down a > >> bit for screen shots with `emacs -Q'.) > > > > Sorry, I couldn't understand what is meant by "cursor position > > reporting". Could you clarify, > > Honestly, I'm in way over my head here, so I'm mainly going by > this FAQ on the Fcitx site: > > https://fcitx-im.org/wiki/FAQ#Cursor_Following_problem > > which admittedly doesn't provide much info, either. Basically, > from what I gather, Fcitx and ibus and similar input methods pop > up an input box that follows the text cursor as you type. In order > to do so, they need to know the absolute position of the text > cursor on the screen. And in order to be able to determine > (calculate?) this position, they need some info from the windowing > system, which in turn receives this info from the active > application. But we must know at least what Emacs features are used to get the cursor position info. Otherwise, I don't see how we can investigate this issue, nor even that it's Emacs's fault.