emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calculating screen relative X when horizontal scrolling.


From: Keith David Bershatsky
Subject: Re: Calculating screen relative X when horizontal scrolling.
Date: Tue, 16 Oct 2018 08:41:00 -0700

Thank you, Eli, for looking at this particular thread.

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:

("Google の click-tracking コードをリンクの url から取り除きます") ("Google 
検索結果のテーブルを縦方向で揃えて幅を狭めます") ("すべてのページに w3m が扱える name アンカーを追加します") 
("http://*.hp.infoseek.co.jp/* で広告を取り除きます") ("http://linux.ascii24.com/linux/* 
で広告を取り除きます") ("ミクシィ用フィルタ") ("朝日新聞用フィルタ") ("すべてのページでインラインフレームを取り除きます")

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

> Date: [10-16-2018 07:48:35] <16 Oct 2018 17:48:35 +0300>
> From: Eli Zaretskii <address@hidden>
> To: Keith David Bershatsky <address@hidden>
> CC: address@hidden
> Subject: Re: Calculating screen relative X when horizontal scrolling.
> 
> > Date: Mon, 15 Oct 2018 15:25:06 -0700
> > From: Keith David Bershatsky <address@hidden>
> >
> > I am having difficulty calculating the screen relative x in the following 
> > two (2) fact patterns.  How can I calculate the relative x for each fact 
> > pattern?
> 
> Please explain what do you mean by "relative x".  Relative to what?
> 
> Also, are you talking about the x coordinate of glyphs or about x
> coordinate of mouse events and such likes?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]