From f10a48801dd09bb6cb058b4f783f879720d22bf0 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 25 Sep 2011 22:37:24 -0400 Subject: Refactored textadept.c and changed Lua interface a bit. '_BUFFERS' and '_VIEWS' now also have buffer and view keys with index values; 'buffer.doc_pointer', 'view.doc_pointer', and 'gui.focused_doc_pointer' are no longer used; 'buffer:check_global()' replaces 'gui.check_focused_buffer()'; Added 'view.buffer' field; 'view:goto_buffer()' and 'gui.goto_view()' arguments changed to make more sense. --- core/._G.luadoc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'core/._G.luadoc') diff --git a/core/._G.luadoc b/core/._G.luadoc index 1cf55e23..e2d8401c 100644 --- a/core/._G.luadoc +++ b/core/._G.luadoc @@ -31,15 +31,23 @@ arg = {} --- --- A numerically indexed table of open buffers in Textadept. +-- Table of all open buffers in Textadept. +-- Numeric keys have buffer values and buffer keys have their associated numeric +-- keys. -- @class table -- @name _BUFFERS +-- @usage _BUFFERS[1] contains the first buffer. +-- @usage _BUFFERS[_BUFFERS[1]] evaluates to 1, the index of the first buffer. _BUFFERS = {} --- --- A numerically indexed table of views in Textadept. +-- Table of all views in Textadept. +-- Numeric keys have view values and view keys have their associated numeric +-- keys. -- @class table -- @name _VIEWS +-- @usage _VIEWS[1] contains the first view. +-- @usage _VIEWS[_VIEWS[1]] evaluates to 1, the index of the first view. _VIEWS = {} --- -- cgit v1.2.3