diff options
Diffstat (limited to 'doc/en/weechat_scripting.en.adoc')
-rw-r--r-- | doc/en/weechat_scripting.en.adoc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/en/weechat_scripting.en.adoc b/doc/en/weechat_scripting.en.adoc index 40251446c..824cb4dd0 100644 --- a/doc/en/weechat_scripting.en.adoc +++ b/doc/en/weechat_scripting.en.adoc @@ -6,7 +6,7 @@ This manual documents WeeChat chat client, it is part of WeeChat. Latest version of this document can be found on -https://weechat.org/doc/[this page ^↗^,window=_blank]. +https://weechat.org/doc/[this page ^↗^^]. [[introduction]] == Introduction @@ -54,7 +54,7 @@ function, this can crash WeeChat. + If something must be run in background, the function `+hook_process+` can be used. See example in the chapter <<hook_process,Run a background process>> and the documentation on the function `+hook_process+` in the -link:weechat_plugin_api.en.html#_hook_process[WeeChat plugin API reference ^↗^,window=_blank]. +link:weechat_plugin_api.en.html#_hook_process[WeeChat plugin API reference ^↗^^]. [[languages_specificities]] === Languages specificities @@ -67,7 +67,7 @@ link:weechat_plugin_api.en.html#_hook_process[WeeChat plugin API reference ^↗ WeeChat defines a `weechat` module which must be imported with `import weechat`. + A Python stub for WeeChat API is available in the repository: -https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi ^↗^,window=_blank]. +https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi ^↗^^]. [[python_functions]] ===== Functions @@ -102,7 +102,7 @@ receive a string of type `str` or `bytes` (this list is not exhaustive): It is recommended to use modifier `+irc_in2_yyy+` instead, the string received is always UTF-8 valid. + See function `+hook_modifier+` in the - link:weechat_plugin_api.en.html#_hook_modifier[WeeChat plugin API reference ^↗^,window=_blank]. + link:weechat_plugin_api.en.html#_hook_modifier[WeeChat plugin API reference ^↗^^]. | hook_signal | xxx,irc_out_yyy + @@ -117,7 +117,7 @@ receive a string of type `str` or `bytes` (this list is not exhaustive): It is recommended to use signal `+xxx,irc_out1_yyy+` instead, the string received is always UTF-8 valid. + See function `+hook_signal+` in the - link:weechat_plugin_api.en.html#_hook_signal[WeeChat plugin API reference ^↗^,window=_blank]. + link:weechat_plugin_api.en.html#_hook_signal[WeeChat plugin API reference ^↗^^]. | hook_process + hook_process_hashtable @@ -198,7 +198,7 @@ You can pass this constant when a function accepts null as an argument and you will get it as the value of an argument in a callback function if the argument value is null. To see which functions accept null values and passes null values to callbacks, look at the Python prototypes in the -link:weechat_plugin_api.en.html[WeeChat plugin API reference ^↗^,window=_blank]. +link:weechat_plugin_api.en.html[WeeChat plugin API reference ^↗^^]. [[language_guile]] ==== Guile (Scheme) @@ -375,7 +375,7 @@ directory is automatically created. == Differences with C API Script API is almost the same as C plugin API. -You can look at link:weechat_plugin_api.en.html[WeeChat plugin API reference ^↗^,window=_blank] +You can look at link:weechat_plugin_api.en.html[WeeChat plugin API reference ^↗^^] for detail about each function in API: prototype, arguments, return values, examples. It's important to make difference between a _plugin_ and a _script_: a @@ -542,7 +542,7 @@ weechat_hook_timer(1000, 0, 1, $timer_cb, 'test'); == Script API For more information about functions in API, please read the -link:weechat_plugin_api.en.html[WeeChat plugin API reference ^↗^,window=_blank]. +link:weechat_plugin_api.en.html[WeeChat plugin API reference ^↗^^]. [[script_api_functions]] === Functions @@ -864,7 +864,7 @@ List of constants in script API: This chapter shows some common tasks, with examples. Only partial things in API are used here, for full reference, see the -link:weechat_plugin_api.en.html[WeeChat plugin API reference ^↗^,window=_blank]. +link:weechat_plugin_api.en.html[WeeChat plugin API reference ^↗^^]. [[buffers]] === Buffers @@ -1134,7 +1134,7 @@ weechat.hook_process("url:https://weechat.org/dev/info/stable/", [TIP] All infos available about WeeChat are on -https://weechat.org/dev/info/[this page ^↗^,window=_blank]. +https://weechat.org/dev/info/[this page ^↗^^]. Example of URL transfer with an option: download latest WeeChat development package in file _/tmp/weechat-devel.tar.gz_: @@ -1153,7 +1153,7 @@ weechat.hook_process_hashtable("url:https://weechat.org/files/src/weechat-devel. For more information about URL transfer and available options, see functions `+hook_process+` and `+hook_process_hashtable+` in -link:weechat_plugin_api.en.html#_hook_process[WeeChat plugin API reference ^↗^,window=_blank]. +link:weechat_plugin_api.en.html#_hook_process[WeeChat plugin API reference ^↗^^]. [[config_options]] === Config / options |