aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmds.c
diff options
context:
space:
mode:
authorStefan Monnier2010-12-10 19:13:08 -0500
committerStefan Monnier2010-12-10 19:13:08 -0500
commit2c302df3a13236bfbf8ea1b771d13618fcda8d71 (patch)
treef26dc9f22861dc37610de319d05255de058c221b /src/cmds.c
parent0c747cb143fa227e78f350ac353d703f489209df (diff)
parent175069efeb080517afefdd44a06f7a779ea8c25c (diff)
downloademacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.tar.gz
emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.zip
Merge from trunk
Diffstat (limited to 'src/cmds.c')
-rw-r--r--src/cmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmds.c b/src/cmds.c
index e12d7c370d9..b2f454199f5 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -230,7 +230,7 @@ Optional second arg KILLFLAG non-nil means kill instead (save in kill ring).
230Interactively, N is the prefix arg, and KILLFLAG is set if 230Interactively, N is the prefix arg, and KILLFLAG is set if
231N was explicitly specified. 231N was explicitly specified.
232 232
233The command `delete-forward' is preferable for interactive use. */) 233The command `delete-forward-char' is preferable for interactive use. */)
234 (Lisp_Object n, Lisp_Object killflag) 234 (Lisp_Object n, Lisp_Object killflag)
235{ 235{
236 EMACS_INT pos; 236 EMACS_INT pos;
@@ -276,7 +276,7 @@ After insertion, the value of `auto-fill-function' is called if the
276 (Lisp_Object n) 276 (Lisp_Object n)
277{ 277{
278 int remove_boundary = 1; 278 int remove_boundary = 1;
279 CHECK_NUMBER (n); 279 CHECK_NATNUM (n);
280 280
281 if (!EQ (Vthis_command, current_kboard->Vlast_command)) 281 if (!EQ (Vthis_command, current_kboard->Vlast_command))
282 nonundocount = 0; 282 nonundocount = 0;
@@ -453,7 +453,7 @@ internal_self_insert (int c, EMACS_INT n)
453 && SINGLE_BYTE_CHAR_P (c)) 453 && SINGLE_BYTE_CHAR_P (c))
454 ? UNIBYTE_TO_CHAR (c) : c); 454 ? UNIBYTE_TO_CHAR (c) : c);
455 Lisp_Object string = Fmake_string (make_number (n), make_number (mc)); 455 Lisp_Object string = Fmake_string (make_number (n), make_number (mc));
456 456
457 if (spaces_to_insert) 457 if (spaces_to_insert)
458 { 458 {
459 tem = Fmake_string (make_number (spaces_to_insert), 459 tem = Fmake_string (make_number (spaces_to_insert),
@@ -474,7 +474,7 @@ internal_self_insert (int c, EMACS_INT n)
474 insert_and_inherit (strn, p - strn); 474 insert_and_inherit (strn, p - strn);
475 SAFE_FREE (); 475 SAFE_FREE ();
476 } 476 }
477 else 477 else if (n > 0)
478 insert_and_inherit (str, len); 478 insert_and_inherit (str, len);
479 479
480 if ((CHAR_TABLE_P (Vauto_fill_chars) 480 if ((CHAR_TABLE_P (Vauto_fill_chars)