From: Darren Hoo <darren.hoo@gmail.com>
To: emacs-devel@gnu.org
Subject: How to get column number relative to the beginning of a screen line?
Date: Wed, 15 Jan 2014 01:59:32 +0800 [thread overview]
Message-ID: <m2zjmysauz.fsf@gmail.com> (raw)
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?
next reply other threads:[~2014-01-14 17:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-14 17:59 Darren Hoo [this message]
2014-01-14 18:55 ` How to get column number relative to the beginning of a screen line? Eli Zaretskii
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=m2zjmysauz.fsf@gmail.com \
--to=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.