Sébastien Helleu
cfd221014c
api: add argument "bytes" in function string_dyn_concat
2020-08-23 23:27:57 +02:00
Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
3d95217745
api: return allocated string in hook_info callback and function info_get
2019-04-13 08:42:45 +02:00
Sébastien Helleu
2b0057239b
core: update copyright dates
2019-01-01 15:40:51 +01:00
Sébastien Helleu
4712d0bb06
core: use https for links to GNU GPL license
2018-11-29 23:16:07 +01:00
Sébastien Helleu
b7d6be5936
scripts: fix duplicated lines in output of script eval (python, perl, ruby, lua and guile)
...
When there was a call to a hook callback during the eval, the output buffer was
cleared too late, and displayed multiple times in the buffer.
This commit clears the buffer even before we display it (this display can
trigger a hook callback).
2018-07-25 20:19:26 +02:00
Sébastien Helleu
9265acf879
scripts: fix memory leak in hook_info callback
2018-04-13 19:55:20 +02:00
Sébastien Helleu
41d63511b4
scripts: fix return value of hook_infolist callback (pointer instead of string)
2018-04-12 00:12:20 +02:00
Sébastien Helleu
8cf3b09d81
scripts: hide message when the eval script is unloaded
...
Related to commit 8fbbe8b0d5 .
2018-03-17 08:17:41 +01:00
Sébastien Helleu
20f9ca7d4a
scripts: display the script name in stdout/stderr output from scripts
2018-02-19 21:27:08 +01:00
Sébastien Helleu
8fbbe8b0d5
scripts: add option "eval_keep_context" in script plugins
2018-01-15 22:00:15 +01:00
Sébastien Helleu
21e63e7958
scripts: add configuration file for each script plugin
2018-01-15 21:57:06 +01:00
Sébastien Helleu
eb0560812b
scripts: add missing initialization of plugin pointer to NULL
2018-01-14 21:47:18 +01:00
Sébastien Helleu
7ee88fb46c
core: fix some styles
2018-01-07 09:11:45 +01:00
Sébastien Helleu
9876a8d0a7
core: update translations (issue #128 )
2018-01-06 14:07:57 +01:00
Sébastien Helleu
eb54230760
lua: add support of eval (issue #128 )
2018-01-06 14:07:50 +01:00
Sébastien Helleu
414959a474
scripts: add "eval" option in script commands and info "xxx_eval" (issue #128 )
...
For now this works only in python, perl, ruby and guile.
2018-01-06 14:07:35 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
c4626bc08a
scripts: add option "version" in script commands ( closes #1075 )
2017-12-23 20:35:30 +01:00
Sébastien Helleu
b072586d79
core: add missing includes of stdio.h
2017-11-04 21:03:15 +01:00
Sébastien Helleu
6532c9a538
fset: fix priority of plugin (load it after all other plugins)
...
This fixes a refresh problem of options after /upgrade in fset buffer.
2017-07-08 14:46:33 +02:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
tomoe-mami
899b397f3f
lua: use lua_pushinteger for int values in lua 5.3
2016-11-01 14:18:47 +01:00
Sébastien Helleu
8a1650b26f
lua: fix crash when a lua function doesn't return a value and a string was expected ( closes #718 )
2016-04-23 14:33:04 +02:00
Sébastien Helleu
cf6aca1619
core: add pointer in some callbacks ( closes #406 )
...
This pointer is the first argument received by callbacks, and the
existing argument "data" is now automatically freed by WeeChat when the
object containing the callback is removed.
With this new pointer, the linked list of callbacks in scripts has been
removed. This will improve speed of scripts (using a lot of hooks),
reduce memory used by scripts and reduce time to unload scripts.
Following functions are affected in the C API:
* exec_on_files
* config_new
* config_new_section
* config_new_option
* hook_command
* hook_command_run
* hook_timer
* hook_fd
* hook_process
* hook_process_hashtable
* hook_connect
* hook_print
* hook_signal
* hook_hsignal
* hook_config
* hook_completion
* hook_modifier
* hook_info
* hook_info_hashtable
* hook_infolist
* hook_hdata
* hook_focus
* unhook_all_plugin
* buffer_new
* bar_item_new
* upgrade_new
* upgrade_read
2016-03-21 18:11:21 +01:00
Sébastien Helleu
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
71dd64678c
core: add comments after some #endif
2015-04-30 21:15:30 +02:00
Sébastien Helleu
e95f853303
scripts: reset current script pointer when load of script fails in python/perl/ruby/lua/tcl plugins
2015-03-07 09:35:29 +01:00
Sébastien Helleu
c1a5a76d08
scripts: reformat some code to make it more readable
2015-02-21 09:16:25 +01:00
Sébastien Helleu
8f11de6863
scripts: improve comments on functions that convert hashtables
2015-02-21 09:12:44 +01:00
Sébastien Helleu
cf5501f69c
core: add priority in plugins to initialize them in order
...
Current order is: charset, logger, exec, trigger, aspell, alias, fifo, xfer,
irc, relay, guile/lua/perl/python/ruby/tcl, script.
2015-01-15 07:40:38 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
1ef3237b6b
api: return value in function command(), remove WeeChat error after command callback if return code is WEECHAT_RC_ERROR
2014-11-22 08:14:29 +01:00
Sebastien Helleu
cf827580f5
lua: return WEECHAT_RC_ERROR in command /lua if arguments are wrong/missing
2014-02-21 13:37:58 +01:00
Sebastien Helleu
be159f42a8
lua: fix interpreter used after unload of a script
2014-02-17 22:00:16 +01:00
Sebastien Helleu
437767c0ca
api: add integer return code for functions hook_{signal|hsignal}_send
2014-02-10 17:42:53 +01:00
Sebastien Helleu
86a99af606
scripts: fix script interpreter used after register during load of script in python/perl/ruby/lua/guile plugins (bug #41345 )
2014-01-25 13:04:25 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
717eaae496
scripts: use #ifdef to check if versions are defined in signal "debug_libs"
2013-11-18 14:32:13 +01:00
Sebastien Helleu
b63ac8a0f1
scripts: display lib version on signal "debug_libs"
2013-11-17 20:51:54 +01:00
Sebastien Helleu
5a333b788d
lua: fix crash on calls to callbacks during load of script
2013-10-24 14:21:18 +02:00
Sebastien Helleu
4668f0bef5
lua: fix interpreter used in API functions (bug #39470 )
2013-07-13 07:22:02 +02:00
Sebastien Helleu
2ffa199a7d
lua: remove use of functions for API constants
2013-03-24 20:01:57 +01:00
Sebastien Helleu
149c77decd
core: fix typos in many comments and some strings
2013-03-17 12:55:20 +01:00
Sebastien Helleu
3fb123510a
lua: fix crash on stack overflow: call lua_pop() for values returned by lua functions (bug #38510 )
2013-03-13 18:27:55 +01:00
Sebastien Helleu
b60aec975b
script: add control of autoload (enable/disable/toggle) (task #12393 )
...
New option script.scripts.autoload, new options autoload/noautoload/toggleautoload
for command /script, new action "A" (meta-A) on script buffer (toggle autoload).
2013-02-25 08:46:41 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +01:00
Sebastien Helleu
7eb5cc4b97
core: move comments with description of C file to top of files
2012-12-15 12:27:57 +01:00
Sebastien Helleu
7d34812f1c
core: reformat comments for functions
2012-12-13 18:51:44 +01:00
Sebastien Helleu
32c93b5c0a
core: add command /eval, use expression in conditions for bars, add function "string_eval_expression" in plugin API
2012-11-02 09:37:15 +01:00