I don't want the comment box to grow!

Apr 2, 2011 at 3:37pm

I don't want the comment box to grow!

I’m using a comment box to display the filename and other characteristics of the file in my buffer; it’s being used in presentation mode and so its placement is very specific. I don’t want the box to grow (or the text to wrap) if the text happens to be longer than what the space allows for.

Is there any way to tell the comment box “only allow x number of characters and if x is exceeded then forget about the rest”?

Apr 2, 2011 at 5:23pm

You could use a mostly transparent [textedit] object instead of [comment].

Apr 2, 2011 at 5:32pm

Yes! Why didn’t I think of that… :)

Apr 2, 2011 at 5:35pm


i don’t know, but do it yourself ;-)

– Pasted Max Patch, click to expand. –

You must be logged in to reply to this topic.