<p>I am hacking up a tagging application for emacs.  I have got a tag cloud/weighted list successfully displaying on a buffer, but i am running into a snag.  I need to be able to properly word-wrap the buffer, but I haven't a clue where to start.</p>

<p>The font I am using is a variable width font.  On top of that, each tag is going to be in a different size, depending on how many times it shows up on the buffer.  Finally, the window that displays the tagcloud could be in a window that is 200 pixels wide, or the full screen width.</p>

<p>I really have no idea where to start.  I tried longlines mode on the tagcloud buffer, but that didn't work.</p>

<p>Source code is at: <a href="http://emacswiki.org/cgi-bin/emacs/free-tagging.el" rel="nofollow noreferrer">http://emacswiki.org/cgi-bin/emacs/free-tagging.el</a></p>

You probably want to track
```
posn-at-point
```
and
```
posn-at-x-y
```
as you put the tags in the buffer.