Hi! :-)
I had been going through this page on the wiki:
http://awesome.naquadah.org/wiki/Signals
In doing so I noticed that while debug::deprecation does exist in
awesome's source, it jsut isn't added to the array of global signals.
luaA_deprecate() luaa.h emits it but it was never added to awesome's
global signals in luaa.c
The attached patch re-adds it so even if it is currently not used to
report soon-to-be deprecated functions, people can still have a signal
handler for it like so:
awesome.connect_signal('debug::deprecation', function (err)
io.stderr:write(err) end)
See attached patch :]
PS: It might be worth it in the future to have a debug::deprecated
signal to note things that have already been removed? ::deprecation
for things that are going to become obselete, ::deprecated for things
that are already gone but should still be reported to the user?
From 72c2119fc24b1b477e4ebf1e9797dd3eb636c372 Mon Sep 17 00:00:00 2001
From: Majic <[email protected]>
Date: Sun, 4 Dec 2011 15:34:04 -0800
Subject: [PATCH] Re-add missing debug::deprecation signal
---
luaa.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/luaa.c b/luaa.c
index 3c33814..103c63f 100644
--- a/luaa.c
+++ b/luaa.c
@@ -640,6 +640,7 @@ luaA_init(xdgHandle* xdg)
lua_pop(L, 2); /* pop "package" and "package.loaded" */
signal_add(&global_signals, "debug::error");
+ signal_add(&global_signals, "debug::deprecation");
signal_add(&global_signals, "debug::index::miss");
signal_add(&global_signals, "debug::newindex::miss");
signal_add(&global_signals, "systray::update");
--
1.7.8