🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #2084

HERE IT IS: Double-click capabilities for GNU Emacs and Epoch

#2084
From: kinstrey
Date: Fri, 19 Apr 1991 20:00
35 lines
2305 bytes
Several people have posted requests for double-click capabilities
in GNU Emacs and Epoch, and since I had written a library to do this
last year, I decided to post it. The code is posted in messages following
this one.

The code works with Epoch 3.2, and GNU "XEmacs" 18.55.

Here's a summary of what's available:
   A "double-click" handler determines whether 2 clicks within 1 second
of each other, at the same point location in a buffer, have occurred.
Functions can be assigned to the double-click map, as well as "before"
and "after" mouse-click hooks. For Epoch, the functions can be executed
on mouse-down or mouse-up.
   I tried to make everything user-configurable.
   There are 2 .el files:
      1) mouse-double-click-functions.el :  contains the function definitions
					    and support variable declarations.
      2) mouse-double-click.el : this is the front-end for the .el above.
				 To use double-clicks, do a
				 (load-library "mouse-double-click"). 
				 The variables are all
buffer-local-variables, so you
				 can control which buffers are double-click
				 capable. In addition, you can disable the 
	                         double-click at any time by turning off the
                                 double-clicks-allowed flag.
  This was initially developed to duplicate the Macintosh MORE II outliner.
A double-click on a section of text caused the outline body to "hide". 
Outline-mode functions in Emacs were tied to the double-click handler,
and off I went.

  Any questions, comments, etc. can be sent to:
	kinstrey@wsqtba.crd.ge.com
	kinstrey@crd.ge.com
Technical Details
Message-ID: <9104192000.AA00955@wsqtba..steinmetz>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!swrinde!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,27232aebd8e66bc9,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1991-04-19 18:44:33 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbage
From: kinstrey@wsqtba.crd.ge.com
Newsgroups: gnu.epoch.misc
Subject: HERE IT IS: Double-click capabilities for GNU Emacs and Epoch
Message-ID: <9104192000.AA00955@wsqtba..steinmetz>
Date: 19 Apr 91 20:00:47 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 35