|
|
|
|
|
|
Synopsis |
|
|
|
Documentation |
|
|
Move point to start of line
|
|
|
Move point to end of line
|
|
|
Move cursor to origin
|
|
|
Move cursor to end of buffer
|
|
|
Move left if on eol, but not on blank line
|
|
|
Move x chars back, or to the sol, whichever is less
|
|
|
Move x chars forward, or to the eol, whichever is less
|
|
|
Move to first char of next word forwards
|
|
|
Move to first char of next word backwards
|
|
Char-based movement actions.
|
|
|
Move to the next occurence of c
|
|
|
Move to the character before the next occurence of c
|
|
|
Move to the previous occurence of c
|
|
|
Move to the character after the previous occurence of c
|
|
|
Move to first non-space character in this line
|
|
|
Move to the last non-space character in this line
|
|
|
Go to the first non space character in the line;
if already there, then go to the beginning of the line.
|
|
|
Move down next n paragraphs
|
|
|
Move up prev n paragraphs
|
|
|
|
|
Return true if the current point is the start of a line
|
|
|
Return true if the current point is the end of a line
|
|
|
True if point at start of file
|
|
|
True if point at end of file
|
|
|
Get the current line and column number
|
|
|
Read the line the point is on
|
|
|
|
|
Read from point to end of line
|
|
|
Read from point to beginning of line
|
|
|
|
|
Get the previous point, unless at the beginning of the file
|
|
|
Get the next point, unless at the end of the file
|
|
|
|
|
Delete one character backward
|
|
|
Delete forward whitespace or non-whitespace depending on
the character under point.
|
|
|
Delete backward whitespace or non-whitespace depending on
the character before point.
|
|
|
capitalise the word under the cursor
|
|
|
lowerise word under the cursor
|
|
|
capitalise the first letter of this word
|
|
|
Delete to the end of line, excluding it.
|
|
|
Delete whole line moving to the next line
|
|
|
Transpose two characters, (the Emacs C-t action)
|
|
|
Delete trailing whitespace from all lines
|
|
|
Marks
Set the current buffer selection mark
|
|
|
Get the current buffer selection mark
|
|
|
Exchange point & mark.
|
|
|
|
|
|
|
|
File info, size in chars, line no, col num, char num, percent
|
|
|
|
|
|
|
Scroll up 1 screen
|
|
|
Scroll down 1 screen
|
|
|
Scroll by n screens (negative for up)
|
|
|
Scroll according to function passed. The function takes the
| Window height in lines, its result is passed to scrollB
| (negative for up)
|
|
|
Same as scrollB, but also moves the cursor
|
|
|
Same as scrollByB, but also moves the cursor
|
|
|
Move to middle line in screen
|
|
|
Move cursor to the top of the screen
|
|
|
Move cursor to the bottom of the screen
|
|
|
Scroll by n lines.
|
|
|
Move the point to inside the viewable region
|
|
|
return index of Sol on line n above current line
|
|
|
Move the visible region to include the point
|
|
|
Move to n lines down from top of screen
|
|
|
Move to n lines up from the bottom of the screen
|
|
|
Move to middle line in screen
|
|
|
|
|
Return the region between point and mark
|
|
|
Return the empty region if the selection is not visible.
|
|
|
Get the current region boundaries. Extended to the current selection unit.
|
|
|
Select the given region: set the selection mark at the regionStart
and the current point at the regionEnd.
|
|
|
Extend the selection mark using the given region.
|
|
|
|
|
Get a (lazy) stream of lines in the buffer, starting at the next line
in the given direction.
|
|
|
|
|
|
|
|
|
|
|
Uses a string modifying function to modify the current selection
Currently unsets the mark such that we have no selection, arguably
we could instead work out where the new positions should be
and move the mark and point accordingly.
|
|
|
|
|
:: String | The string that starts a line comment
| -> BufferM () | | Prefix each line in the selection using
the given string.
|
|
|
|
:: String | The string which begins a line comment
| -> String | A potentially shorter string that begins a comment
| -> BufferM () | | Uncomments the selection using the given line comment
starting string. This only works for the comments which
begin at the start of the line.
|
|
|
|
Toggle line comments in the selection by adding or removing a prefix to each
line.
|
|
|
Justifies all the lines of the selection to be the same as
the top line.
NOTE: if the selection begins part way along a line, the other
lines will be justified only with respect to the part of the indentation
which is selected.
|
|
|
Replace the contents of the buffer with some string
|
|
|
Fill the text in the region so it fits nicely 80 columns.
|
|
|
|
|
Sort the lines of the region.
|
|
|
Helper function: revert the buffer contents to its on-disk version
|
|
Produced by Haddock version 2.6.1 |