From cc971c06f46ea18048ea2dfd3c31f66b1e675c8f Mon Sep 17 00:00:00 2001 From: Otto Modinos Date: Mon, 25 Aug 2014 03:55:48 +0300 Subject: manpage: mention that mp.commandv doesn't expand properties The little lua snippet at #488 as well as the actual implementation seems to indicate that not expanding properties is indeed the correct behavior. Document that. Signed-off-by: wm4 --- DOCS/man/lua.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'DOCS/man') diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 0ab53f0231..1b0f77cead 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -74,6 +74,10 @@ The ``mp`` module is preloaded, although it can be loaded manually with These two commands are equivalent, except that the first version breaks if the filename contains spaces or certain special characters. + Note that properties are *not* expanded. You can use either ``mp.command``, + the ``expand-properties`` prefix, or the ``mp.get_property`` family of + functions. + ``mp.get_property(name [,def])`` Return the value of the given property as string. These are the same properties as used in input.conf. See `Properties`_ for a list of -- cgit v1.2.3