Mercurial > emacs
diff src/keyboard.h @ 39973:579177964efa
Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
author | Ken Raeburn <raeburn@raeburn.org> |
---|---|
date | Tue, 16 Oct 2001 09:09:51 +0000 |
parents | 1af81820a584 |
children | 7e221442bb45 |
line wrap: on
line diff
--- a/src/keyboard.h Mon Oct 15 20:52:59 2001 +0000 +++ b/src/keyboard.h Tue Oct 16 09:09:51 2001 +0000 @@ -260,6 +260,7 @@ /* 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_WINDOW_POSN(posn) (XCAR (XCDR (XCDR (posn)))) #define POSN_TIMESTAMP(posn) \ (XCAR (XCDR (XCDR (XCDR (posn)))))