Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!bloom-beacon!think!rlk
From: rlk@think.UUCP
Newsgroups: comp.emacs
Subject: Re: X windows support
Message-ID: <12995@think.UUCP>
Date: Sat, 5-Dec-87 15:47:32 EST
Article-I.D.: think.12995
Posted: Sat Dec  5 15:47:32 1987
Date-Received: Thu, 10-Dec-87 03:34:52 EST
Sender: usenet@think.UUCP
Reply-To: rlk@THINK.COM
Organization: Thinking Machines Corporation, Cambridge, MA
Lines: 47

In article <2545@calmasd.GE.COM> dko@calmasd.GE.COM (Dan O'Neill) writes:
]These questions pertain to GNU Emacs 18.49 running with X-windows
]version 10.4.  The machine is a sun 3/50 and I have compiled emacs
]with HAVE_X_WINDOWS and HAVE_X_MENU defined.

First of all, just in case anyone is confused, HAVE_X_MENU has nothing
to do with x-menu.el.  HAVE_X_MENU enables use of the XMenu package;
old versions have various problems that cause core dumps.  x-menu.el
allows use of emacs buffers with mouse sensitivity.

]1) How does one initalize and use the mouse menus defined for
]   emacs in the lisp files x-menu.el.  I have loaded these
]   libraries and found that the function "x-menu-mode" is not
]   executable via M-X.  How is one supposed to initiate these
]   mouse operations under X 10.4 and how do you use it?  If this
]   is documented somewhere in the gnu distribution, please let me
]   know.

Since I wrote it...first you have to do an x-menu-create-menu.  This
returns a menu object, which you have to use in all future calls.
Currently it happens to be a buffer, but in the future it might be a
structure with some other information.  I don't recall if it takes a
name or not.

Each menu has an associated buffer.  This defaults to the current
buffer when x-menu-create-menu is evaluated.  It's used as the current
buffer when anything needs to be evaluated.  This buffer can be
changed by x-menu-change-associated-buffer.

X-menu-add-item adds an item to a menu.  You supply the menu, the item
name, and a return value.  The return value can be a Lisp form, as I
recall.  x-menu-delete-item deletes an item from a menu.

The function x-menu-activate must be called on a menu when you want to
use it.  This actually positions the items in the buffer and pops up
the buffer.

Do (apropos "x-menu") for details...

]3) Is it possible to compile an image of emacs that will support
]   both the sun-window interface and the x-window interface?

Yes, or if it isn't, no one's told us...

harvard >>>>>>  |
bloom-beacon >  |think!rlk	Robert Krawitz 
ihnp4 >>>>>>>>  .