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: Calculating screen relative X when horizontal scrolling. Date: Wed, 17 Oct 2018 19:25:41 +0300 Message-ID: <831s8osfp6.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1539793433 19292 195.159.176.226 (17 Oct 2018 16:23:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2018 16:23:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Keith David Bershatsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 17 18:23:49 2018 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 1gCobs-0004uS-KS for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2018 18:23:48 +0200 Original-Received: from localhost ([::1]:38062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCodz-0000OZ-8Z for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2018 12:25:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCodt-0000OT-4T for emacs-devel@gnu.org; Wed, 17 Oct 2018 12:25:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCodp-0006xS-25 for emacs-devel@gnu.org; Wed, 17 Oct 2018 12:25:52 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCodn-0006th-Nh; Wed, 17 Oct 2018 12:25:48 -0400 Original-Received: from [176.228.60.248] (port=2225 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gCodn-0000ic-AV; Wed, 17 Oct 2018 12:25:47 -0400 In-reply-to: (message from Keith David Bershatsky on Tue, 16 Oct 2018 08:41:00 -0700) 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:230455 Archived-At: > Date: Tue, 16 Oct 2018 08:41:00 -0700 > From: Keith David Bershatsky > Cc: emacs-devel@gnu.org > > The x coordinate sought will be used as the 3rd argument to draw_window_cursor in conjunction with feature requests 17684 (crosshairs) and 22873 (multiple fake cursors). > > The method of calculation used in the initial post is off by a few pixels when dealing with each of the fact patterns described. Here is a sample _current_ line (miscellaneous characters of varying pixel widths) where my calculations go awry: I'm sorry, I still don't have a clear understanding of the issue. In particular, the implementations of draw_window_cursor method don't use the 3rd argument for positioning the cursor. So I still don't understand what you mean by "relative x".