[comp.emacs] Can I do pop-up menus in gnumacs?

mgh@intelob.intel.com (Mike Heavin) (03/10/89)

I used to use the Unipress Emacs editor (bite my tongue).  One of the features
I liked was the ability to create pop-up menus from which I could select an
item that was, in turn, mapped to some emacs command.  I can't seem to find
anything like that in gnumacs?

Any suggestions?

----------------******************---------------------
Mike Heavin

These ramblings do not necessarily reflect the views of my employer, my spouse,
my friends, or any other sentient being.  They are mine alone; I am my own
worst enemy.
----------------******************---------------------

barnett@crdgw1.crd.ge.com (Bruce Barnett) (03/14/89)

In article <MGH.89Mar10080939@intelob.intel.com>, mgh@intelob (Mike Heavin) writes:
>
>I liked was the ability to create pop-up menus from which I could select an
>item that was, in turn, mapped to some emacs command.  I can't seem to find
>anything like that in gnumacs?
>
>Any suggestions?

yes. Tell us which window system you are using.
I do in in SunView and NeWS. I assume X supports it also?

--
	Bruce G. Barnett 	barnett@ge-crd.ARPA, barnett@steinmetz.ge.com
				uunet!steinmetz!barnett

roberts@studguppy.lanl.gov (Doug &) (03/17/89)

In article <MGH.89Mar10080939@intelob.intel.com> mgh@intelob.intel.com (Mike Heavin) writes:

   Path: lanl!hc!lll-winken!lll-lcc!ames!oliveb!intelca!mipos3!omepd!mgh
   From: mgh@intelob.intel.com (Mike Heavin)
   Newsgroups: comp.emacs
   Date: 10 Mar 89 13:09:39 GMT
   Sender: news@omepd.UUCP
   Distribution: comp
   Organization: BiiN Information Systems, Hillsboro, Oregon
   Lines: 15


   I used to use the Unipress Emacs editor (bite my tongue).  One of the features
   I liked was the ability to create pop-up menus from which I could select an
   item that was, in turn, mapped to some emacs command.  I can't seem to find
   anything like that in gnumacs?

   Any suggestions?

   ----------------******************---------------------
   Mike Heavin

   These ramblings do not necessarily reflect the views of my employer, my spouse,
   my friends, or any other sentient being.  They are mine alone; I am my own
   worst enemy.
   ----------------******************---------------------


It's easy. I'll include a menu definition file that I wrote/modified.

  (defmenu ispell-menu
    ("Ispell Word" ispell-word)
    ("Ispell Buffer" ispell-buffer))

  (defmenu emacs-menu
    ("Emacs Menu")
    ("Stuff Selection" sun-yank-selection)
    ("Buffer Menu" buffer-menu nil)
    ("Rmail" rmail)
;;    ("Buffer Menu" electric-buffer-list nil)
    ("Ispell" . ispell-menu)
    ("Expand" . expand-menu)
    ("Delete Window" . delete-window-menu)
    ("Previous Buffer" mouse-select-previous-buffer *menu-window*)
    ("Save Buffers" save-some-buffers)
    ("List Directory" list-directory nil)
    ("Dired" dired nil)
    ("Mouse Help" . mouse-help-menu)
    ("Quit" . emacs-quit-menu))


--

===============================================================
Douglas Roberts
Los Alamos National Laboratory
Box 1663, MS F-602
Los Alamos, New Mexico 87545
(505)667-4569
dzzr@lanl.gov
===============================================================