From 7e88330753edcf2df034e2240c2e77e1006d2e64 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 9 Sep 2013 21:48:15 -0400 Subject: Moved buffer IO functions into the `io` module. Menus and key bindings do not need `events.INITIALIZED`. --- core/.buffer.luadoc | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'core/.buffer.luadoc') diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc index 488422a9..82a363ae 100644 --- a/core/.buffer.luadoc +++ b/core/.buffer.luadoc @@ -2720,43 +2720,6 @@ function new() end -- @param end_pos The end position of the range of text to get in *buffer*. function text_range(buffer, start_pos, end_pos) end ---- --- Reloads the file in the buffer. --- @param buffer The global buffer. -function reload(buffer) end - ---- --- Sets the encoding for the buffer to *encoding*, converting its contents from --- the old encoding to the new one. --- @param buffer The global buffer. --- @param encoding The string encoding to set. Valid encodings are ones that GNU --- iconv accepts. --- @usage buffer.set_encoding(buffer, 'ASCII') -function set_encoding(buffer, encoding) end - ---- --- Saves the buffer to the file. --- Emits `FILE_BEFORE_SAVE` and `FILE_AFTER_SAVE` events. --- @param buffer The global buffer. --- @see _G.events -function save(buffer) end - ---- --- Saves the buffer to the *utf8_filename* or user-specified filename. --- Emits a `FILE_SAVED_AS` event. --- @param buffer The global buffer. --- @param utf8_filename The new filepath to save the buffer to. Must be UTF-8 --- encoded. --- @see _G.events -function save_as(buffer, utf8_filename) end - ---- --- Closes the buffer, prompting the user to continue if there are unsaved --- changes, and returns `true` if the buffer was closed. --- @param buffer The global buffer. --- @return `true` if the buffer was closed; `nil` otherwise. -function close(buffer) end - --- -- Returns the name of the lexer used by the buffer, or the name of the lexer -- under the caret in a multiple-language lexer if *current* is `true`. -- cgit v1.2.3