Pushed an updated version to: http://git.mercenariesguild.net/?p=awesome.git;a=shortlog;h=refs/heads/awful-doc
There's incremental commits that will eventually be squashed. On Wed, Sep 2, 2009 at 09:33, Julien Danjou<jul...@danjou.info> wrote: > At 1251821489 time_t, koniu wrote: >> this shortcut. I could try hack up duplicate detection tho. > Would be cleaner IMHO. Done. I think that perhaps the new function awful.help.compare_kb() could replace awful.key.match() altho then I'd have to add analogous function to awful.button. Gonna look into it. >> My initial plan was to clearly split help generation into "frontend" >> and "backend" > - just implement a callback system where you give a function to > awful.doc that will be called with text to be printed as argument. That's what I was thinking. Question is, where ought the default callback function(s) be defined. As discussed on IRC I hacked lua-doc-generate to include the fake C api docs and had some problems: /usr/share/awesome/lib/awful/doc/awesome.lua:311: bad argument #2 to '?' (number expected, got string) 311: if env.screen then set(env.screen.emit_signal, ... /usr/share/awesome/lib/awful/doc/awesome.lua:321: attempt to index field '?' (a function value) 321: if env.selection then set(env.selection.selection, ... I've added exceptions to skip these for now so that it doesn't get in my way, I'm yet to come up with a solution. Another small issue - awful.help.get(widget) doesn't get descriptions for 'buttons' and 'extents': http://omploader.org/vMjlvYg. That's it for now. kk -- To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.