From 2cea55c6e65e4ea7f735655b45d917b76e8b7945 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 30 Jul 2019 17:19:57 -0400 Subject: Fail more gracefully when attempting to create buffers on init. --- doc/manual.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'doc') diff --git a/doc/manual.md b/doc/manual.md index c1c6fec4..d49f2b1e 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -941,10 +941,9 @@ mind: module names that match the name of a lexer in the *lexers/* directory unless you are creating a language module. * Do not call any functions that create buffers and views (e.g. `ui.print()`, - `io.open_file()`, and `buffer.new()`) at file-level scope. This will result in - hard errors as Textadept initializes. Those types of function calls must occur - within functions (e.g. in a key binding, menu item, or - [`events.INITIALIZED`][] event handler). + `io.open_file()`, and `buffer.new()`) at file-level scope. Those types of + function calls must occur within functions (e.g. in a key binding, menu item, + or [`events.INITIALIZED`][] event handler). * Additional documentation on creating language modules can be found in the the [language module API documentation][]. @@ -979,9 +978,9 @@ later section. Note: Do not call any functions that create buffers and views (e.g. `ui.print()`, `io.open_file()`, and `buffer.new()`) at the file-level scope of -*~/.textadept/init.lua*. This will result in hard errors as Textadept -initializes. Those types of function calls must occur within functions (e.g. in -a key binding, menu item, or [`events.INITIALIZED`][] event handler). +*~/.textadept/init.lua*. Those types of function calls must occur within +functions (e.g. in a key binding, menu item, or [`events.INITIALIZED`][] event +handler). [`events.INITIALIZED`]: api.html#events.INITIALIZED -- cgit v1.2.3