* How to get column number relative to the beginning of a screen line?
@ 2014-01-14 17:59 Darren Hoo
2014-01-14 18:55 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Darren Hoo @ 2014-01-14 17:59 UTC (permalink / raw)
To: emacs-devel
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".
Is there any function available like count-screen-lines does but
calculates column number?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to get column number relative to the beginning of a screen line?
2014-01-14 17:59 How to get column number relative to the beginning of a screen line? Darren Hoo
@ 2014-01-14 18:55 ` Eli Zaretskii
2014-01-14 19:24 ` Darren Hoo
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2014-01-14 18:55 UTC (permalink / raw)
To: Darren Hoo; +Cc: emacs-devel
> From: Darren Hoo <darren.hoo@gmail.com>
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-14 19:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-14 17:59 How to get column number relative to the beginning of a screen line? Darren Hoo
2014-01-14 18:55 ` Eli Zaretskii
2014-01-14 19:24 ` Darren Hoo
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).