diff options
author | Timotej Lazar <timotej.lazar@araneo.si> | 2016-07-14 20:04:59 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-07-14 22:37:42 +0200 |
commit | 91a1b17104e6417cb2c77c838c85fabcff9e7d11 (patch) | |
tree | d6aa52db710cc28d246b94c66b18c6c9172fcd98 /player/lua/defaults.lua | |
parent | 6e45e1de7778fab39e478f4e05008eb96bbec523 (diff) | |
download | mpv-91a1b17104e6417cb2c77c838c85fabcff9e7d11.tar.bz2 mpv-91a1b17104e6417cb2c77c838c85fabcff9e7d11.tar.xz |
Use - as command-name separator everywhere
Old-style commands using _ as separator (e.g. show_progress) were still
used in some places, including documentation and configuration files.
This commit updates all such instances to the new style (show-progress)
so that commands are easier to find in the manual.
Diffstat (limited to 'player/lua/defaults.lua')
-rw-r--r-- | player/lua/defaults.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/player/lua/defaults.lua b/player/lua/defaults.lua index e499ecc917..901a8cf246 100644 --- a/player/lua/defaults.lua +++ b/player/lua/defaults.lua @@ -42,8 +42,8 @@ function mp.input_disable_section(section) mp.commandv("disable-section", section) end --- For dispatching script_binding. This is sent as: --- script_message_to $script_name $binding_name $keystate +-- For dispatching script-binding. This is sent as: +-- script-message-to $script_name $binding_name $keystate -- The array is indexed by $binding_name, and has functions like this as value: -- fn($binding_name, $keystate) local dispatch_key_bindings = {} @@ -412,7 +412,7 @@ mp.register_event("shutdown", function() mp.keep_running = false end) mp.register_event("client-message", message_dispatch) mp.register_event("property-change", property_change) --- sent by "script_binding" +-- sent by "script-binding" mp.register_script_message("key-binding", dispatch_key_binding) mp.msg = { |