diff options
author | 2013-08-31 00:47:12 -0400 | |
---|---|---|
committer | 2013-08-31 00:47:12 -0400 | |
commit | d633a4c74e824113f5d242cb18573fed3015bc27 (patch) | |
tree | 41c05e5b83036493d61e68871dc3b011dd71bf03 /doc/14_Appendix.md | |
parent | a54200e99b529d2fbbee6e27fabcb2e8de908c19 (diff) | |
download | textadept-d633a4c74e824113f5d242cb18573fed3015bc27.tar.gz textadept-d633a4c74e824113f5d242cb18573fed3015bc27.zip |
Allow user scripts to handle `BUFFER_NEW` and `VIEW_NEW` events on startup.
A side effect is more efficient event emission during startup.
Diffstat (limited to 'doc/14_Appendix.md')
-rw-r--r-- | doc/14_Appendix.md | 14 |
1 files changed, 10 insertions, 4 deletions
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][]<sup>†</sup> +mime\_types |Renamed |[file\_types][]<sup>+</sup> **_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()][]<sup>‡</sup> +open |Changed |\_G.[io.snapopen()][]<sup>†</sup> **events** | | +N/A |New |[INITIALIZED][]<sup>‡</sup> handlers |Removed |N/A **gui** |Renamed |[ui][] N/A |New |[maximized][] @@ -187,9 +188,13 @@ try\_encodings |Renamed |[encodings][] <sup>\*</sup>`arg` is `nil` when resetting. -<sup>†</sup>Removed *mime_types.conf* files. Interact with Lua tables directly. +<sup>+</sup>Removed *mime_types.conf* files. Interact with Lua tables directly. -<sup>‡</sup>Changed arguments too. +<sup>†</sup>Changed arguments too. + +<sup>‡</sup>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 |