* 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
* Re: How to get column number relative to the beginning of a screen line?
2014-01-14 18:55 ` Eli Zaretskii
@ 2014-01-14 19:24 ` Darren Hoo
0 siblings, 0 replies; 3+ messages in thread
From: Darren Hoo @ 2014-01-14 19:24 UTC (permalink / raw
To: Eli Zaretskii; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 733 bytes --]
Thanks! It is what I want.
On Wed, Jan 15, 2014 at 2:55 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> > 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.
>
[-- Attachment #2: Type: text/html, Size: 1169 bytes --]
^ 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.