1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-28 01:00:52 -07:00

* src/cmds.c (Fself_insert_command): Allow zero repeat count.

Fixes: debbugs:17649
This commit is contained in:
Glenn Morris 2014-05-30 19:53:29 -07:00
parent b701ac4945
commit 5d335d4bd6
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2014-05-31 Glenn Morris <rgm@gnu.org>
* cmds.c (Fself_insert_command): Allow zero repeat count. (Bug#17649)
2014-05-30 Paul Eggert <eggert@cs.ucla.edu>
Fix port to 32-bit AIX with xlc (Bug#17598).

View file

@ -280,8 +280,8 @@ At the end, it runs `post-self-insert-hook'. */)
bool remove_boundary = 1;
CHECK_NUMBER (n);
if (XFASTINT (n) < 1)
error ("Nonpositive repetition argument %"pI"d", XFASTINT (n));
if (XFASTINT (n) < 0)
error ("Negative repetition argument %"pI"d", XFASTINT (n));
if (!EQ (Vthis_command, KVAR (current_kboard, Vlast_command)))
nonundocount = 0;