aboutsummaryrefslogtreecommitdiff
path: root/doc/14_Appendix.md
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-09-09 21:48:15 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-09-09 21:48:15 -0400
commit7e88330753edcf2df034e2240c2e77e1006d2e64 (patch)
tree63b7afd8d28129922e7eb5c1f64f7af9dd58813f /doc/14_Appendix.md
parent393e320d1f8170ff76fb18fca34b5dbdf36dd31f (diff)
downloadtextadept-7e88330753edcf2df034e2240c2e77e1006d2e64.tar.gz
textadept-7e88330753edcf2df034e2240c2e77e1006d2e64.zip
Moved buffer IO functions into the `io` module.
Menus and key bindings do not need `events.INITIALIZED`.
Diffstat (limited to 'doc/14_Appendix.md')
-rw-r--r--doc/14_Appendix.md20
1 files changed, 15 insertions, 5 deletions
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/A<sup>c</sup>
open |Changed |\_G.[io.snapopen()][]<sup>e</sup>
**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][]<sup>f</sup>
+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][]
<sup>a</sup>`arg` is `nil` when resetting.
@@ -202,10 +209,6 @@ try\_encodings |Renamed |[encodings][]
<sup>e</sup>Changed arguments too.
-<sup>f</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
[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