diff options
author | 2014-05-23 22:20:13 -0400 | |
---|---|---|
committer | 2014-05-23 22:20:13 -0400 | |
commit | f7296a1f9acf04c91420a9bd011f3726f394eaf7 (patch) | |
tree | 86dd0fd6d93a056e438e1bb8771466be4061f048 /core/.buffer.luadoc | |
parent | 085af1b75d4e9f12e3f095416ed5c0190ff36a2e (diff) | |
download | textadept-f7296a1f9acf04c91420a9bd011f3726f394eaf7.tar.gz textadept-f7296a1f9acf04c91420a9bd011f3726f394eaf7.zip |
Renamed `io.set_buffer_encoding()` to `buffer:set_encoding()`.
Diffstat (limited to 'core/.buffer.luadoc')
-rw-r--r-- | core/.buffer.luadoc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc index dd13b8e5..9170dc37 100644 --- a/core/.buffer.luadoc +++ b/core/.buffer.luadoc @@ -2698,6 +2698,14 @@ function new() end function text_range(buffer, start_pos, end_pos) end --- +-- Converts the current buffer's contents to encoding *encoding*. +-- @param buffer A buffer. +-- @param encoding The string encoding to set. Valid encodings are ones that GNU +-- iconv accepts. +-- @usage io.set_buffer_encoding('ASCII') +function set_encoding(buffer, encoding) end + +--- -- Returns the buffer's lexer name. -- If *current* is `true`, returns the name of the lexer under the caret in -- a multiple-language lexer. |