|
From: | Darren Hoo |
Subject: | Re: How to get column number relative to the beginning of a screen line? |
Date: | Wed, 15 Jan 2014 03:24:34 +0800 |
> From: Darren Hoo <address@hidden>
> Date: Wed, 15 Jan 2014 01:59:32 +0800
>
> if a line wrap or truncation happens how can I get the column number
> relative to the beginning of the line displayed? for example:
>
> -------------------------------------------------------------
> This is a a loooooooooooooooooooooooooooooooooooooooooog line
> start of the continuation <!> line
> -------------------------------------------------------------
>
> If point stays at <!>, some function `current-screen-column' should
> return the relative column number to "start".
I think you want posn-at-point.
[Prev in Thread] | Current Thread | [Next in Thread] |