(index ("gb?" 0) ("make-gap-buffer" 154) ("gb-point" 496) ("gb-point-min" 667) ("gb-point-max" 882) ("gb-insert-string!" 1104) ("gb-insert-char!" 1364) ("gb-delete-char!" 1600) ("gb-erase!" 1992) ("gb-goto-char" 2153) ("gb->string" 2455) ("gb-filter!" 2620) ("gb->lines" 2906))
(def (sig (procedure "gb? :: OBJECT -> BOOL" (id gb?))) (p "Returns " (tt "#t") " if the given object is a gap buffer object, " (tt "#f") " otherwise."))
(def (sig (procedure "make-gap-buffer :: [INIT] -> GAP-BUFFER" (id make-gap-buffer))) (p "Returns a new gap buffer. Optional argument " (tt "INIT") " is either a port to read from; a string, used to initialize the buffer contents; or an integer specifying the memory allocation (in bytes) requested. Point is left at the maximum position."))
(def (sig (procedure "gb-point :: GAP-BUFFER -> INTEGER" (id gb-point))) (p "Returns the position of point in the given gap buffer. This is an integer starting with 1."))
(def (sig (procedure "gb-point-min :: GAP-BUFFER -> INTEGER" (id gb-point-min))) (p "Return the minimum position possible for point in the gap buffer. In the current implementation, this value is always 1 (one)."))
(def (sig (procedure "gb-point-max :: GAP-BUFFER -> INTEGER" (id gb-point-max))) (p "Returns the maximum position possible for point in the given gap buffer. This value can be changed by inserting text into the buffer."))
(def (sig (procedure "gb-insert-string! :: GAP-BUFFER * STRING -> VOID" (id gb-insert-string!))) (p "Inserts the given string into the given gap buffer, moving point forward as well as increasing the value that would be returned by " (tt "gb-point-max") "."))
(def (sig (procedure "gb-insert-char! :: GAP-BUFFER * CHAR -> VOID" (id gb-insert-char!))) (p "Inserts the given character into, moving point forward as well as increasing the value that would be returned by " (tt "gb-point-max") "."))
(def (sig (procedure "gb-delete-char! :: GAP-BUFFER * INTEGER -> VOID" (id gb-delete-char!))) (p "Deletes the given number of characters from point, forward if the integer argument is positive, backward if it is negative. (If zero, do nothing.) Deleting backwards moves point backwards. Deleting forwards or backwards decreases the value that would be returned by " (tt "gb-point-max") "."))
(def (sig (procedure "gb-erase! :: GAP-BUFFER -> VOID" (id gb-erase!))) (p "Completely erases the gap buffer. Point is left at the minimum position possible."))
(def (sig (procedure "gb-goto-char :: GAP-BUFFER * INTEGER -> INTEGER" (id gb-goto-char))) (p "Moves point to the given point and returns it. If the new point is outside the minimum and maximum positions possible, it is adjusted to the the nearest boundary (however, the return value is unchanged)."))
(def (sig (procedure "gb->string :: GAP-BUFFER -> STRING" (id gb->string))) (p "Return a new string representing the text of the gap buffer. Point does not move."))
(def (sig (procedure "gb-filter! :: GAP-BUFFER * PROCEDURE -> VOID" (id gb-filter!))) (p "Passes the string representing the contents of the gap buffer to the given procedure, and uses its return value to replace the contents of the gap buffer. Point is set to the maximum position."))
(def (sig (procedure "gb->lines :: GAP-BUFFER -> LIST" (id gb->lines))) (p "Returns a list of strings representing the lines of text of the gap buffer. Newlines are automatically removed. A buffer with N newlines results in a list of length N+1. Point does not move."))
