2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
+ * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
+ Don't cast redundantly.
+
* keyboard.c (KEY_TO_CHAR): New macro.
(parse_modifiers, apply_modifiers): Accept integer arguments.
(read_key_sequence): Use them to unify the "shift->unshift" mapping
if (SCHARS (name) == 0)
error ("Empty string for buffer name is not allowed");
- b = (struct buffer *) allocate_buffer ();
+ b = allocate_buffer ();
/* An ordinary buffer uses its own struct buffer_text. */
b->text = &b->own_text;
if (SCHARS (name) == 0)
error ("Empty string for buffer name is not allowed");
- b = (struct buffer *) allocate_buffer ();
+ b = allocate_buffer ();
b->base_buffer = (XBUFFER (base_buffer)->base_buffer
? XBUFFER (base_buffer)->base_buffer