diff options
| author | Joakim Verona | 2012-11-13 03:01:33 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-11-13 03:01:33 +0100 |
| commit | 74fa27af7f4b50a6f5e2a378802b4c5edc11d044 (patch) | |
| tree | 7030d55ecc2e06df59c08047b6f89e5b11a329dc /src/buffer.c | |
| parent | 2a4942ed0e4cca22145a0d973112454c410c3dd7 (diff) | |
| parent | b95a9c0cba301ef8f1920a1d123ccd6873c14a63 (diff) | |
| download | emacs-74fa27af7f4b50a6f5e2a378802b4c5edc11d044.tar.gz emacs-74fa27af7f4b50a6f5e2a378802b4c5edc11d044.zip | |
upstream
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/buffer.c b/src/buffer.c index bb69675346a..619a729a859 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -3132,8 +3132,8 @@ compare_overlays (const void *v1, const void *v2) | |||
| 3132 | between "equal" overlays. The result can still change between | 3132 | between "equal" overlays. The result can still change between |
| 3133 | invocations of Emacs, but it won't change in the middle of | 3133 | invocations of Emacs, but it won't change in the middle of |
| 3134 | `find_field' (bug#6830). */ | 3134 | `find_field' (bug#6830). */ |
| 3135 | if (XHASH (s1->overlay) != XHASH (s2->overlay)) | 3135 | if (!EQ (s1->overlay, s2->overlay)) |
| 3136 | return XHASH (s1->overlay) < XHASH (s2->overlay) ? -1 : 1; | 3136 | return XLI (s1->overlay) < XLI (s2->overlay) ? -1 : 1; |
| 3137 | return 0; | 3137 | return 0; |
| 3138 | } | 3138 | } |
| 3139 | 3139 | ||
| @@ -5105,11 +5105,6 @@ void | |||
| 5105 | init_buffer_once (void) | 5105 | init_buffer_once (void) |
| 5106 | { | 5106 | { |
| 5107 | int idx; | 5107 | int idx; |
| 5108 | /* If you add, remove, or reorder Lisp_Objects in a struct buffer, make | ||
| 5109 | sure that this is still correct. Otherwise, mark_vectorlike may not | ||
| 5110 | trace all Lisp_Objects in buffer_defaults and buffer_local_symbols. */ | ||
| 5111 | const int pvecsize | ||
| 5112 | = (offsetof (struct buffer, own_text) - header_size) / word_size; | ||
| 5113 | 5108 | ||
| 5114 | memset (buffer_permanent_local_flags, 0, sizeof buffer_permanent_local_flags); | 5109 | memset (buffer_permanent_local_flags, 0, sizeof buffer_permanent_local_flags); |
| 5115 | 5110 | ||
| @@ -5132,8 +5127,8 @@ init_buffer_once (void) | |||
| 5132 | /* This is not strictly necessary, but let's make them initialized. */ | 5127 | /* This is not strictly necessary, but let's make them initialized. */ |
| 5133 | bset_name (&buffer_defaults, build_pure_c_string (" *buffer-defaults*")); | 5128 | bset_name (&buffer_defaults, build_pure_c_string (" *buffer-defaults*")); |
| 5134 | bset_name (&buffer_local_symbols, build_pure_c_string (" *buffer-local-symbols*")); | 5129 | bset_name (&buffer_local_symbols, build_pure_c_string (" *buffer-local-symbols*")); |
| 5135 | XSETPVECTYPESIZE (&buffer_defaults, PVEC_BUFFER, pvecsize); | 5130 | BUFFER_PVEC_INIT (&buffer_defaults); |
| 5136 | XSETPVECTYPESIZE (&buffer_local_symbols, PVEC_BUFFER, pvecsize); | 5131 | BUFFER_PVEC_INIT (&buffer_local_symbols); |
| 5137 | 5132 | ||
| 5138 | /* Set up the default values of various buffer slots. */ | 5133 | /* Set up the default values of various buffer slots. */ |
| 5139 | /* Must do these before making the first buffer! */ | 5134 | /* Must do these before making the first buffer! */ |