GET_INFO(BUFFER_VARIABLE)
For an overview of the GET_INFO built-in, see the HELP topic GET_INFO.
The following strings can be used for parameter2 when parameter1 is a
buffer variable:
Parameter 2 | Return Value (Parameter 1 is a buffer variable)
----------------+----------------------------------------------------------
"character" | String - Character at the current editing position
"direction" | Keyword - FORWARD or REVERSE
"eob_text" | String - String representing the end-of-buffer text
"file_name" | String - File name associated with the buffer when
| created
"first_marker" | Marker - First marker in VAXTPU's internal list
| of markers for the buffer
| 0 - if none
"first_range" | Range - First range in VAXTPU's internal list of
| ranges for the buffer
| 0 - if none
"key_map_list" | String - Returns the key-map list bound to the buffer
"left_margin" | Integer - Current left margin setting
"left_margin_ | Program - The program variable containing the program
action" | invoked when a character is typed outside
| the left margin
"line" | String - Line of text at current editing position
"map_count" | Integer - Number of windows associated with the buffer
"max_lines" | Integer - Maximum number of records (lines) in the buffer
"mode" | Keyword - INSERT or OVERSTRIKE
"modifiable" | (1 or 0) Indicates whether the buffer is modifiable
"modified" | (1 or 0) - Indicates whether the buffer has been modified
"name" | String - Name given buffer when created
"next_marker" | Marker - Next marker in VAXTPU's internal list
| of markers for the buffer
| 0 - if no more
"next_range" | Range - Next range in VAXTPU's internal list of
| ranges for the buffer
| 0 - if no more
"no_write" | (1 or 0) - Indicates whether the buffer (if modified)
| should be output to a file upon exit
"offset" | Integer - Number of character positions between the first
| character of the record and the editing point
| point associated with the buffer; returns 0
| if the editing point is to the left of the
| left margin
"offset_column" | Integer - Number of screen columns between the beginning
| of the current record and the editing point
| associated with the buffer
"output_file" | String - Name of explicitly SET output file
| 0 - if none
"permanent" | (1 or 0) - Indicates whether the buffer is permanent
| or if it can be deleted
"read_routine" | Program The program or learn sequence that VAXTPU
| or executes when it owns a global selection and
| Learn or 0 another DECwindows application has requested
| information about that selection. Returns
| 0 if no read routine exists. When you use
| this request string, use the keyword
| GLOBAL_SELECT as the third parameter.
"record_count" | Integer - Number of lines in the buffer
"record_size" | Integer - Maximum length for lines in the buffer
"right_margin" | Integer - Current right margin setting
"right_margin_ | Program - The program variable containing the program
action" | invoked when a character is typed outside the
| right margin
"system" | (1 or 0) - Indicates whether the buffer is a system buffer
"tab_stops" | String - Returns a string of the tab stop values
| or separated by spaces; or an integer for
| Integer the number of columns between tab stops