karlheg(a)inetarena.com (Karl M. Hegbloom) writes:
>>>>> "Hrvoje" == Hrvoje Niksic
<hniksic(a)srce.hr> writes:
Hrvoje> It would also be a good idea to implement something a la
Hrvoje> FSFmacs `ring-bell-function', only perhaps as a console
Hrvoje> method...
Neat idea, I think. It would be possible to write a function that
tells the window manager to do something interesting with the frame.
It would be fun with `scwm' or `gwm'. :-)
Yep -- this'd be very easy to do with scwmexec, or better, with X11
Properties.
In the same vein, it would be good to be able to set an arbitrary
window property from lisp, I think, for signalling the window
manager. (I think what I mean is called a property; it's an atom
attached to a window that you can stuff a string in or read a string
from.)
Exactly. In scwm, the X-PropertyNotify-hook can be used to watch for
changes in properties on a given window. If XEmacs set, e.g., a
WM_ATTENTION property on a frame, scwm can notice that and do whatever
it wants (most likely flash the window color, or something similar).
See
http://www.cs.washington.edu/homes/gjb/scwm-doc/c0314.htm
Robert Bihlmeyer has a similar patch for xterms that make the visual
bell set an X11 property. Ideally, if XEmacs' support for X properties
is complete, scwmexec could be rewritten in Emacs lisp, thus avoiding an
exec in scwm-mode (where you can use [X]Emacs to interact with the
scheme interpreter embedded in Scwm).
Greg