]> git.eshelyaron.com Git - emacs.git/commit
Backport fix for Bug#8219 from trunk.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 19 Mar 2011 16:42:53 +0000 (12:42 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 19 Mar 2011 16:42:53 +0000 (12:42 -0400)
commit20f5695598d3137257e24802479d003ea82eb5f9
treedbd65b250aa1d524b0a0864bfda2e99465a0c9a4
parent576bce32675146e772183647c4750c1f5f9b7de7
Backport fix for Bug#8219 from trunk.

* buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
(BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
These macros can no longer be used for assignment.

* buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
struct members directly, instead of using BUF_BEGV etc.
(record_buffer_markers, fetch_buffer_markers): New functions for
recording and fetching special buffer markers.
(set_buffer_internal_1, set_buffer_temp): Use them.

* lread.c (unreadchar): Use SET_BUF_PT_BOTH.

* insdel.c (adjust_point): Use SET_BUF_PT_BOTH.

* intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
(get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.

* xdisp.c (hscroll_window_tree):
(reconsider_clip_changes): Use PT instead of BUF_PT.
src/ChangeLog
src/buffer.c
src/buffer.h
src/insdel.c
src/intervals.c
src/lread.c
src/xdisp.c