aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2004-01-06 22:37:48 +0000
committerKim F. Storm2004-01-06 22:37:48 +0000
commit03c975a4cb9f85c68dbf2fcc313fbca398828d1f (patch)
tree5d309a826fc2bf46aa23edde27f9a8488ced10e5 /src
parenteee5863b686e80bb8b40bb8d3a2affa8d0024e20 (diff)
downloademacs-03c975a4cb9f85c68dbf2fcc313fbca398828d1f.tar.gz
emacs-03c975a4cb9f85c68dbf2fcc313fbca398828d1f.zip
(POSN_POSN, POSN_SET_POSN): Rename macros from
POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed. (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
Diffstat (limited to 'src')
-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;