diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-03-08 08:09:54 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-03-08 08:09:54 +0000 |
commit | 9a408b1d638f8cdaf4639c02b82b2057cb5fe999 (patch) | |
tree | f76bf64bce1b58a55e3601f4089a4b2c27b23945 /lisp/mouse.el | |
parent | c0f864088b8ef3473a3ba5f6dee30712bd0aa1d5 (diff) | |
download | emacs-9a408b1d638f8cdaf4639c02b82b2057cb5fe999.tar.gz |
(posn-timestamp, posn-col-row, posn-point, posn-window):
(event-end, event-start, mouse-movement-p): Moved to subr.el.
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r-- | lisp/mouse.el | 54 |
1 files changed, 1 insertions, 53 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 6285624f03a..17083fc1d8f 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -1,6 +1,6 @@ ;;; mouse.el --- window system-independent mouse support. -;;; Copyright (C) 1988, 1992, 1993 Free Software Foundation, Inc. +;;; Copyright (C) 1993 Free Software Foundation, Inc. ;; Maintainer: FSF ;; Keywords: hardware @@ -21,60 +21,8 @@ ;;; along with GNU Emacs; see the file COPYING. If not, write to ;;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. - ;;; Utility functions. -(defsubst mouse-movement-p (object) - "Return non-nil if OBJECT is a mouse movement event." - (and (consp object) - (eq (car object) 'mouse-movement))) - -(defsubst event-start (event) - "Return the starting position of EVENT. -If EVENT is a mouse press or a mouse click, this returns the location -of the event. -If EVENT is a drag, this returns the drag's starting position. -The return value is of the form - (WINDOW BUFFER-POSITION (COL . ROW) TIMESTAMP) -The `posn-' functions access elements of such lists." - (nth 1 event)) - -(defsubst event-end (event) - "Return the ending location of EVENT. EVENT should be a click or drag event. -If EVENT is a click event, this function is the same as `event-start'. -The return value is of the form - (WINDOW BUFFER-POSITION (COL . ROW) TIMESTAMP) -The `posn-' functions access elements of such lists." - (nth (1- (length event)) event)) - -(defsubst posn-window (position) - "Return the window in POSITION. -POSITION should be a list of the form - (WINDOW BUFFER-POSITION (COL . ROW) TIMESTAMP) -as returned by the `event-start' and `event-end' functions." - (nth 0 position)) - -(defsubst posn-point (position) - "Return the buffer location in POSITION. -POSITION should be a list of the form - (WINDOW BUFFER-POSITION (COL . ROW) TIMESTAMP) -as returned by the `event-start' and `event-end' functions." - (nth 1 position)) - -(defsubst posn-col-row (position) - "Return the row and column in POSITION. -POSITION should be a list of the form - (WINDOW BUFFER-POSITION (COL . ROW) TIMESTAMP) -as returned by the `event-start' and `event-end' functions." - (nth 2 position)) - -(defsubst posn-timestamp (position) - "Return the timestamp of POSITION. -POSITION should be a list of the form - (WINDOW BUFFER-POSITION (COL . ROW) TIMESTAMP) -nas returned by the `event-start' and `event-end' functions." - (nth 3 position)) - ;;; Indent track-mouse like progn. (put 'track-mouse 'lisp-indent-function 0) |