On 15.12.2012 17:14, Daniel wrote:
>>>> Just try with the latest awesome from git; you cannot access
>>>> naughty.notifications from your rc.lua. It is local to the module; all =
>>>> you get is nil. It happened here:
> 
>>> Ok, didn't know.
> 
>> Shouldn't it be possible to patch naughty, so that you can query it for a
>> list of active notifications?
> 
> Sure, that would be very easy. I would probably do it if I knew that upstream
> would accept it (exposing the notification table), and apply a patch. Ulf?

No idea who this Ulf guy is, but I wouldn't mind such a patch (mostly because
this just reverts back to the behavior from 3.4).

> Something like naughty.get_notifications() that returns (a copy?) of that
> notifications table.

Nah, just let people mess with naughty.notifications directly. If they want to
make a mess, let them. ;-)

The patch would be rather simple. Every occurrence of "notifications" would need
to be replaced with "naughty.notifications" and instead of "local notifications
= ..." it would be "naughty.notifications = ...".

Feel free to send this in as a patch.

Cheers,
Ulf :-P
-- 
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?" -- A. P. J.

-- 
To unsubscribe, send mail to [email protected].

Reply via email to