diff options
-rw-r--r-- | core/.buffer.luadoc | 2 | ||||
-rw-r--r-- | core/ui.lua | 26 |
2 files changed, 9 insertions, 19 deletions
diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc index 7a4529da..9a41defb 100644 --- a/core/.buffer.luadoc +++ b/core/.buffer.luadoc @@ -2711,7 +2711,7 @@ function text_range(buffer, start_pos, end_pos) end -- @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') +-- @usage buffer:set_encoding('ASCII') function set_encoding(buffer, encoding) end --- diff --git a/core/ui.lua b/core/ui.lua index 8f40e2fa..7e5f56ed 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -7,6 +7,14 @@ local ui = ui -- Utilities for interacting with Textadept's user interface. -- @field title (string, Write-only) -- The title text of Textadept's window. +-- @field context_menu (userdata) +-- The buffer's context menu, a [`ui.menu()`](#menu). +-- This is a low-level field. You probably want to use the higher-level +-- `textadept.menu.context_menu`. +-- @field tab_context_menu (userdata) +-- The context menu for the buffer's tab, a [`ui.menu()`](#menu). +-- This is a low-level field. You probably want to use the higher-level +-- `textadept.menu.tab_context_menu`. -- @field clipboard_text (string) -- The text on the clipboard. -- @field statusbar_text (string, Write-only) @@ -398,24 +406,6 @@ events_connect(events.ERROR, ui.print) local menubar --- --- A menu userdata that defines the buffer's context menu. --- This is a low-level field. You probably want to use the higher-level --- `textadept.menu.context_menu`. --- @see textadept.menu.context_menu --- @class table --- @name context_menu -local context_menu - ---- --- A menu userdata that defines the context menu for the buffer's tab. --- This is a low-level field. You probably want to use the higher-level --- `textadept.menu.tab_context_menu`. --- @see textadept.menu.tab_context_menu --- @class table --- @name tab_context_menu -local tab_context_menu - ---- -- A table containing the width and height pixel values of Textadept's window. -- @class table -- @name size |