From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: shr-current-column
Date: Wed, 13 Oct 2010 15:07:55 +0900 [thread overview]
Message-ID: <b4my6a2vd50.fsf@jpl.org> (raw)
Currently `shr-current-column' measures line width but shouldn't
it be something like the following?
(defun shr-current-column ()
(let ((column 0)
(cur (point)))
(save-excursion
(beginning-of-line)
(while (< (point) cur)
(incf column (char-width (following-char)))
(forward-char 1)))
column))
Even so, the result doesn't differ from that of `current-column'.
next reply other threads:[~2010-10-13 6:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-13 6:07 Katsumi Yamaoka [this message]
2010-10-13 16:55 ` shr-current-column Lars Magne Ingebrigtsen
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=b4my6a2vd50.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=ding@gnus.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.
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 NNTP newsgroup(s).