Mercurial > emacs
comparison src/buffer.c @ 86561:13041217da4b
(Fget_buffer_create, Fmake_indirect_buffer): Don't cast redundantly.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 28 Nov 2007 04:46:22 +0000 |
parents | 59344cb482f3 |
children | 7d40f609f780 53108e6cea98 |
comparison
equal
deleted
inserted
replaced
86560:e08a75d0a31e | 86561:13041217da4b |
---|---|
346 return buf; | 346 return buf; |
347 | 347 |
348 if (SCHARS (name) == 0) | 348 if (SCHARS (name) == 0) |
349 error ("Empty string for buffer name is not allowed"); | 349 error ("Empty string for buffer name is not allowed"); |
350 | 350 |
351 b = (struct buffer *) allocate_buffer (); | 351 b = allocate_buffer (); |
352 | 352 |
353 /* An ordinary buffer uses its own struct buffer_text. */ | 353 /* An ordinary buffer uses its own struct buffer_text. */ |
354 b->text = &b->own_text; | 354 b->text = &b->own_text; |
355 b->base_buffer = 0; | 355 b->base_buffer = 0; |
356 | 356 |
547 error ("Base buffer has been killed"); | 547 error ("Base buffer has been killed"); |
548 | 548 |
549 if (SCHARS (name) == 0) | 549 if (SCHARS (name) == 0) |
550 error ("Empty string for buffer name is not allowed"); | 550 error ("Empty string for buffer name is not allowed"); |
551 | 551 |
552 b = (struct buffer *) allocate_buffer (); | 552 b = allocate_buffer (); |
553 | 553 |
554 b->base_buffer = (XBUFFER (base_buffer)->base_buffer | 554 b->base_buffer = (XBUFFER (base_buffer)->base_buffer |
555 ? XBUFFER (base_buffer)->base_buffer | 555 ? XBUFFER (base_buffer)->base_buffer |
556 : XBUFFER (base_buffer)); | 556 : XBUFFER (base_buffer)); |
557 | 557 |