2010/5/27 Luis Octavio Silva <l.o.si...@mail.ru>: > Dear developers, > > I apologize for demanding some of your precious time. I have the > following in my .stumpwmrc file: > > (defun no-windows-group-go () > "Gives number of windows in frame." > (when (= (length (group-windows (current-group))) 0) > (run-commands "gselect 1"))) > (add-hook *destroy-window-hook* 'no-windows-group-go) > > The function seems to work, but it produces the message: > > Error: invalid number of arguments: 1
The hook is called with 1 argument, the window being destroyed. It should work if you do (defun no-windows-group-go (window) (declare (ignore window)) ...) -Shawn _______________________________________________ Stumpwm-devel mailing list Stumpwm-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/stumpwm-devel