diff options
| author | Miles Bader | 2007-10-15 05:03:21 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-10-15 05:03:21 +0000 |
| commit | 63655c83146b773b4ef3d9220b4a9d61545fd050 (patch) | |
| tree | 2161d262bba2c99b0db2ed8b322eddcafeadd247 /src/buffer.c | |
| parent | ce8f7ca45fabe11ce32a9ced2b8e7c1987c0d997 (diff) | |
| parent | b2529d56b5126319a1659dc1530d6fc102cc21d6 (diff) | |
| download | emacs-63655c83146b773b4ef3d9220b4a9d61545fd050.tar.gz emacs-63655c83146b773b4ef3d9220b4a9d61545fd050.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 887-889)
- Update from CVS
- Merge from emacs--rel--22
* emacs--rel--22 (patch 116-121)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-268
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/buffer.c b/src/buffer.c index 237c549df8b..d5f9541301d 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -569,6 +569,7 @@ CLONE nil means the indirect buffer's state is reset to default values. */) | |||
| 569 | 569 | ||
| 570 | b = (struct buffer *) allocate_buffer (); | 570 | b = (struct buffer *) allocate_buffer (); |
| 571 | b->size = sizeof (struct buffer) / sizeof (EMACS_INT); | 571 | b->size = sizeof (struct buffer) / sizeof (EMACS_INT); |
| 572 | XSETPVECTYPE (b, PVEC_BUFFER); | ||
| 572 | 573 | ||
| 573 | if (XBUFFER (base_buffer)->base_buffer) | 574 | if (XBUFFER (base_buffer)->base_buffer) |
| 574 | b->base_buffer = XBUFFER (base_buffer)->base_buffer; | 575 | b->base_buffer = XBUFFER (base_buffer)->base_buffer; |
| @@ -4233,15 +4234,8 @@ add_overlay_mod_hooklist (functionlist, overlay) | |||
| 4233 | int oldsize = XVECTOR (last_overlay_modification_hooks)->size; | 4234 | int oldsize = XVECTOR (last_overlay_modification_hooks)->size; |
| 4234 | 4235 | ||
| 4235 | if (last_overlay_modification_hooks_used == oldsize) | 4236 | if (last_overlay_modification_hooks_used == oldsize) |
| 4236 | { | 4237 | last_overlay_modification_hooks = larger_vector |
| 4237 | Lisp_Object old; | 4238 | (last_overlay_modification_hooks, oldsize * 2, Qnil); |
| 4238 | old = last_overlay_modification_hooks; | ||
| 4239 | last_overlay_modification_hooks | ||
| 4240 | = Fmake_vector (make_number (oldsize * 2), Qnil); | ||
| 4241 | bcopy (XVECTOR (old)->contents, | ||
| 4242 | XVECTOR (last_overlay_modification_hooks)->contents, | ||
| 4243 | sizeof (Lisp_Object) * oldsize); | ||
| 4244 | } | ||
| 4245 | AREF (last_overlay_modification_hooks, last_overlay_modification_hooks_used++) = functionlist; | 4239 | AREF (last_overlay_modification_hooks, last_overlay_modification_hooks_used++) = functionlist; |
| 4246 | AREF (last_overlay_modification_hooks, last_overlay_modification_hooks_used++) = overlay; | 4240 | AREF (last_overlay_modification_hooks, last_overlay_modification_hooks_used++) = overlay; |
| 4247 | } | 4241 | } |