mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 11:50:51 -08:00
(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.
This commit is contained in:
parent
eee5863b68
commit
03c975a4cb
1 changed files with 9 additions and 5 deletions
|
|
@ -254,17 +254,21 @@ extern Lisp_Object item_properties;
|
|||
|
||||
/* Extract the fields of a position. */
|
||||
#define POSN_WINDOW(posn) (XCAR (posn))
|
||||
#define POSN_BUFFER_POSN(posn) (XCAR (XCDR (posn)))
|
||||
#define POSN_BUFFER_SET_POSN(posn,x) (XSETCAR (XCDR (posn), (x)))
|
||||
#define POSN_POSN(posn) (XCAR (XCDR (posn)))
|
||||
#define POSN_SET_POSN(posn,x) (XSETCAR (XCDR (posn), (x)))
|
||||
#define POSN_WINDOW_POSN(posn) (XCAR (XCDR (XCDR (posn))))
|
||||
#define POSN_TIMESTAMP(posn) \
|
||||
(XCAR (XCDR (XCDR (XCDR (posn)))))
|
||||
#define POSN_TIMESTAMP(posn) (XCAR (XCDR (XCDR (XCDR (posn)))))
|
||||
#define POSN_SCROLLBAR_PART(posn) (Fnth (make_number (4), (posn)))
|
||||
|
||||
/* A cons (STRING . STRING-CHARPOS), or nil in mouse-click events.
|
||||
It's a cons if the click is over a string in the mode line. */
|
||||
|
||||
#define POSN_STRING(POSN) Fnth (make_number (4), (POSN))
|
||||
#define POSN_STRING(posn) (Fnth (make_number (4), (posn)))
|
||||
|
||||
/* If POSN_STRING is nil, event refers to buffer location. */
|
||||
|
||||
#define POSN_INBUFFER_P(posn) (NILP (POSN_STRING (posn)))
|
||||
#define POSN_BUFFER_POSN(posn) (Fnth (make_number (5), (posn)))
|
||||
|
||||
/* Some of the event heads. */
|
||||
extern Lisp_Object Qswitch_frame;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue