]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/cmds.c (Fself_insert_command): Allow zero repeat count.
authorGlenn Morris <rgm@gnu.org>
Sat, 31 May 2014 02:53:29 +0000 (19:53 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 31 May 2014 02:53:29 +0000 (19:53 -0700)
Fixes: debbugs:17649
src/ChangeLog
src/cmds.c

index 522f1ad965a053279d0e161e3c372fa48d6e4926..bbc06d09f5bc04021afc1696e1f4af02ff28c2b8 100644 (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).
index 7459908828d4627ea4ebb083819fc6d8d1a3e1fa..1a510afa2716c48c24620b55e37e9e1a77c010ad 100644 (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;