Next: , Previous: , Up: Api   [Contents][Index]


5.10 Text

Editing and stuff.

Scheme Procedure: buffer-string
Scheme Procedure: point
Scheme Procedure: point-min
Interactive Procedure: beginning-of-buffer #:optional arg
Scheme Procedure: point-max
Interactive Procedure: end-of-buffer #:optional arg
Scheme Procedure: mark #:optional force
Scheme Procedure: set-mark pos
Interactive Procedure: set-mark-command #:optional arg
Interactive Procedure: mark-whole-buffer
Interactive Procedure: exchange-point-and-mark
Scheme Procedure: char-after #:optional (point (point))
Interactive Procedure: goto-char #:optional (point (point))
Interactive Procedure: forward-char #:optional (n 1)
Interactive Procedure: backward-char #:optional (n 1)
Interactive Procedure: beginning-of-line #:optional (n 1)
Interactive Procedure: end-of-line #:optional (n 1)
Interactive Procedure: move-beginning-of-line #:optional (n 1)
Interactive Procedure: move-end-of-line #:optional (n 1)
Interactive Procedure: re-search-forward regex #:optional (bound #f) (no-error? #f) (repeat 1)
Interactive Procedure: re-search-backward regex #:optional (bound #f) (no-error? #f) (repeat 1)
Interactive Procedure: forward-word #:optional (n 1)
Interactive Procedure: backward-word #:optional (n 1)
Interactive Procedure: forward-line #:optional (n 1)
Scheme Procedure: backward-line #:optional (n 1)
Scheme Procedure: insert-char char
Interactive Procedure: insert #:rest args
Interactive Procedure: self-insert-command #:optional (n 1)
Variable: kill-ring

.

Interactive Procedure: delete-forward-char #:optional (n 1)
Interactive Procedure: forward-delete-char #:optional (n 1)

Alias for delete-forward-char

Interactive Procedure: delete-backward-char #:optional (n 1)
Interactive Procedure: backward-delete-char #:optional (n 1)

Alias for delete-backward-char

Interactive Procedure: delete-region #:optional (start (point)) (end (mark))
Interactive Procedure: kill-region #:optional (start (point)) (end (mark))
Scheme Procedure: delete-line n
Interactive Procedure: kill-line #:optional (n 1)
Scheme Procedure: delete-word n
Interactive Procedure: kill-word #:optional (n 1)
Interactive Procedure: backward-kill-word #:optional (n 1)

A child of <buffer>, such as <text-buffer>, <minibuffer> or a custom UI buffer may override these, for efficiency or otherwise.

Scheme Procedure: buffer:line-length (buffer <buffer>)
Scheme Procedure: buffer:current-column (buffer <buffer>)
Scheme Procedure: buffer:beginning-of-line (buffer <buffer>) n
Scheme Procedure: buffer:end-of-line (buffer <buffer>) n
Scheme Procedure: buffer:set-mark (buffer <buffer>) pos
Scheme Procedure: buffer:mark (buffer <buffer>)

5.10.1 Editing for Gap Buffer

<text-buffer> inherits from buffer and implements the simplest text editing for the Gap Buffer.

Scheme Procedure: buffer:buffer-string (buffer <text-buffer>)
Scheme Procedure: buffer:goto-char (buffer <text-buffer>) pos
Scheme Procedure: buffer:point (buffer <text-buffer>)
Scheme Procedure: buffer:point-min (buffer <text-buffer>)
Scheme Procedure: buffer:point-max (buffer <text-buffer>)
Scheme Procedure: buffer:set-mark (buffer <text-buffer>) pos
Scheme Procedure: buffer:mark (buffer <text-buffer>)
Scheme Procedure: buffer:char-before (buffer <text-buffer>) point
Scheme Procedure: buffer:char-after (buffer <text-buffer>) pos
Scheme Procedure: buffer:insert-string (buffer <text-buffer>) string
Scheme Procedure: buffer:insert-char (buffer <text-buffer>) char
Scheme Procedure: buffer:delete-char (buffer <text-buffer>) n
Scheme Procedure: buffer:delete-region (buffer <text-buffer>) start end

Next: , Previous: , Up: Api   [Contents][Index]