diff options
| author | Dmitry Antipov | 2012-08-06 14:24:26 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-06 14:24:26 +0400 |
| commit | 077288cf3f654776ee44bc9b56954c4e26b10d96 (patch) | |
| tree | 00bbcb4dab9c879efde73a01786977b1c1364f67 /src/keymap.c | |
| parent | 71688bd7f9169c12ea8be54e084470f19d44ce44 (diff) | |
| download | emacs-077288cf3f654776ee44bc9b56954c4e26b10d96.tar.gz emacs-077288cf3f654776ee44bc9b56954c4e26b10d96.zip | |
Separate read and write access to Lisp_Object slots of struct window.
* window.h (WGET, WSET): New macros similar to AREF and ASET.
* alloc.c, buffer.c, composite.c, dispextern.h, dispnew.c, editfns.c:
* fileio.c, font.c, fontset.c, frame.c, frame.h, fringe.c, indent.c:
* insdel.c, keyboard.c, keymap.c, lisp.h, minibuf.c, msdos.c, nsfns.m:
* nsmenu.m, nsterm.m, print.c, textprop.c, w32fns.c, w32menu.c:
* w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
Adjust users.
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c index bd2f3c99c26..a0a35285131 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1560,8 +1560,8 @@ like in the respective argument of `key-binding'. */) | |||
| 1560 | window = POSN_WINDOW (position); | 1560 | window = POSN_WINDOW (position); |
| 1561 | 1561 | ||
| 1562 | if (WINDOWP (window) | 1562 | if (WINDOWP (window) |
| 1563 | && BUFFERP (WVAR (XWINDOW (window), buffer)) | 1563 | && BUFFERP (WGET (XWINDOW (window), buffer)) |
| 1564 | && XBUFFER (WVAR (XWINDOW (window), buffer)) != current_buffer) | 1564 | && XBUFFER (WGET (XWINDOW (window), buffer)) != current_buffer) |
| 1565 | { | 1565 | { |
| 1566 | /* Arrange to go back to the original buffer once we're done | 1566 | /* Arrange to go back to the original buffer once we're done |
| 1567 | processing the key sequence. We don't use | 1567 | processing the key sequence. We don't use |
| @@ -1573,7 +1573,7 @@ like in the respective argument of `key-binding'. */) | |||
| 1573 | 1573 | ||
| 1574 | record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); | 1574 | record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); |
| 1575 | 1575 | ||
| 1576 | set_buffer_internal (XBUFFER (WVAR (XWINDOW (window), buffer))); | 1576 | set_buffer_internal (XBUFFER (WGET (XWINDOW (window), buffer))); |
| 1577 | } | 1577 | } |
| 1578 | } | 1578 | } |
| 1579 | 1579 | ||