aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/.buffer.luadoc
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2011-01-17 15:50:06 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2011-01-17 15:50:06 -0500
commitd196ce1c86c27e0b07b2ee537da07e362f44e784 (patch)
tree4b3e7cdadc82657d7d3a2aaef2b69beabfc5299c /core/.buffer.luadoc
parent5b3d39a6ac36e344ae95666b6b60f3ee1d4e1057 (diff)
Added Adeptsense.
Diffstat (limited to 'core/.buffer.luadoc')
-rw-r--r--core/.buffer.luadoc574
1 files changed, 289 insertions, 285 deletions
diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc
index 5a24425d..680cbcd5 100644
--- a/core/.buffer.luadoc
+++ b/core/.buffer.luadoc
@@ -346,658 +346,662 @@ module('buffer')
---
-- Gets a range of text from the current buffer.
--- The indexed buffer must be the currently focused one.
+-- @param buffer The currently focused buffer.
-- @param start_pos The beginning position of the range of text to get.
-- @param end_pos The end position of the range of text to get.
-function buffer:text_range(start_pos, end_pos)
+function buffer.text_range(buffer, start_pos, end_pos) end
---
-- Deletes the current buffer.
--- The indexed buffer must be the currently focused one. WARNING: this function
--- should NOT be called via scripts. io provides a close() function for buffers
--- to prompt for confirmation if necessary; this function does not. Activates
--- the 'buffer_deleted' signal.
-function buffer:delete()
+-- WARNING: this function should NOT be called via scripts. io provides a
+-- close() function for buffers to prompt for confirmation if necessary; this
+-- function does not. Activates the 'buffer_deleted' signal.
+-- @param buffer The focused buffer.
+function buffer.delete(buffer) end
--- Adds a new selection from anchor to caret as the main selection. All other
-- selections are retained as additional selections.
-function buffer:add_selection(caret, anchor)
+function buffer.add_selection(buffer, caret, anchor) end
--- Adds text to the document at the current position.
-function buffer:add_text(text)
+function buffer.add_text(buffer, text) end
--- Adds an action to the undo stack.
-function buffer:add_undo_action(token, flags)
+function buffer.add_undo_action(buffer, token, flags) end
--- Enlarges the document to a particular size of text bytes
-function buffer:allocate(bytes)
+function buffer.allocate(buffer, bytes) end
--- Clears all lines of annotations.
-function buffer:annotation_clear_all()
+function buffer.annotation_clear_all(buffer) end
--- Returns the styles of the annotation for the given line.
-function buffer:annotation_get_styles(line)
+function buffer.annotation_get_styles(buffer, line) end
--- Returns the annotation text for the given line.
-function buffer:annotation_get_text(line)
+function buffer.annotation_get_text(buffer, line) end
--- Sets the styled annotation text for the given line.
-function buffer:annotation_set_styles(line, styles)
+function buffer.annotation_set_styles(buffer, line, styles) end
--- Sets the annotation text for the given line.
-function buffer:annotation_set_text(line, text)
+function buffer.annotation_set_text(buffer, line, text) end
--- Appends a string to the end of the document without changing the selection.
-function buffer:append_text(text)
+function buffer.append_text(buffer, text) end
--- Returns a flag indicating whether or not an autocompletion list is visible.
-function buffer:auto_c_active()
+function buffer.auto_c_active(buffer) end
--- Removes the autocompletion list from the screen.
-function buffer:auto_c_cancel()
+function buffer.auto_c_cancel(buffer) end
--- Item selected; removes the list and insert the selection.
-function buffer:auto_c_complete()
+function buffer.auto_c_complete(buffer) end
--- Returns the currently selected item position in the autocompletion list.
-function buffer:auto_c_get_current()
+function buffer.auto_c_get_current(buffer) end
--- Returns the currently selected text in the autocompletion list.
-function buffer:auto_c_get_current_text()
+function buffer.auto_c_get_current_text(buffer) end
--- Returns the position of the caret when the autocompletion list was shown.
-function buffer:auto_c_pos_start()
+function buffer.auto_c_pos_start(buffer) end
--- Selects the item in the autocompletion list that starts with a string.
-function buffer:auto_c_select(string)
+function buffer.auto_c_select(buffer, string) end
--- Displays an autocompletion list.
-- @param len_entered The number of characters before the caret used to provide
-- the context.
-- @param item_list String if completion items separated by spaces.
-function buffer:auto_c_show(len_entered, item_list)
+function buffer.auto_c_show(buffer, len_entered, item_list) end
--- Defines a set of characters that why typed cancel the autocompletion list.
-function buffer:auto_c_stops(chars)
+function buffer.auto_c_stops(buffer, chars) end
--- Dedents selected lines.
-function buffer:back_tab()
+function buffer.back_tab(buffer) end
--- Starts a sequence of actions that are undone/redone as a unit.
-function buffer:begin_undo_action()
+function buffer.begin_undo_action(buffer) end
--- Highlights the character at a position indicating there's no matching brace.
-function buffer:brace_bad_light(pos)
+function buffer.brace_bad_light(buffer, pos) end
--- Highlights the characters at two positions as matching braces.
-function buffer:brace_highlight(pos1, pos2)
+function buffer.brace_highlight(buffer, pos1, pos2) end
--- Returns the position of a matching brace at a position or -1.
-function buffer:brace_match(pos)
+function buffer.brace_match(buffer, pos) end
--- Returns a flag indicating whether or not a call tip is active.
-function buffer:call_tip_active()
+function buffer.call_tip_active(buffer) end
--- Removes the call tip from the screen.
-function buffer:call_tip_cancel()
+function buffer.call_tip_cancel(buffer) end
--- Returns the position where the caret was before showing the call tip.
-function buffer:call_tip_pos_start()
+function buffer.call_tip_pos_start(buffer) end
--- Highlights a segment of a call tip.
-function buffer:call_tip_set_hlt(start_pos, end_pos)
+function buffer.call_tip_set_hlt(buffer, start_pos, end_pos) end
--- Shows a call tip containing text at or near a position.
-function buffer:call_tip_show(pos, text)
+function buffer.call_tip_show(buffer, pos, text) end
--- Returns a flag indicating whether or not a paste will succeed.
-function buffer:can_paste()
+function buffer.can_paste(buffer) end
--- Returns a flag indicating whether or not there are redoable actions in the
-- undo history.
-function buffer:can_redo()
+function buffer.can_redo(buffer) end
--- Returns a flag indicating whether or not there are redoable actions in the
-- undo history.
-function buffer:can_undo()
+function buffer.can_undo(buffer) end
--- Cancels any modes such as call tip or autocompletion list display.
-function buffer:cancel()
+function buffer.cancel(buffer) end
--- Indicate that the internal state of a lexer has changed over a range and
-- therefore there may be a need to redraw.
-function buffer:change_lexer_state(start_pos, end_pos)
+function buffer.change_lexer_state(buffer, start_pos, end_pos) end
--- Moves the caret left one character.
-function buffer:char_left()
+function buffer.char_left(buffer) end
--- Moves the caret left one character, extending the selection.
-function buffer:char_left_extend()
+function buffer.char_left_extend(buffer) end
--- Moves the caret left one character, extending the rectangular selection.
-function buffer:char_left_rect_extend()
+function buffer.char_left_rect_extend(buffer) end
--- Finds the closest character to a point.
-function buffer:char_position_from_point(x, y)
+function buffer.char_position_from_point(buffer, x, y) end
--- Finds the closest character to a point, but returns -1 if the given point is
-- outside the window or not close to any characters.
-function buffer:char_position_from_point_close(x, y)
+function buffer.char_position_from_point_close(buffer, x, y) end
--- Moves the caret right one character.
-function buffer:char_right()
+function buffer.char_right(buffer) end
--- Moves the caret right one character, extending the selection.
-function buffer:char_right_extend()
+function buffer.char_right_extend(buffer) end
--- Moves the caret right one character, extending the rectangular selection.
-function buffer:char_right_rect_extend()
+function buffer.char_right_rect_extend(buffer) end
--- Sets the last x chosen value to be the caret x position.
-function buffer:choose_caret_x()
+function buffer.choose_caret_x(buffer) end
--- Clears the selection.
-function buffer:clear()
+function buffer.clear(buffer) end
--- Deletes all text in the document.
-function buffer:clear_all()
+function buffer.clear_all(buffer) end
--- Drops all key mappings.
-function buffer:clear_all_cmd_keys()
+function buffer.clear_all_cmd_keys(buffer) end
--- Sets all style bytes to 0, remove all folding information.
-function buffer:clear_document_style()
+function buffer.clear_document_style(buffer) end
--- Clears all the registered XPM images.
-function buffer:clear_registered_images()
+function buffer.clear_registered_images(buffer) end
--- Clears all selections.
-function buffer:clear_selections()
+function buffer.clear_selections(buffer) end
--- Colorizes a segment of the document using the current lexing language.
-function buffer:colourise(start_pos, end_pos)
+function buffer.colourise(buffer, start_pos, end_pos) end
--- Returns the first line in a contracted fold state starting from line_start
-- or -1 when the end of the file is reached.
-function buffer:contracted_fold_next(line_start)
+function buffer.contracted_fold_next(buffer, line_start) end
--- Converts all line endings in the document to one mode.
-- @param mode The line ending mode. 0: CRLF, 1: CR, 2: LF.
-function buffer:convert_eo_ls(mode)
+function buffer.convert_eo_ls(buffer, mode) end
--- Copies the selection to the clipboard.
-function buffer:copy()
+function buffer.copy(buffer) end
--- Copies the selection to the clipboard or the current line.
-function buffer:copy_allow_line()
+function buffer.copy_allow_line(buffer) end
--- Copies a range of text to the clipboard.
-function buffer:copy_range(start_pos, end_pos)
+function buffer.copy_range(buffer, start_pos, end_pos) end
--- Copies argument text to the clipboard.
-function buffer:copy_text(text)
+function buffer.copy_text(buffer, text) end
--- Cuts the selection to the clipboard.
-function buffer:cut()
+function buffer.cut(buffer) end
--- Deletes back from the current position to the start of the line.
-function buffer:del_line_left()
+function buffer.del_line_left(buffer) end
--- Deletes forwards from the current position to the end of the line.
-function buffer:del_line_right()
+function buffer.del_line_right(buffer) end
--- Deletes the word to the left of the caret.
-function buffer:del_word_left()
+function buffer.del_word_left(buffer) end
--- Deletes the word to the right of the caret.
-function buffer:del_word_right()
+function buffer.del_word_right(buffer) end
--- Deletes the word to the right of the caret to its end.
-function buffer:del_word_right_end()
+function buffer.del_word_right_end(buffer) end
--- Deletes the selection or the character before the caret.
-function buffer:delete_back()
+function buffer.delete_back(buffer) end
--- Deletes the selection or the character before the caret. Will not delete the
-- character before at the start of a lone.
-function buffer:delete_back_not_line()
+function buffer.delete_back_not_line(buffer) end
--- Retrieve a '\n' separated list of descriptions of the keyword sets
-- understood by the current lexer.
-function buffer:describe_key_word_sets()
+function buffer.describe_key_word_sets(buffer) end
--- Describe a property.
-function buffer:describe_property(name)
+function buffer.describe_property(buffer, name) end
--- Returns the document line of a display line taking hidden lines into
-- account.
-function buffer:doc_line_from_visible()
+function buffer.doc_line_from_visible(buffer) end
--- Moves the caret to the last position in the document.
-function buffer:document_end()
+function buffer.document_end(buffer) end
--- Moves the caret to the last position in the document, extending the
-- selection.
-function buffer:document_end_extend()
+function buffer.document_end_extend(buffer) end
--- Moves the caret to the first position in the document.
-function buffer:document_start()
+function buffer.document_start(buffer) end
--- Moves the caret to the first position in the document, extending the
-- selection.
-function buffer:document_start_extend()
+function buffer.document_start_extend(buffer) end
--- Switches from insert to overtype mode or the reverse.
-function buffer:edit_toggle_overtype()
+function buffer.edit_toggle_overtype(buffer) end
--- Deletes the undo history.
-function buffer:empty_undo_buffer()
+function buffer.empty_undo_buffer(buffer) end
--- Translates a UTF8 string into the document encoding and returns its length.
-function buffer:encoded_from_utf8(string)
+function buffer.encoded_from_utf8(buffer, string) end
--- Ends a sequence of actions that is undone/redone as a unit.
-function buffer:end_undo_action()
+function buffer.end_undo_action(buffer) end
--- Ensures a particular line is visible by expanding any header line hiding it.
-function buffer:ensure_visible(line)
+function buffer.ensure_visible(buffer, line) end
--- Ensures a particular line is visible by expanding any header line hiding it.
-- Uses the currently set visible policy to determine which range to display.
-function buffer:ensure_visible_enforce_policy(line)
+function buffer.ensure_visible_enforce_policy(buffer, line) end
--- Returns the position of the column on a line taking into account tabs and
-- multi-byte characters or the line end position.
-function buffer:find_column(line, column)
+function buffer.find_column(buffer, line, column) end
--- Inserts a form feed character.
-function buffer:form_feed()
+function buffer.form_feed(buffer) end
--- Returns the text of the line containing the caret and the index of the caret
-- on the line.
-function buffer:get_cur_line()
+function buffer.get_cur_line(buffer) end
--- Returns the background color for active hotspots.
-function buffer:get_hotspot_active_back()
+function buffer.get_hotspot_active_back(buffer) end
--- Returns the foreground color for active hotspots.
-function buffer:get_hotspot_active_fore()
+function buffer.get_hotspot_active_fore(buffer) end
--- Returns the last child line of a header line.
-function buffer:get_last_child(header_line, level)
+function buffer.get_last_child(buffer, header_line, level) end
--- Returns the name of the lexing language used by the document.
-function buffer:get_lexer_language()
+function buffer.get_lexer_language(buffer) end
--- Returns the contents of a line.
-function buffer:get_line(line)
+function buffer.get_line(buffer, line) end
--- Returns the position of the end of the selection at the given line or -1.
-function buffer:get_line_sel_end_position(line)
+function buffer.get_line_sel_end_position(buffer, line) end
--- Returns the position of the start of the selection at the given line or -1.
-function buffer:get_line_sel_start_position(line)
+function buffer.get_line_sel_start_position(buffer, line) end
--- Returns the value of a property.
-function buffer:get_property(property)
+function buffer.get_property(buffer, property) end
--- Returns the value of a property with "$()" variable replacement.
-function buffer:get_property_expanded()
+function buffer.get_property_expanded(buffer) end
--- Returns the selected text.
-function buffer:get_sel_text()
+function buffer.get_sel_text(buffer) end
--- Returns the text matched by a tagged expression in a regexp search.
-function buffer:get_tag(tag_num)
+function buffer.get_tag(buffer, tag_num) end
--- Returns all text in the document and its length.
-function buffer:get_text()
+function buffer.get_text(buffer) end
--- Sets the caret to the start of a line and ensure it is visible.
-function buffer:goto_line(line)
+function buffer.goto_line(buffer, line) end
--- Sets the caret to a position and ensure it is visible.
-function buffer:goto_pos(pos)
+function buffer.goto_pos(buffer, pos) end
--- Sets the focus to this Scintilla widget.
-function buffer:grab_focus()
+function buffer.grab_focus(buffer) end
--- Makes a range of lines invisible.
-function buffer:hide_lines(start_line, end_line)
+function buffer.hide_lines(buffer, start_line, end_line) end
--- Draws the selection in normal style or with the selection highlighted.
-function buffer:hide_selection(normal)
+function buffer.hide_selection(buffer, normal) end
--- Moves the caret to the first position on the current line.
-function buffer:home()
+function buffer.home(buffer) end
--- Moves the caret to the first position on the display line.
-function buffer:home_display()
+function buffer.home_display(buffer) end
--- Moves the caret to the first position on the display line, extending the
-- selection.
-function buffer:home_display_extend()
+function buffer.home_display_extend(buffer) end
--- Moves the caret to the first position on the current line, extending the
-- selection.
-function buffer:home_extend()
+function buffer.home_extend(buffer) end
--- Moves the caret to the first position on the current line, extending the
-- rectangular selection.
-function buffer:home_rect_extend()
+function buffer.home_rect_extend(buffer) end
--- Moves the caret to the start of the current display line and then the
-- document line. (If word wrap is enabled)
-function buffer:home_wrap()
+function buffer.home_wrap(buffer) end
--- Moves the caret to the start of the current display line and then the
-- document line, extending the selection. (If word wrap is enabled)
-function buffer:home_wrap_extend()
+function buffer.home_wrap_extend(buffer) end
--- Returns a flag indicating whether or not any indicators are present at the
-- specified position.
-function buffer:indicator_all_on_for(pos)
+function buffer.indicator_all_on_for(buffer, pos) end
--- Turns an indicator off over a range.
-function buffer:indicator_clear_range(pos, clear_length)
+function buffer.indicator_clear_range(buffer, pos, clear_length) end
--- Returns the position where a particular indicator ends.
-function buffer:indicator_end(indicator, pos)
+function buffer.indicator_end(buffer, indicator, pos) end
--- Turns an indicator on over a range.
-function buffer:indicator_fill_range(pos, fill_length)
+function buffer.indicator_fill_range(buffer, pos, fill_length) end
--- Returns the position where a particular indicator starts.
-function buffer:indicator_start(indicator, pos)
+function buffer.indicator_start(buffer, indicator, pos) end
--- Returns the value of a particular indicator at the specified position.
-function buffer:indicator_value_at(indicator, pos)
+function buffer.indicator_value_at(buffer, indicator, pos) end
--- Inserts text at a position. -1 is the document's length.
-function buffer:insert_text(pos, text)
+function buffer.insert_text(buffer, pos, text) end
--- Copies the line containing the caret.
-function buffer:line_copy()
+function buffer.line_copy(buffer) end
--- Cuts the line containing the caret.
-function buffer:line_cut()
+function buffer.line_cut(buffer) end
--- Deletes the line containing the caret.
-function buffer:line_delete()
+function buffer.line_delete(buffer) end
--- Moves the caret down one line.
-function buffer:line_down()
+function buffer.line_down(buffer) end
--- Moves the caret down one line, extending the selection.
-function buffer:line_down_extend()
+function buffer.line_down_extend(buffer) end
--- Moves the caret down one line, extending the rectangular selection.
-function buffer:line_down_rect_extend()
+function buffer.line_down_rect_extend(buffer) end
--- Duplicates the current line.
-function buffer:line_duplicate()
+function buffer.line_duplicate(buffer) end
--- Moves the caret to the last position on the current line.
-function buffer:line_end()
+function buffer.line_end(buffer) end
--- Moves the caret to the last position on the display line.
-function buffer:line_end_display()
+function buffer.line_end_display(buffer) end
--- Moves the caret to the last position on the display line, extending the
-- selection.
-function buffer:line_end_display_extend()
+function buffer.line_end_display_extend(buffer) end
--- Moves the caret to the last position on the current line, extending the
-- selection.
-function buffer:line_end_extend()
+function buffer.line_end_extend(buffer) end
--- Moves the caret to the last position on the current line, extending the
-- rectangular selection.
-function buffer:line_end_rect_extend()
+function buffer.line_end_rect_extend(buffer) end
--- Moves the caret to the last position on the current display line and then
-- the document line. (If wrap mode is enabled)
-function buffer:line_end_wrap()
+function buffer.line_end_wrap(buffer) end
--- Moves the caret to the last position on the current display line and then
-- the document line, extending the selection. (If wrap mode is enabled)
-function buffer:line_end_wrap_extend()
+function buffer.line_end_wrap_extend(buffer) end
--- Returns the line containing the position.
-function buffer:line_from_position(pos)
+function buffer.line_from_position(buffer, pos) end
--- Returns the length of the specified line including EOL characters.
-function buffer:line_length(line)
+function buffer.line_length(buffer, line) end
--- Scrolls horizontally and vertically the number of columns and lines.
-function buffer:line_scroll(columns, lines)
+function buffer.line_scroll(buffer, columns, lines) end
--- Scrolls the document down, keeping the caret visible.
-function buffer:line_scroll_down()
+function buffer.line_scroll_down(buffer) end
--- Scrolls the document up, keeping the caret visible.
-function buffer:line_scroll_up()
+function buffer.line_scroll_up(buffer) end
--- Switches the current line with the previous.
-function buffer:line_transpose()
+function buffer.line_transpose(buffer) end
--- Moves the caret up one line.
-function buffer:line_up()
+function buffer.line_up(buffer) end
--- Moves the caret up one line, extending the selection.
-function buffer:line_up_extend()
+function buffer.line_up_extend(buffer) end
--- Moves the caret up one line, extending the rectangular selection.
-function buffer:line_up_rect_extend()
+function buffer.line_up_rect_extend(buffer) end
--- Joins the lines in the target.
-function buffer:lines_join()
+function buffer.lines_join(buffer) end
--- Splits lines in the target into lines that are less wide that pixel_width
-- where possible.
-function buffer:lines_split(pixel_width)
+function buffer.lines_split(buffer, pixel_width) end
--- Loads a lexer library (dll/so)
-function buffer:load_lexer_library(path)
+function buffer.load_lexer_library(buffer, path) end
--- Transforms the selection to lower case.
-function buffer:lower_case()
+function buffer.lower_case(buffer) end
--- Returns the styled margin text for the given line.
-function buffer:margin_get_styles(line)
+function buffer.margin_get_styles(buffer, line) end
--- Returns the margin text for the given line.
-function buffer:margin_get_text(line)
+function buffer.margin_get_text(buffer, line) end
--- Sets the styled margin text for the given line.
-function buffer:margin_set_styles(line, styles)
+function buffer.margin_set_styles(buffer, line, styles) end
--- Sets the margin text for the given line.
-function buffer:margin_set_text(line, text)
+function buffer.margin_set_text(buffer, line, text) end
--- Clears all margin text.
-function buffer:margin_text_clear_all()
+function buffer.margin_text_clear_all(buffer) end
--- Adds a marker to a line, returning an ID which can be used to find or delete
-- the marker.
-function buffer:marker_add(line, marker_num)
+function buffer.marker_add(buffer, line, marker_num) end
--- Adds a set of markers to a line.
-function buffer:marker_add_set(line, set)
+function buffer.marker_add_set(buffer, line, set) end
--- Sets the symbol used for a particular marker number.
-function buffer:marker_define(marker_num, marker_symbol)
+function buffer.marker_define(buffer, marker_num, marker_symbol) end
--- Defines a marker from a pixmap.
-function buffer:marker_define_pixmap(marker_num, pixmap)
+function buffer.marker_define_pixmap(buffer, marker_num, pixmap) end
--- Deletes a marker from a line.
-function buffer:marker_delete(line, marker_num)
+function buffer.marker_delete(buffer, line, marker_num) end
--- Deletes all markers with a particular number from all lines.
-function buffer:marker_delete_all(marker_num)
+function buffer.marker_delete_all(buffer, marker_num) end
--- Deletes a marker.
-function buffer:marker_delete_handle(handle)
+function buffer.marker_delete_handle(buffer, handle) end
--- Gets a bit mask of all the markers set on a line.
-function buffer:marker_get(line)
+function buffer.marker_get(buffer, line) end
--- Returns the line number at which a particular marker is located.
-function buffer:marker_line_from_handle(handle)
+function buffer.marker_line_from_handle(buffer, handle) end
--- Finds the next line after start_line that includes a marker in marker_mask.
-function buffer:marker_next(start_line, marker_mask)
+function buffer.marker_next(buffer, start_line, marker_mask) end
--- Finds the previous line after start_line that includes a marker in
-- marker_mask.
-function buffer:marker_previous(start_line, marker_mask)
+function buffer.marker_previous(buffer, start_line, marker_mask) end
--- Sets the alpha used for a marker that is drawn in the text area, not the
-- margin.
-function buffer:marker_set_alpha(marker_num, alpha)
+function buffer.marker_set_alpha(buffer, marker_num, alpha) end
--- Sets the background color used for a particular marker number.
-function buffer:marker_set_back(marker_num, color)
+function buffer.marker_set_back(buffer, marker_num, color) end
--- Sets the foreground color used for a particular marker number.
-function buffer:marker_set_fore(marker_num, color)
+function buffer.marker_set_fore(buffer, marker_num, color) end
--- Returns the symbol defined for the given marker_number.
-function buffer:marker_symbol_defined(marker_number)
+function buffer.marker_symbol_defined(buffer, marker_number) end
--- Moves the caret inside the current view if it's not there already.
-function buffer:move_caret_inside_view()
+function buffer.move_caret_inside_view(buffer) end
--- Inserts a new line depending on EOL mode.
-function buffer:new_line()
+function buffer.new_line(buffer) end
--- Null operation
-function buffer:null()
+function buffer.null(buffer) end
--- Moves the caret one page down.
-function buffer:page_down()
+function buffer.page_down(buffer) end
--- Moves the caret one page down, extending the selection.
-function buffer:page_down_extend()
+function buffer.page_down_extend(buffer) end
--- Moves the caret one page down, extending the rectangular selection.
-function buffer:page_down_rect_extend()
+function buffer.page_down_rect_extend(buffer) end
--- Moves the caret one page up.
-function buffer:page_up()
+function buffer.page_up(buffer) end
--- Moves the caret one page up, extending the selection.
-function buffer:page_up_extend()
+function buffer.page_up_extend(buffer) end
--- Moves the caret one page up, extending the rectangular selection.
-function buffer:page_up_rect_extend()
+function buffer.page_up_rect_extend(buffer) end
--- Moves the caret one paragraph down (delimited by empty lines).
-function buffer:para_down()
+function buffer.para_down(buffer) end
--- Moves the caret one paragraph down (delimited by empty lines), extending the
-- selection.
-function buffer:para_down_extend()
+function buffer.para_down_extend(buffer) end
--- Moves the caret one paragraph up (delimited by empty lines).
-function buffer:para_up()
+function buffer.para_up(buffer) end
--- Moves the caret one paragraph up (delimited by empty lines), extending the
-- selection.
-function buffer:para_up_extend()
+function buffer.para_up_extend(buffer) end
--- Pastes the contents of the clipboard into the document replacing the
-- selection.
-function buffer:paste()
+function buffer.paste(buffer) end
--- For private communication between an application and a known lexer.
-function buffer:private_lexer_call(operation)
+function buffer.private_lexer_call(buffer, operation) end
--- Returns the x value of the point in the window where a position is shown.
-function buffer:point_x_from_position(pos)
+function buffer.point_x_from_position(buffer, pos) end
--- Returns the y value of the point in the window where a position is shown.
-function buffer:point_y_from_position(pos)
+function buffer.point_y_from_position(buffer, pos) end
--- Returns the next position in the document taking code page into account.
-function buffer:position_after(pos)
+function buffer.position_after(buffer, pos) end
--- Returns the previous position in the document taking code page into account.
-function buffer:position_before(pos)
+function buffer.position_before(buffer, pos) end
--- Returns the position at the start of the specified line.
-function buffer:position_from_line(line)
+function buffer.position_from_line(buffer, line) end
--- Returns the position from a point within the window.
-function buffer:position_from_point(x, y)
+function buffer.position_from_point(buffer, x, y) end
--- Returns the position from a point within the window, but return -1 if not
-- close to text.
-function buffer:position_from_point_close(x, y)
+function buffer.position_from_point_close(buffer, x, y) end
--- Retrieve a '\n' separated list of properties understood by the current
-- lexer.
-function buffer:property_names()
+function buffer.property_names(buffer) end
--- Retrieve the type of a property.
-function buffer:property_type(name)
+function buffer.property_type(buffer, name) end
--- Redoes the next action in the undo history.
-function buffer:redo()
+function buffer.redo(buffer) end
--- Registers and XPM image for use in autocompletion lists.
-function buffer:register_image(type, xmp_data)
+function buffer.register_image(buffer, type, xmp_data) end
--- Replaces the selected text with the argument text.
-function buffer:replace_sel(text)
+function buffer.replace_sel(buffer, text) end
--- Replaces the target text with the argument text.
-function buffer:replace_target(text)
+function buffer.replace_target(buffer, text) end
--- Replaces the target text with the argument text after \d processing.
-- Looks for \d where d is 1-9 and replaces it with the strings captured by a
-- previous RE search.
-function buffer:replace_target_re(text)
+function buffer.replace_target_re(buffer, text) end
--- Makes the next selection the main selection.
-function buffer:rotate_selection()
+function buffer.rotate_selection(buffer) end
--- Ensures the caret is visible.
-function buffer:scroll_caret()
+function buffer.scroll_caret(buffer) end
--- Sets the current caret position to be the search anchor.
-function buffer:search_anchor()
+function buffer.search_anchor(buffer) end
--- Searches for a string in the target and sets the target to the found range,
-- returning the length of the range or -1.
-function buffer:search_in_target(text)
+function buffer.search_in_target(buffer, text) end
--- Finds some text starting at the search anchor. (Does not scroll selection)
-- @param flags Mask of search flags. 2: whole word, 4: match case, 0x00100000:
-- word start, 0x00200000 regexp, 0x00400000: posix.
-function buffer:search_next(flags, text)
+function buffer.search_next(buffer, flags, text) end
--- Finds some text starting at the search anchor and moving backwards. (Does
-- not scroll the selection)
-- @param flags Mask of search flags. 2: whole word, 4: match case, 0x00100000:
-- word start, 0x00200000 regexp, 0x00400000: posix.
-function buffer:search_prev(flags, text)
+function buffer.search_prev(buffer, flags, text) end
--- Selects all the text in the document.
-function buffer:select_all()
+function buffer.select_all(buffer) end
--- Duplicates the selection or the line containing the caret.
-function buffer:selection_duplicate()
+function buffer.selection_duplicate(buffer) end
--- Resets the set of characters for whitespace and word characters to the
-- defaults.
-function buffer:set_chars_default()
+function buffer.set_chars_default(buffer) end
--- Sets some style options for folding.
-- @param flags Mask of fold flags. 0x0002: line before expanded, 0x0004: line
-- before contracted, 0x0008: line after expanded, 0x0010: line after
-- contracted, 0x0040: level numbers, 0x0001: box.
-function buffer:set_fold_flags(flags)
+function buffer.set_fold_flags(buffer, flags) end
--- Sets the background color used as a checkerboard pattern in the fold margin.
-function buffer:set_fold_margin_colour(use_setting, color)
+function buffer.set_fold_margin_colour(buffer, use_setting, color) end
--- Sets the foreground color used as a checkerboard pattern in the fold margin.
-function buffer:set_fold_margin_hi_colour(use_setting, color)
+function buffer.set_fold_margin_hi_colour(buffer, use_setting, color) end
--- Sets a background color for active hotspots.
-function buffer:set_hotspot_active_back(use_setting, color)
+function buffer.set_hotspot_active_back(buffer, use_setting, color) end
--- Sets a foreground color for active hotspots.
-function buffer:set_hotspot_active_fore(use_setting, color)
+function buffer.set_hotspot_active_fore(buffer, use_setting, color) end
--- Sets the length of the utf8 argument for calling encoded_from_utf8.
-function buffer:set_length_for_encode(bytes)
+function buffer.set_length_for_encode(buffer, bytes) end
--- Sets the lexer language to the specified name.
-function buffer:set_lexer_language(language_name)
+function buffer.set_lexer_language(buffer, language_name) end
--- Remembers the current position in the undo history as the position at which
-- the document was saved.
-function buffer:set_save_point()
+function buffer.set_save_point(buffer) end
--- Selects a range of text.
-function buffer:set_sel(start_pos, end_pos)
+function buffer.set_sel(buffer, start_pos, end_pos) end
--- Sets the background color of the selection and whether to use this setting.
-function buffer:set_sel_back(use_setting, color)
+function buffer.set_sel_back(buffer, use_setting, color) end
--- Sets the foreground color of the selection and whether to use this setting.
-function buffer:set_sel_fore(use_setting, color)
+function buffer.set_sel_fore(buffer, use_setting, color) end
--- Set a single selection from anchor to caret as the only selection.
-function buffer:set_selection(caret, anchor)
+function buffer.set_selection(buffer, caret, anchor) end
--- Changes the style from the current styling position for a length of
-- characters to a style and move the current styling position to after this
-- newly styled segment.
-function buffer:set_styling(length, style)
+function buffer.set_styling(buffer, length, style) end
--- Sets the styles for a segment of the document.
-function buffer:set_styling_ex(length, styles)
+function buffer.set_styling_ex(buffer, length, styles) end
--- Replaces the contents of the document with the argument text.
-function buffer:set_text(text)
+function buffer.set_text(buffer, text) end
--- Sets the way the display area is determined when a particular line is to be
-- moved to by find, find_next, goto_line, etc.
-- @param visible_policy 0x01: slop, 0x04: strict.
-- @param visible_slop 0x01: slop, 0x04: strict.
-function buffer:set_visible_policy(visible_policy, visible_slop)
+function buffer.set_visible_policy(buffer, visible_policy, visible_slop) end
--- Sets the background color of all whitespace and whether to use this setting.
-function buffer:set_whitespace_back(use_setting, color)
+function buffer.set_whitespace_back(buffer, use_setting, color) end
--- Sets the foreground color of all whitespace and whether to use this setting.
-function buffer:set_whitespace_fore(use_setting, color)
+function buffer.set_whitespace_fore(buffer, use_setting, color) end
--- Sets the way the caret is kept visible when going side-ways.
-- @param caret_policy 0x01: slop, 0x04: strict, 0x10: jumps, 0x08: even.
-function buffer:set_x_caret_policy(caret_policy, caret_slop)
+function buffer.set_x_caret_policy(buffer, caret_policy, caret_slop) end
--- Sets the way the line the caret is visible on is kept visible.
-- @param caret_policy 0x01: slop, 0x04: strict, 0x10: jumps, 0x08: even.
-function buffer:set_y_caret_policy(caret_policy, caret_slop)
+function buffer.set_y_caret_policy(buffer, caret_policy, caret_slop) end
--- Makes a range of lines visible.
-function buffer:show_lines(start_line, end_line)
+function buffer.show_lines(buffer, start_line, end_line) end
--- Starts notifying the container of all key presses and commands.
-function buffer:start_record()
+function buffer.start_record(buffer) end
--- Sets the current styling position to pos and the styling mask to mask.
-function buffer:start_styling(position, mask)
+function buffer.start_styling(buffer, position, mask) end
--- Stops notifying the container of all key presses and commands.
-function buffer:stop_record()
+function buffer.stop_record(buffer) end
--- Moves caret to the bottom of the page, or one page down if already there.
-function buffer:stuttered_page_down()
+function buffer.stuttered_page_down(buffer) end
--- Moves caret to the bottom of the page, or one page down if already there,
-- extending the selection.
-function buffer:stuttered_page_down_extend()
+function buffer.stuttered_page_down_extend(buffer) end
--- Moves caret to the top of the page, or one page up if already there.
-function buffer:stuttered_page_up()
+function buffer.stuttered_page_up(buffer) end
--- Moves caret to the top of the page, or one page up if already there,
-- extending the selection.
-function buffer:stuttered_page_up_extend()
+function buffer.stuttered_page_up_extend(buffer) end
--- Resets all styles to the global default style.
-function buffer:style_clear_all()
+function buffer.style_clear_all(buffer) end
--- Returns the font name of a given style.
-function buffer:style_get_font(style_num)
+function buffer.style_get_font(buffer, style_num) end
--- Resets the default style to its state at startup.
-function buffer:style_reset_default()
+function buffer.style_reset_default(buffer) end
--- Moves the caret to the opposite end of the main selection.
-function buffer:swap_main_anchor_caret()
+function buffer.swap_main_anchor_caret(buffer) end
--- Inserts a tab character or indent multiple lines.
-function buffer:tab()
+function buffer.tab(buffer) end
--- Returns the target converted to utf8.
-function buffer:target_as_utf8()
+function buffer.target_as_utf8(buffer) end
--- Makes the target range the same as the selection range.
-function buffer:target_from_selection()
+function buffer.target_from_selection(buffer) end
--- Returns the height of a particular line of text in pixels.
-function buffer:text_height(line)
+function buffer.text_height(buffer, line) end
--- Returns the pixel width of some text in a particular style.
-function buffer:text_width(style_num, text)
+function buffer.text_width(buffer, style_num, text) end
--- Switches the caret between sticky and non-sticky.
-function buffer:toggle_caret_sticky()
+function buffer.toggle_caret_sticky(buffer) end
--- Switches a header line between expanded and contracted.
-function buffer:toggle_fold()
+function buffer.toggle_fold(buffer) end
--- Undoes one action in the undo history.
-function buffer:undo()
+function buffer.undo(buffer) end
--- Transforms the selection to upper case.
-function buffer:upper_case()
+function buffer.upper_case(buffer) end
--- Sets whether a pop up menu is displayed automatically when the user presses
-- the right mouse button.
-function buffer:use_pop_up(allow_popup)
+function buffer.use_pop_up(buffer, allow_popup) end
--- Displays a list of strings and sends a notification when one is chosen.
-function buffer:user_list_show(list_type, item_list_string)
+function buffer.user_list_show(buffer, list_type, item_list_string) end
--- Moves the caret to before the first visible character on the current line
-- or the first character on the line if already there.
-function buffer:vc_home()
+function buffer.vc_home(buffer) end
--- Moves the caret to before the first visible character on the current line
-- or the first character on the line if already there, extending the selection.
-function buffer:vc_home_extend()
+function buffer.vc_home_extend(buffer) end
--- Moves the caret to before the first visible character on the current line
-- or the first character on the line if already there, extending the
-- rectangular selection.
-function buffer:vc_home_rect_extend()
+function buffer.vc_home_rect_extend(buffer) end
--- Moves the caret to the first visible character on the current display line
-- and then the document line. (If wrap mode is enabled)
-function buffer:vc_home_wrap()
+function buffer.vc_home_wrap(buffer) end
--- Moves the caret to the first visible character on the current display line
-- and then the document line, extending the selection. (If wrap mode is
-- enabled)
-function buffer:vc_home_wrap_extend()
+function buffer.vc_home_wrap_extend(buffer) end
--- Centers the caret on the screen.
-function buffer:vertical_centre_caret()
+function buffer.vertical_centre_caret(buffer) end
--- Returns the display line of a document line taking hidden lines into
-- account.
-function buffer:visible_from_doc_line(line)
+function buffer.visible_from_doc_line(buffer, line) end
--- Returns the position of the end of a word.
-function buffer:word_end_position(pos, only_word_chars)
+function buffer.word_end_position(buffer, pos, only_word_chars) end
--- Moves the caret left one word.
-function buffer:word_left()
+function buffer.word_left(buffer) end
--- Moves the caret left one word, positioning the caret at the end of the word.
-function buffer:word_left_end()
+function buffer.word_left_end(buffer) end
--- Moves the caret left one word, positioning the caret at the end of the word,
-- extending the selection.
-function buffer:word_left_end_extend()
+function buffer.word_left_end_extend(buffer) end
--- Moves the caret left one word, extending the selection.
-function buffer:word_left_extend()
+function buffer.word_left_extend(buffer) end
--- Moves the caret to the previous change in capitalization or underscore.
-function buffer:word_part_left()
+function buffer.word_part_left(buffer) end
--- Moves the caret to the previous change in capitalization or underscore,
-- extending the selection.
-function buffer:word_part_left_extend()
+function buffer.word_part_left_extend(buffer) end
--- Moves the caret to the next change in capitalization or underscore.
-function buffer:word_part_right()
+function buffer.word_part_right(buffer) end
--- Moves the caret to the next change in capitalization or underscore,
-- extending the selection.
-function buffer:word_part_right_extend()
+function buffer.word_part_right_extend(buffer) end
--- Moves the caret right one word.
-function buffer:word_right()
+function buffer.word_right(buffer) end
--- Moves the caret right one word, positioning the caret at the end of the
-- word.
-function buffer:word_right_end()
+function buffer.word_right_end(buffer) end
--- Moves the caret right one word, positioning the caret at the end of the
-- word, extending the selection.
-function buffer:word_right_end_extend()
+function buffer.word_right_end_extend(buffer) end
--- Moves the caret right one word, extending the selection.
-function buffer:word_right_extend()
+function buffer.word_right_extend(buffer) end
--- Returns the position of a start of a word.
-function buffer:word_start_position(pos, only_word_chars)
+function buffer.word_start_position(buffer, pos, only_word_chars) end
--- Returns the number of display lines needed to wrap a document line.
-function buffer:wrap_count(line)
+function buffer.wrap_count(buffer, line) end
--- Magnifies the displayed text by increasing the font sizes by 1 point.
-function buffer:zoom_in()
+function buffer.zoom_in(buffer) end
--- Makes the displayed text smaller by decreasing the font sizes by 1 point.
-function buffer:zoom_out()
+function buffer.zoom_out(buffer) end
--- Reloads the file in a given buffer.
-function buffer:reload()
+function buffer.reload(buffer) end
---
-- Sets the encoding for the buffer, converting its contents in the process.
+-- @param buffer The focused buffer.
-- @param encoding The encoding to set. Valid encodings are ones that GTK's
-- g_convert() function accepts (typically GNU iconv's encodings).
--- @usage buffer:set_encoding('ASCII')
-function buffer:set_encoding()
+-- @usage buffer.set_encoding(buffer, 'ASCII')
+function buffer.set_encoding(buffer) end
--- Saves the current buffer to a file.
-function buffer:save()
+-- @param buffer The focused buffer.
+function buffer.save(buffer) end
---
-- Saves the current buffer to a file different than its filename property.
+-- @param buffer The focused buffer.
-- @param utf8_filename The new filepath to save the buffer to. Must be UTF-8
-- encoded.
-function buffer:save_as()
+function buffer.save_as(buffer) end
---
-- Closes the current buffer.
+-- @param buffer The focused buffer.
-- If the buffer is dirty, the user is prompted to continue. The buffer is not
-- saved automatically. It must be done manually.
-function buffer:close()
+function buffer.close(buffer) end
---
--- Replacement for buffer:set_lexer_language().
+-- Replacement for buffer.set_lexer_language(buffer, ).
-- Sets a buffer._lexer field so it can be restored without querying the
-- mime-types tables. Also if the user manually sets the lexer, it should be
-- restored.
-- Loads the language-specific module if it exists.
--- @param buffer The buffer to set the lexer language of.
+-- @param buffer The focused buffer.
-- @param lang The string language to set.
--- @usage buffer:set_lexer('language_name')
-function buffer:set_lexer(lang)
+-- @usage buffer.set_lexer(buffer, 'language_name')
+function buffer.set_lexer(buffer, lang) end
---
--- Replacement for buffer:get_lexer_language().
--- @param buffer The buffer to get the lexer language of.
-function buffer:get_lexer()
+-- Replacement for buffer.get_lexer_language(buffer, ).
+-- @param buffer The focused buffer.
+function buffer.get_lexer(buffer) end
---
-- Returns the name of the style associated with a style number.
--- @param buffer The buffer to get the style name of.
+-- @param buffer The focused buffer.
-- @param style_num A style number in the range 0 <= style_num < 256.
-- @see buffer.style_at
-function buffer:get_style_name(style_num)
+function buffer.get_style_name(buffer, style_num) end