From: Glenn Morris Date: Sat, 31 May 2014 02:53:29 +0000 (-0700) Subject: * src/cmds.c (Fself_insert_command): Allow zero repeat count. X-Git-Tag: emacs-24.3.92~141 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5d335d4bd6ffae58f465a09dcb23a88d7f490e86;p=emacs.git * src/cmds.c (Fself_insert_command): Allow zero repeat count. Fixes: debbugs:17649 --- diff --git a/src/ChangeLog b/src/ChangeLog index 522f1ad965a..bbc06d09f5b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2014-05-31 Glenn Morris + + * cmds.c (Fself_insert_command): Allow zero repeat count. (Bug#17649) + 2014-05-30 Paul Eggert Fix port to 32-bit AIX with xlc (Bug#17598). diff --git a/src/cmds.c b/src/cmds.c index 7459908828d..1a510afa271 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -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;