array-mode is an interactive autoloaded compiled Lisp function in `
Major mode for editing arrays.
Array mode is a specialized mode for editing arrays. An array is
considered to be a two-dimensional set of strings. The strings are
NOT recognized as integers or real numbers.
The array MUST reside at the top of the buffer.
TABs are not respected, and may be converted into spaces at any time.
Setting the variable `array-respect-tabs' to non-nil will prevent TAB conversion,
but will cause many functions to give errors if they encounter one.
Upon entering array mode, you will be prompted for the values of
several variables. Others will be calculated based on the values you
supply. These variables are all local to the buffer. Other buffer
in array mode may have different values assigned to the variables.
The variables are:
Variables you assign:
array-max-row: The number of rows in the array.
array-max-column: The number of columns in the array.
array-columns-per-line: The number of columns in the array per line of buffer.
array-field-width: The width of each field, in characters.
array-rows-numbered: A logical variable describing whether to ignore
row numbers in the buffer.
Variables which are calculated:
array-line-length: The number of characters in a buffer line.
array-lines-per-row: The number of buffer lines used to display each row.
The following commands are available (an asterisk indicates it may
take a numeric prefix argument):
* C-f Move forward one column.
* C-b Move backward one column.
* C-n Move down one row.
* C-p Move up one row.
* M-f Copy the current field into the column to the right.
* M-b Copy the current field into the column to the left.
* M-n Copy the current field into the row below.
* M-p Copy the current field into the row above.
* C-M-f Copy the current column into the column to the right.
* C-M-b Copy the current column into the column to the left.
* C-M-n Copy the current row into the row below.
* C-M-p Copy the current row into the row above.
M-a f Copy the field at mark into every cell with row and column
between that of point and mark.
M-a = Display the current array row and column.
M-a g Go to a particular array cell.
M-a m Make a template for a new array.
M-a r Reconfigure the array.
M-a e Expand the array (remove row numbers and
newlines inside rows)
M-a d Display the current values of local variables.
Entering array mode calls the function `array-mode-hook'.