🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #2083

pop_up_menus.el

#2083
From: kinstrey
Date: Fri, 19 Apr 1991 20:03
39 lines
2118 bytes
;;; Copyright (C) 1990  General Electric Company.
;;; Written by Michael A. Kinstrey, for the
;;; DICE (DARPA Initiative in Concurrent Engineering) project.
;;;
;;; This file is for use with Epoch, a modified version of GNU Emacs.
;;; Requires Epoch 3.2 or later. 
;;;
;;; This code is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY. No author or distributor accepts
;;; responsibility to anyone for the consequences of using this code
;;; or for whether it serves any particular purpose or works at all,
;;; unless explicitly stated in a written agreement. Refer to the
;;; GNU Emacs General Public License for full details.
;;;
;;; Everyone is granted permission to copy, modify and redistribute
;;; this code, but only under the conditions described in the
;;; GNU Emacs General Public License.
;;; Among other things, the copyright notice and this notice 
;;; must be preserved on all copies.

;; This file contains functions and variables for
;; pop-up menu support. Pop-up menus remain
;; displayed until a choice is selected.
;; 
;; For pop-ups, not much extra code is needed to display menus
;; and execute related functions.

(require 'menus)

(make-local-variable 'menu-type)
(setq menu-type 'pop-up)

(setq mouse-down-menu-function 'nop) 
(setq mouse-up-menu-function   'do-button-callback) 

(defun pop-up-menu-help ()
  "Describe available functions in buffer '*Pop-Up-Menu-help*'."
  (interactive)
  (menu-help))
Technical Details
Message-ID: <9104192003.AA00991@wsqtba..steinmetz>
Path: arc1-ca.pugleaf.net!gmdzi!unido!unidui!math.fu-berlin.de!fauern!ira.uka.de!sol.ctr.columbia.edu!samsung!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,6f6cbc6e4f3f2940,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1991-04-19 17:38:04 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!unidui!math.fu-berlin.de!fauern!ira.uka.de!sol.ctr.columbia.edu!samsung!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbage
From: kinstrey@wsqtba.crd.ge.com
Newsgroups: gnu.epoch.misc
Subject: pop_up_menus.el
Message-ID: <9104192003.AA00991@wsqtba..steinmetz>
Date: 19 Apr 91 20:03:35 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 39