diff options
author | 2013-09-09 21:48:15 -0400 | |
---|---|---|
committer | 2013-09-09 21:48:15 -0400 | |
commit | 7e88330753edcf2df034e2240c2e77e1006d2e64 (patch) | |
tree | 63b7afd8d28129922e7eb5c1f64f7af9dd58813f /core/.buffer.luadoc | |
parent | 393e320d1f8170ff76fb18fca34b5dbdf36dd31f (diff) | |
download | textadept-7e88330753edcf2df034e2240c2e77e1006d2e64.tar.gz textadept-7e88330753edcf2df034e2240c2e77e1006d2e64.zip |
Moved buffer IO functions into the `io` module.
Menus and key bindings do not need `events.INITIALIZED`.
Diffstat (limited to 'core/.buffer.luadoc')
-rw-r--r-- | core/.buffer.luadoc | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc index 488422a9..82a363ae 100644 --- a/core/.buffer.luadoc +++ b/core/.buffer.luadoc @@ -2721,43 +2721,6 @@ function new() end 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`. -- @param buffer The global buffer. |