From 842886b7d09a24e49822f298aa58b8261655faa4 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 1 Oct 2008 16:26:30 +0200 Subject: [PATCH] awful: add compatibility with old function names from util Signed-off-by: Julien Danjou --- lib/awful/init.lua.in | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/awful/init.lua.in b/lib/awful/init.lua.in index 2c7981472..4dbc566a9 100644 --- a/lib/awful/init.lua.in +++ b/lib/awful/init.lua.in @@ -17,7 +17,29 @@ local titlebar = require("awful.titlebar") local util = require("awful.util") local widget = require("awful.widget") +local ipairs = ipairs +local unpack = unpack + --- awful: AWesome Functions very UsefuL module("awful") +local deprecated_functions = +{ + "color_strip_alpha", + "cycle", + "mkdir", + "spawn", + "pread", + "eval", + "escape", + "unescape" +} + +for k, v in ipairs(deprecated_functions) do + _M[v] = function (...) + util.deprecate() + util[v](unpack(arg)) + end +end + -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80