diff options
| author | Stefan Monnier | 2022-09-25 22:24:35 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2022-09-25 22:24:35 -0400 |
| commit | 1a77f09f3ceaafa81cd400fc825f16b194b627b1 (patch) | |
| tree | 36e4f9c6a0f72a18f0ec558723aee49512c92fd6 | |
| parent | 650c20f1ca4e07591a727e1cfcc74b3363d15985 (diff) | |
| download | emacs-scratch/noverlay-wip.tar.gz emacs-scratch/noverlay-wip.zip | |
* src/buffer.c (overlays_in): Fix confusion Z-vs-ZVscratch/noverlay-wip
This fixes test failures in `test-overlays-in-2` and `test-remove-overlays`.
| -rw-r--r-- | src/buffer.c | 4 | ||||
| -rw-r--r-- | src/pdumper.c | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c index 1bb2af98e75..2b1997fc8be 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2933,7 +2933,7 @@ overlays_in (ptrdiff_t beg, ptrdiff_t end, bool extend, | |||
| 2933 | 2933 | ||
| 2934 | buffer_overlay_iter_start (current_buffer, beg, | 2934 | buffer_overlay_iter_start (current_buffer, beg, |
| 2935 | /* Find empty OV at Z ? */ | 2935 | /* Find empty OV at Z ? */ |
| 2936 | (end >= Z && empty) ? Z + 1 : ZV, | 2936 | (end >= ZV && empty) ? ZV + 1 : ZV, |
| 2937 | ITREE_ASCENDING); | 2937 | ITREE_ASCENDING); |
| 2938 | 2938 | ||
| 2939 | while ((node = buffer_overlay_iter_next (current_buffer))) | 2939 | while ((node = buffer_overlay_iter_next (current_buffer))) |
| @@ -2946,7 +2946,7 @@ overlays_in (ptrdiff_t beg, ptrdiff_t end, bool extend, | |||
| 2946 | else if (node->begin == end) | 2946 | else if (node->begin == end) |
| 2947 | { | 2947 | { |
| 2948 | next = node->begin; | 2948 | next = node->begin; |
| 2949 | if ((! empty || end < Z) && beg < end) | 2949 | if ((! empty || end < ZV) && beg < end) |
| 2950 | break; | 2950 | break; |
| 2951 | } | 2951 | } |
| 2952 | 2952 | ||
diff --git a/src/pdumper.c b/src/pdumper.c index 7618f5d1e87..7053c2d74f2 100644 --- a/src/pdumper.c +++ b/src/pdumper.c | |||
| @@ -2871,9 +2871,6 @@ dump_buffer (struct dump_context *ctx, const struct buffer *in_buffer) | |||
| 2871 | else | 2871 | else |
| 2872 | out->overlays = NULL; | 2872 | out->overlays = NULL; |
| 2873 | 2873 | ||
| 2874 | /* dump_field_lv_rawptr (ctx, out, buffer, &buffer->overlays, | ||
| 2875 | ?Lisp_Vectorlike?, WEIGHT_NORMAL); */ | ||
| 2876 | |||
| 2877 | dump_field_lv (ctx, out, buffer, &buffer->undo_list_, | 2874 | dump_field_lv (ctx, out, buffer, &buffer->undo_list_, |
| 2878 | WEIGHT_STRONG); | 2875 | WEIGHT_STRONG); |
| 2879 | dump_off offset = finish_dump_pvec (ctx, &out->header); | 2876 | dump_off offset = finish_dump_pvec (ctx, &out->header); |