aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/keyboard.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/keyboard.h b/src/keyboard.h
index 6a8e08d41f3..a2121540e49 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -254,17 +254,21 @@ extern Lisp_Object item_properties;
254 254
255/* Extract the fields of a position. */ 255/* Extract the fields of a position. */
256#define POSN_WINDOW(posn) (XCAR (posn)) 256#define POSN_WINDOW(posn) (XCAR (posn))
257#define POSN_BUFFER_POSN(posn) (XCAR (XCDR (posn))) 257#define POSN_POSN(posn) (XCAR (XCDR (posn)))
258#define POSN_BUFFER_SET_POSN(posn,x) (XSETCAR (XCDR (posn), (x))) 258#define POSN_SET_POSN(posn,x) (XSETCAR (XCDR (posn), (x)))
259#define POSN_WINDOW_POSN(posn) (XCAR (XCDR (XCDR (posn)))) 259#define POSN_WINDOW_POSN(posn) (XCAR (XCDR (XCDR (posn))))
260#define POSN_TIMESTAMP(posn) \ 260#define POSN_TIMESTAMP(posn) (XCAR (XCDR (XCDR (XCDR (posn)))))
261 (XCAR (XCDR (XCDR (XCDR (posn)))))
262#define POSN_SCROLLBAR_PART(posn) (Fnth (make_number (4), (posn))) 261#define POSN_SCROLLBAR_PART(posn) (Fnth (make_number (4), (posn)))
263 262
264/* A cons (STRING . STRING-CHARPOS), or nil in mouse-click events. 263/* A cons (STRING . STRING-CHARPOS), or nil in mouse-click events.
265 It's a cons if the click is over a string in the mode line. */ 264 It's a cons if the click is over a string in the mode line. */
266 265
267#define POSN_STRING(POSN) Fnth (make_number (4), (POSN)) 266#define POSN_STRING(posn) (Fnth (make_number (4), (posn)))
267
268/* If POSN_STRING is nil, event refers to buffer location. */
269
270#define POSN_INBUFFER_P(posn) (NILP (POSN_STRING (posn)))
271#define POSN_BUFFER_POSN(posn) (Fnth (make_number (5), (posn)))
268 272
269/* Some of the event heads. */ 273/* Some of the event heads. */
270extern Lisp_Object Qswitch_frame; 274extern Lisp_Object Qswitch_frame;