emacs-devel
[Top][All Lists]
Advanced

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

Re: How to get column number relative to the beginning of a screen line?


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

Thanks! It is what I want.


On Wed, Jan 15, 2014 at 2:55 AM, Eli Zaretskii <address@hidden> wrote:
> 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.


reply via email to

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