* shr-current-column
@ 2010-10-13 6:07 Katsumi Yamaoka
2010-10-13 16:55 ` shr-current-column Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Katsumi Yamaoka @ 2010-10-13 6:07 UTC (permalink / raw)
To: ding
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'.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: shr-current-column
2010-10-13 6:07 shr-current-column Katsumi Yamaoka
@ 2010-10-13 16:55 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-13 16:55 UTC (permalink / raw)
To: ding
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> Even so, the result doesn't differ from that of `current-column'.
Ah, right. I though `current-column' would give you the number of
characters before point, but it's the number of char-widths. So that
function is superfluous.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-13 16:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-13 6:07 shr-current-column Katsumi Yamaoka
2010-10-13 16:55 ` shr-current-column Lars Magne Ingebrigtsen
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).