From 7e88330753edcf2df034e2240c2e77e1006d2e64 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 9 Sep 2013 21:48:15 -0400 Subject: Moved buffer IO functions into the `io` module. Menus and key bindings do not need `events.INITIALIZED`. --- doc/14_Appendix.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'doc/14_Appendix.md') diff --git a/doc/14_Appendix.md b/doc/14_Appendix.md index 8696ae58..5687411e 100644 --- a/doc/14_Appendix.md +++ b/doc/14_Appendix.md @@ -181,8 +181,13 @@ MARK\_ERROR\_BACK |Removed |N/Ac open |Changed |\_G.[io.snapopen()][]e **buffer** | | get\_style\_name(buffer, n) |Renamed |[style\_name][]\[n\] +reload |Renamed |[io.reload\_file][] +save |Renamed |[io.save\_file][] +save\_as |Renamed |[io.save\_file\_as][] +close |Renamed |[io.close\_buffer][] +set\_encoding |Renamed |[io.set\_buffer\_encoding][] **events** | | -N/A |New |[INITIALIZED][]f +N/A |New |[INITIALIZED][] handlers |Removed |N/A **gui** |Renamed |[ui][] docstatusbar\_text |Renamed |[bufstatusbar\_text][] @@ -191,6 +196,8 @@ find.goto\_file\_in\_list() |Renamed |find.[goto\_file\_found()][] select\_theme |Removed |N/A **io** | | try\_encodings |Renamed |[encodings][] +save\_all |Renamed |[save\_all\_files][] +close\_all |Renamed |[close\_all\_buffers][] a`arg` is `nil` when resetting. @@ -202,10 +209,6 @@ try\_encodings |Renamed |[encodings][] 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. - [buffer.new()]: api/buffer.html#new [textadept]: api/textadept.html [filter\_through()]: api/textadept.editing.html#filter_through @@ -218,12 +221,19 @@ not all buffer functions are available at the `require()` stage. See [MARK\_ERROR]: api/textadept.run.html#MARK_ERROR [io.snapopen()]: api/io.html#snapopen [style\_name]: api/buffer.html#style_name +[io.reload\_file]: api/io.html#reload_file +[io.save\_file]: api/io.html#save_file +[io.save\_file\_as]: api/io.html#save_file_as +[io.close\_buffer]: api/io.html#close_buffer +[io.set\_buffer\_encoding]: api/io.html#set_buffer_encoding [INITIALIZED]: api/events.html#INITIALIZED [ui]: api/ui.html [bufstatusbar\_text]: api/ui.html#bufstatusbar_text [maximized]: api/ui.html#maximized [goto\_file\_found()]: api/ui.find.html#goto_file_found [encodings]: api/io.html#encodings +[save\_all\_files]: api/io.html#save_all_files +[close\_all\_buffers]: api/io.html#close_all_buffers [`buffer.marker_back`]: api/buffer.html#marker_back [`events.VIEW_NEW`]: api/events.html#VIEW_NEW [`buffer.indic_fore`]: api/buffer.html#indic_fore -- cgit v1.2.3