diff options
| author | Dmitry Antipov | 2012-05-02 13:21:54 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-05-02 13:21:54 -0400 |
| commit | 0c16dfed7078493adb0efd587fd3762b4642b712 (patch) | |
| tree | 3913881d673ae6bb1940105a97ba8903d186a39d /src | |
| parent | 3c30e76668068bad00494c16a742cd9a5cb609fe (diff) | |
| download | emacs-0c16dfed7078493adb0efd587fd3762b4642b712.tar.gz emacs-0c16dfed7078493adb0efd587fd3762b4642b712.zip | |
* intervals.c (adjust_intervals_for_insertion): Initialize `newi'
with RESET_INTERVAL.
* buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
Remove duplicated buffer name initialization.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/buffer.c | 2 | ||||
| -rw-r--r-- | src/intervals.c | 1 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d621dcc8859..01e137d2fcc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2012-05-02 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * intervals.c (adjust_intervals_for_insertion): Initialize `newi' | ||
| 4 | with RESET_INTERVAL. | ||
| 5 | |||
| 6 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): | ||
| 7 | Remove duplicated buffer name initialization. | ||
| 8 | |||
| 1 | 2012-05-02 Jim Meyering <jim@meyering.net> | 9 | 2012-05-02 Jim Meyering <jim@meyering.net> |
| 2 | 10 | ||
| 3 | * xterm.c (x_term_init): Use memcpy instead of strncpy (Bug#11373). | 11 | * xterm.c (x_term_init): Use memcpy instead of strncpy (Bug#11373). |
diff --git a/src/buffer.c b/src/buffer.c index 9bac3ec742b..2ddbc699481 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -392,7 +392,6 @@ even if it is dead. The return value is never nil. */) | |||
| 392 | 392 | ||
| 393 | BVAR (b, mark) = Fmake_marker (); | 393 | BVAR (b, mark) = Fmake_marker (); |
| 394 | BUF_MARKERS (b) = NULL; | 394 | BUF_MARKERS (b) = NULL; |
| 395 | BVAR (b, name) = name; | ||
| 396 | 395 | ||
| 397 | /* Put this in the alist of all live buffers. */ | 396 | /* Put this in the alist of all live buffers. */ |
| 398 | XSETBUFFER (buffer, b); | 397 | XSETBUFFER (buffer, b); |
| @@ -612,7 +611,6 @@ CLONE nil means the indirect buffer's state is reset to default values. */) | |||
| 612 | Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil)); | 611 | Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil)); |
| 613 | 612 | ||
| 614 | BVAR (b, mark) = Fmake_marker (); | 613 | BVAR (b, mark) = Fmake_marker (); |
| 615 | BVAR (b, name) = name; | ||
| 616 | 614 | ||
| 617 | /* The multibyte status belongs to the base buffer. */ | 615 | /* The multibyte status belongs to the base buffer. */ |
| 618 | BVAR (b, enable_multibyte_characters) = BVAR (b->base_buffer, enable_multibyte_characters); | 616 | BVAR (b, enable_multibyte_characters) = BVAR (b->base_buffer, enable_multibyte_characters); |
diff --git a/src/intervals.c b/src/intervals.c index 88f47f58b52..a750ccd13f7 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -1000,6 +1000,7 @@ adjust_intervals_for_insertion (INTERVAL tree, | |||
| 1000 | Lisp_Object pleft, pright; | 1000 | Lisp_Object pleft, pright; |
| 1001 | struct interval newi; | 1001 | struct interval newi; |
| 1002 | 1002 | ||
| 1003 | RESET_INTERVAL (&newi); | ||
| 1003 | pleft = NULL_INTERVAL_P (prev) ? Qnil : prev->plist; | 1004 | pleft = NULL_INTERVAL_P (prev) ? Qnil : prev->plist; |
| 1004 | pright = NULL_INTERVAL_P (i) ? Qnil : i->plist; | 1005 | pright = NULL_INTERVAL_P (i) ? Qnil : i->plist; |
| 1005 | newi.plist = merge_properties_sticky (pleft, pright); | 1006 | newi.plist = merge_properties_sticky (pleft, pright); |