xwem-devel
[Top] [All Lists]

Re: (message) function, minibuffer and Xwem

From: jeremy@xxxxxxxxxx
Subject: Re: (message) function, minibuffer and Xwem
Date: Wed, 09 Feb 2005 18:28:51 -0500
User-agent: Wanderlust/2.12.0 (Your Wildest Dreams) XEmacs/21.4 (Jumbo Shrimp)
> * jeremy  <jeremy@xxxxxxxxxx> writes:
> 
>   > Is there a way to cause other instances of Xemacs to write to the
>   > global minibuff area.
> 
> No.

I found a way. It may be ugly, but it works just fine. In your .xwemrc
add (gnuserv-start)

Then in any program, not just emacs based, you can call something
like:

gnusclient -batch -eval '(message "Hello, World!")'

and presto! In your XWEM minibuffer you'll see "Hello, World!"

If you have some complex thing that you want an outside program to do,
you could write a function that's in your init.el or xwemrc.el and
then just call it from the outside program. Something as simple as an
IRC program notifying you that your name was mentioned:

(defun irc-incoming (nick msg)
        (play-sound-file "beep.wav")
        (message (format "%s said %s" msg)))

gnusclient -batch -eval '(irc-incoming "JohnDoe" "Whats up dude?")'

Not as nice as being right there in the same instance of xemacs, or
running an xemacs program, but, none the less it is a workable
solution.

Jeremy

<Prev in Thread] Current Thread [Next in Thread>