Thread View: gnu.epoch.misc
1 messages
1 total messages
Started by kinstrey
Fri, 19 Apr 1991 20:00
HERE IT IS: Double-click capabilities for GNU Emacs and Epoch
Author: kinstrey
Date: Fri, 19 Apr 1991 20:00
Date: Fri, 19 Apr 1991 20:00
35 lines
2305 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads