aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2014-05-30 19:53:29 -0700
committerGlenn Morris2014-05-30 19:53:29 -0700
commit5d335d4bd6ffae58f465a09dcb23a88d7f490e86 (patch)
tree5c30281f30132041f6ee459e51c9b0399ca04103 /src
parentb701ac49455b4f8495bc639a7af1312a0266ae05 (diff)
downloademacs-5d335d4bd6ffae58f465a09dcb23a88d7f490e86.tar.gz
emacs-5d335d4bd6ffae58f465a09dcb23a88d7f490e86.zip
* src/cmds.c (Fself_insert_command): Allow zero repeat count.
Fixes: debbugs:17649
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/cmds.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 522f1ad965a..bbc06d09f5b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12014-05-31 Glenn Morris <rgm@gnu.org>
2
3 * cmds.c (Fself_insert_command): Allow zero repeat count. (Bug#17649)
4
12014-05-30 Paul Eggert <eggert@cs.ucla.edu> 52014-05-30 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 Fix port to 32-bit AIX with xlc (Bug#17598). 7 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'. */)
280 bool remove_boundary = 1; 280 bool remove_boundary = 1;
281 CHECK_NUMBER (n); 281 CHECK_NUMBER (n);
282 282
283 if (XFASTINT (n) < 1) 283 if (XFASTINT (n) < 0)
284 error ("Nonpositive repetition argument %"pI"d", XFASTINT (n)); 284 error ("Negative repetition argument %"pI"d", XFASTINT (n));
285 285
286 if (!EQ (Vthis_command, KVAR (current_kboard, Vlast_command))) 286 if (!EQ (Vthis_command, KVAR (current_kboard, Vlast_command)))
287 nonundocount = 0; 287 nonundocount = 0;