From: Eli Zaretskii <eliz@gnu.org>
To: Darren Hoo <darren.hoo@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: How to get column number relative to the beginning of a screen line?
Date: Tue, 14 Jan 2014 20:55:31 +0200 [thread overview]
Message-ID: <8338kq5r6k.fsf@gnu.org> (raw)
In-Reply-To: <m2zjmysauz.fsf@gmail.com>
> 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.
next prev parent reply other threads:[~2014-01-14 18:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2014-01-14 19:24 ` Darren Hoo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8338kq5r6k.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=darren.hoo@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.