[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [STUMP] number of arguments in *destroy-window-hook*
From: |
Shawn Betts |
Subject: |
Re: [STUMP] number of arguments in *destroy-window-hook* |
Date: |
Thu, 27 May 2010 12:41:58 -0700 |
2010/5/27 Luis Octavio Silva <address@hidden>:
> 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