From: Darren Hoo <darren.hoo@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: How to get column number relative to the beginning of a screen line?
Date: Wed, 15 Jan 2014 03:24:34 +0800 [thread overview]
Message-ID: <CAJ+QY_F2=ukwtbZVNeVPT5tMCdjWqEmyrAFakv7SuZY4fkkFkQ@mail.gmail.com> (raw)
In-Reply-To: <8338kq5r6k.fsf@gnu.org>
[-- 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 --]
prev parent reply other threads:[~2014-01-14 19:24 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
2014-01-14 19:24 ` Darren Hoo [this message]
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='CAJ+QY_F2=ukwtbZVNeVPT5tMCdjWqEmyrAFakv7SuZY4fkkFkQ@mail.gmail.com' \
--to=darren.hoo@gmail.com \
--cc=eliz@gnu.org \
--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.