From 52011a68e1395dab5b10a922b6fb2f1c9e83c2c1 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 15 Feb 2017 19:45:23 +0100 Subject: [PATCH] util.deprecate_class: use raw=true always (#1564) Fixes > W: awful: function margin is deprecated, see wibox.layout.margin has been renamed to wibox.container.margin. to > W: wibox.layout.margin has been renamed to wibox.container.margin. --- lib/awful/util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/util.lua b/lib/awful/util.lua index 5cc96268..ea59042f 100644 --- a/lib/awful/util.lua +++ b/lib/awful/util.lua @@ -74,13 +74,13 @@ function util.deprecate_class(fallback, old_name, new_name) local message = old_name.." has been renamed to "..new_name local function call(_,...) - util.deprecate(message) + util.deprecate(message, {raw = true}) return fallback(...) end local function index(_, k) - util.deprecate(message) + util.deprecate(message, {raw = true}) return fallback[k] end