xwem-devel
[Top] [All Lists]

Re: (message) function, minibuffer and Xwem

From: Steve Youngs <steve@xxxxxxxx>
Subject: Re: (message) function, minibuffer and Xwem
Date: Thu, 10 Feb 2005 10:21:10 +1000
Organization: The XWEM Project
User-agent: Gnus/5.110003 (No Gnus v0.3) SXEmacs/22.1.2 (Audi, linux)
* jeremy  <jeremy@xxxxxxxxxx> writes:

  >> * 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. 

Actually, no you haven't.

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

No, this is not ugly, and in fact is a very good idea for _any_ XWEM
user to do... being able to log into another console and into
gnuclient is sometimes handy when you get stuck in XWEM.

  > 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!"

Do you know why?  Read on, if not. :-)

  > 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?")'

That's actually kinda cool.  I may even use it with BitchX.

  > Not as nice as being right there in the same instance of xemacs

lol!  Jeremy, you're gonna love this because, this is _exactly_ what
you are doing.  You are right there in the same instance of
(S)XEmacs. :-)

But Jeremy, full credit to you, man.  This is a very nice way of
solving the problem you had.  Well done!! :-)

-- 
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
|                        In space,                         |
|             No one can hear you rip a stinky             |
|---------------------------------------<steve@xxxxxxxx>---|

Attachment: pgpsQt33a88os.pgp
Description: PGP signature

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