stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[STUMP] number of arguments in *destroy-window-hook*


From: Luis Octavio Silva
Subject: [STUMP] number of arguments in *destroy-window-hook*
Date: Thu, 27 May 2010 22:22:52 +0400

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

whenever a window is destroyed. What is wrong with my code?
I'm using 0.9.6 git compiled on 2009/07/17.

Thank you very much in advance for any comment.
Luis O. Silva

-- 
Luis Octavio Silva Pereyra.
IIMAS-UNAM
Depto. de Métodos Matemáticos y Numéricos
Apdo. postal 20-726
01000 México, D.F.
WEB: http://leibniz.iimas.unam.mx/~silva/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]