aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-02-22 14:22:37 +0000
committerJim Blandy1993-02-22 14:22:37 +0000
commit5fcd022dabb2b0a22f559b52855ab434bf81c2a3 (patch)
tree05219fe92ae1d43be8b11408444869de80c1a882 /src
parent1a4f1e2c64593b8700f58cb376d2f3dd54f4f0d0 (diff)
downloademacs-5fcd022dabb2b0a22f559b52855ab434bf81c2a3.tar.gz
emacs-5fcd022dabb2b0a22f559b52855ab434bf81c2a3.zip
* buffer.c (Fswitch_to_buffer): Pass the correct number of
arguments to Fnext_window. * buffer.c (Fbury_buffer): Pass the correct number of arguments to Fother_buffer. * buffer.c (buffer_slot_type_mismatch): Make symbol_name an unsigned char *, to match the type of a string's data.
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 3499ba29028..f996015c459 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -814,7 +814,8 @@ the window-buffer correspondences.")
814 record_buffer (buf); 814 record_buffer (buf);
815 815
816 Fset_window_buffer (EQ (selected_window, minibuf_window) 816 Fset_window_buffer (EQ (selected_window, minibuf_window)
817 ? Fnext_window (minibuf_window, Qnil) : selected_window, 817 ? Fnext_window (minibuf_window, Qnil, Qnil)
818 : selected_window,
818 buf); 819 buf);
819 820
820 return Qnil; 821 return Qnil;
@@ -946,7 +947,7 @@ selected window if it is displayed there.")
946 XSET (buf, Lisp_Buffer, current_buffer); 947 XSET (buf, Lisp_Buffer, current_buffer);
947 948
948 /* If we're burying the current buffer, unshow it. */ 949 /* If we're burying the current buffer, unshow it. */
949 Fswitch_to_buffer (Fother_buffer (buf), Qnil); 950 Fswitch_to_buffer (Fother_buffer (buf, Qnil), Qnil);
950 } 951 }
951 else 952 else
952 { 953 {
@@ -1247,7 +1248,7 @@ buffer_slot_type_mismatch (valcontents, newval)
1247 Lisp_Object valcontents, newval; 1248 Lisp_Object valcontents, newval;
1248{ 1249{
1249 unsigned int offset = XUINT (valcontents); 1250 unsigned int offset = XUINT (valcontents);
1250 char *symbol_name = 1251 unsigned char *symbol_name =
1251 (XSYMBOL (*(Lisp_Object *)(offset + (char *)&buffer_local_symbols)) 1252 (XSYMBOL (*(Lisp_Object *)(offset + (char *)&buffer_local_symbols))
1252 ->name->data); 1253 ->name->data);
1253 char *type_name; 1254 char *type_name;
@@ -1259,7 +1260,7 @@ buffer_slot_type_mismatch (valcontents, newval)
1259 case Lisp_Marker: type_name = "markers"; break; 1260 case Lisp_Marker: type_name = "markers"; break;
1260 case Lisp_Symbol: type_name = "symbols"; break; 1261 case Lisp_Symbol: type_name = "symbols"; break;
1261 case Lisp_Cons: type_name = "lists"; break; 1262 case Lisp_Cons: type_name = "lists"; break;
1262 case Lisp_Vector: type_name = "vector"; break; 1263 case Lisp_Vector: type_name = "vectors"; break;
1263 default: 1264 default:
1264 abort (); 1265 abort ();
1265 } 1266 }
@@ -1624,7 +1625,7 @@ Each window can have its own, overriding display table.");
1624 DEFVAR_PER_BUFFER ("buffer-field-list", &current_buffer->fieldlist, Qnil, 1625 DEFVAR_PER_BUFFER ("buffer-field-list", &current_buffer->fieldlist, Qnil,
1625 "List of fields in the current buffer. See `add-field'."); 1626 "List of fields in the current buffer. See `add-field'.");
1626 1627
1627 DEFVAR_BOOL ("check-protected-fields", check_protected_fields, 1628 DEFVAR_BOOL ("check-protected-fields", &check_protected_fields,
1628 "Non-nil means don't allow modification of a protected field.\n\ 1629 "Non-nil means don't allow modification of a protected field.\n\
1629See `add-field'."); 1630See `add-field'.");
1630 check_protected_fields = 0; 1631 check_protected_fields = 0;