Commit cc648cef authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(Fget_buffer_create, Fmake_indirect_buffer): Don't cast redundantly.

parent 21ec2c43
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
......
......@@ -348,7 +348,7 @@ The value is never nil. */)
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;
......@@ -549,7 +549,7 @@ CLONE nil means the indirect buffer's state is reset to default values. */)
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment