From 662add52092d91977dd22005bb871575aea92cc0 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 31 May 2014 10:58:54 -0400 Subject: Fixed erroneous LuaDoc. --- core/.buffer.luadoc | 2 +- core/ui.lua | 26 ++++++++------------------ 2 files changed, 9 insertions(+), 19 deletions(-) (limited to 'core') 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) @@ -397,24 +405,6 @@ events_connect(events.ERROR, ui.print) -- @name menubar 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 -- cgit v1.2.3