(Fget_buffer_create, Fmake_indirect_buffer): Don't cast redundantly.
This commit is contained in:
parent
21ec2c4365
commit
cc648cef36
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue