unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Keith David Bershatsky <esq@lawlist.com>
Cc: emacs-devel@gnu.org
Subject: Re: Calculating screen relative X when horizontal scrolling.
Date: Wed, 17 Oct 2018 19:25:41 +0300	[thread overview]
Message-ID: <831s8osfp6.fsf@gnu.org> (raw)
In-Reply-To: <m2y3ax3nn7.wl%esq@lawlist.com> (message from Keith David Bershatsky on Tue, 16 Oct 2018 08:41:00 -0700)

> Date:  Tue, 16 Oct 2018 08:41:00 -0700
> From:  Keith David Bershatsky <esq@lawlist.com>
> 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".



  reply	other threads:[~2018-10-17 16:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-16 15:41 Calculating screen relative X when horizontal scrolling Keith David Bershatsky
2018-10-17 16:25 ` Eli Zaretskii [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-10-24 20:40 Keith David Bershatsky
2018-10-20  9:55 Keith David Bershatsky
2018-10-19 20:02 Keith David Bershatsky
2018-10-19 19:58 Keith David Bershatsky
2018-10-20  7:13 ` Eli Zaretskii
2018-10-17 20:43 Keith David Bershatsky
2018-10-19 19:23 ` Eli Zaretskii
2018-10-17 17:54 Keith David Bershatsky
2018-10-15 22:25 Keith David Bershatsky
2018-10-16 14:48 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=831s8osfp6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=esq@lawlist.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).