[previous] [up] [next]     [index]
Next: set-wordbreak-map Up: text Previous: set-tabs

set-wordbreak-func

Sets the word-breaking function for the editor. For information about the arguments to the word-breaking function, see find-wordbreak.

The standard wordbreaking function uses the editor's editor-wordbreak-map% object to determine which characters break a word. See also editor-wordbreak-map% and set-wordbreak-map.

Since the wordbreak function will be called when line breaks are being determined (in an editor that has a maximum width), there is a constrained set of text% methods that the wordbreak function is allowed to invoke. It cannot invoke a member function that uses information about graphic locations or lines (which are identified in this manual with `` The result is only valid when the editor is displayed (see Basic Organization).''), but it can still invoke member functions that work with snips and item positions.



PLT