From 393e320d1f8170ff76fb18fca34b5dbdf36dd31f Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 8 Sep 2013 23:12:38 -0400 Subject: Expose marker and indicator numbers for greater customization. Removed their respective color settings. --- doc/14_Appendix.md | 50 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 20 deletions(-) (limited to 'doc') diff --git a/doc/14_Appendix.md b/doc/14_Appendix.md index be7a0235..8696ae58 100644 --- a/doc/14_Appendix.md +++ b/doc/14_Appendix.md @@ -153,33 +153,36 @@ completely new theme implementation. Old API |Change |New API ----------------------------------|:------:|------- **_G** | | -RESETTING |Removed |N/A\* +RESETTING |Removed |N/Aa buffer\_new() |Renamed |\_G.[buffer.new()][] **_M.textadept** |Renamed |[textadept][] filter\_through |Removed |N/A filter\_through.filter\_through() |Renamed |editing.[filter\_through()][] -mime\_types |Renamed |[file\_types][]+ +mime\_types |Renamed |[file\_types][]b **_M.textadept.bookmark** | | N/A |New |[goto\_mark()][] -MARK\_BOOKMARK\_COLOR |Renamed |[BOOKMARK\_COLOR][] +N/A |New |[MARK\_BOOKMARK][] +MARK\_BOOKMARK\_COLOR |Removed |N/Ac goto\_bookmark |Replaced|goto\_mark() goto\_next |Replaced|goto\_mark(true) goto\_prev |Replaced|goto\_mark(false) **_M.textadept.editing** | | -INDIC\_HIGHLIGHT\_BACK |Renamed |[HIGHLIGHT\_COLOR][] +N/A |New |[INDIC\_HIGHLIGHT][] +INDIC\_HIGHLIGHT\_BACK |Removed |N/Ad autocomplete\_word(chars, default)|Changed |[autocomplete\_word][](default) grow\_selection() |Replaced|[select\_enclosed()][] **_M.textadept.menu** | | menubar |Removed |N/A contextmenu |Removed |N/A **_M.textadept.run** | | -MARK\_ERROR\_BACK |Renamed |[ERROR\_COLOR][] +N/A |New |[MARK\_ERROR][] +MARK\_ERROR\_BACK |Removed |N/Ac **_M.textadept.snapopen** |Removed |N/A -open |Changed |\_G.[io.snapopen()][] +open |Changed |\_G.[io.snapopen()][]e **buffer** | | get\_style\_name(buffer, n) |Renamed |[style\_name][]\[n\] **events** | | -N/A |New |[INITIALIZED][] +N/A |New |[INITIALIZED][]f handlers |Removed |N/A **gui** |Renamed |[ui][] docstatusbar\_text |Renamed |[bufstatusbar\_text][] @@ -189,13 +192,17 @@ select\_theme |Removed |N/A **io** | | try\_encodings |Renamed |[encodings][] -\*`arg` is `nil` when resetting. +a`arg` is `nil` when resetting. -+Removed *mime_types.conf* files. Interact with Lua tables directly. +bRemoved *mime_types.conf* files. Interact with Lua tables directly. -Changed arguments too. +cSet [`buffer.marker_back`][] in [`events.VIEW_NEW`][]. -Custom menus and key bindings should take advantage of this since +dSet [`buffer.indic_fore`][] in [`events.VIEW_NEW`][]. + +eChanged arguments too. + +fCustom menus and key bindings should take advantage of this since not all buffer functions are available at the `require()` stage. See *modules/textadept/init.lua* for an example. @@ -204,11 +211,11 @@ not all buffer functions are available at the `require()` stage. See [filter\_through()]: api/textadept.editing.html#filter_through [file\_types]: api/textadept.file_types.html [goto\_mark()]: api/textadept.bookmarks.html#goto_mark -[BOOKMARK\_COLOR]: api/textadept.bookmarks.html#BOOKMARK_COLOR -[HIGHLIGHT\_COLOR]: api/textadept.editing.html#HIGHLIGHT_COLOR +[MARK\_BOOKMARK]: api/textadept.bookmarks.html#MARK_BOOKMARK +[INDIC\_HIGHLIGHT]: api/textadept.editing.html#INDIC_HIGHLIGHT [autocomplete\_word]: api/textadept.editing.html#autocomplete_word [select\_enclosed()]: api/textadept.editing.html#select_enclosed -[ERROR\_COLOR]: api/textadept.run.html#ERROR_COLOR +[MARK\_ERROR]: api/textadept.run.html#MARK_ERROR [io.snapopen()]: api/io.html#snapopen [style\_name]: api/buffer.html#style_name [INITIALIZED]: api/events.html#INITIALIZED @@ -217,6 +224,9 @@ not all buffer functions are available at the `require()` stage. See [maximized]: api/ui.html#maximized [goto\_file\_found()]: api/ui.find.html#goto_file_found [encodings]: api/io.html#encodings +[`buffer.marker_back`]: api/buffer.html#marker_back +[`events.VIEW_NEW`]: api/events.html#VIEW_NEW +[`buffer.indic_fore`]: api/buffer.html#indic_fore #### Module Mentality @@ -398,26 +408,26 @@ Old API |Change |New API getfenv(f) |Removed |N/A. Use:
debug.getupvalue(f, 1) loadstring() |Replaced|load() module() |Removed |N/A -setfenv(f, env)|Removed |N/A. Use:
debug.setupvalue(f, 1, env)\* +setfenv(f, env)|Removed |N/A. Use:
debug.setupvalue(f, 1, env)a unpack() |Renamed |table.unpack() xpcall(f, msgh)|Changed |xpcall(f, msgh, ...) -**\_m** |Renamed |**[\_M][]** +**\_m** |Renamed |**[\_M][]**b **_m.textadept.editing**| | -current\_word(action) |Renamed|[select\_word()][] +current\_word(action) |Renamed|[select\_word()][]c **locale** |Removed|N/A localize(message) |Renamed|\_G.[\_L][][message] **os** | | code = execute(cmd) |Changed|ok, status, code = execute(cmd) -\*In some cases, use `load()` with an environment instead: +aIn some cases, use `load()` with an environment instead: setfenv(loadstring(str), env)() --> load(str, nil, 'bt', env)() -In Textadept, search for "\_m" and replace with "\_M" with the +bIn Textadept, search for "\_m" and replace with "\_M" with the "Match Case" and "Whole Words" options checked -- this is what I did when upgrading Textadept's internals. -To delete, call `_M.textadept.keys.utils.delete_word()` or define +cTo delete, call `_M.textadept.keys.utils.delete_word()` or define your own: local function delete_word() -- cgit v1.2.3