From d633a4c74e824113f5d242cb18573fed3015bc27 Mon Sep 17 00:00:00 2001
From: mitchell <70453897+667e-11@users.noreply.github.com>
Date: Sat, 31 Aug 2013 00:47:12 -0400
Subject: Allow user scripts to handle `BUFFER_NEW` and `VIEW_NEW` events on
startup. A side effect is more efficient event emission during startup.
---
doc/14_Appendix.md | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
(limited to 'doc/14_Appendix.md')
diff --git a/doc/14_Appendix.md b/doc/14_Appendix.md
index a586dd27..663be78d 100644
--- a/doc/14_Appendix.md
+++ b/doc/14_Appendix.md
@@ -158,7 +158,7 @@ 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][]+
**_M.textadept.bookmark** | |
N/A |New |[goto\_mark()][]
MARK\_BOOKMARK\_COLOR |Renamed |[BOOKMARK\_COLOR][]
@@ -175,8 +175,9 @@ contextmenu |Removed |N/A
**_M.textadept.run** | |
MARK\_ERROR\_BACK |Renamed |[ERROR\_COLOR][]
**_M.textadept.snapopen** |Removed |N/A
-open |Changed |\_G.[io.snapopen()][]‡
+open |Changed |\_G.[io.snapopen()][]†
**events** | |
+N/A |New |[INITIALIZED][]‡
handlers |Removed |N/A
**gui** |Renamed |[ui][]
N/A |New |[maximized][]
@@ -187,9 +188,13 @@ try\_encodings |Renamed |[encodings][]
\*`arg` is `nil` when resetting.
-†Removed *mime_types.conf* files. Interact with Lua tables directly.
++Removed *mime_types.conf* files. Interact with Lua tables directly.
-‡Changed arguments too.
+†Changed arguments too.
+
+‡Custom 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.
[buffer.new()]: api/buffer.html#new
[textadept]: api/textadept.html
@@ -202,6 +207,7 @@ try\_encodings |Renamed |[encodings][]
[select\_enclosed()]: api/textadept.editing.html#select_enclosed
[ERROR\_COLOR]: api/textadept.run.html#ERROR_COLOR
[io.snapopen()]: api/io.html#snapopen
+[INITIALIZED]: api/events.html#INITIALIZED
[ui]: api/ui.html
[maximized]: api/ui.html#maximized
[goto\_file\_found()]: api/ui.find.html#goto_file_found
--
cgit v1.2.3