emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 r117177: * src/cmds.c (Fself_insert_command): All


From: Glenn Morris
Subject: [Emacs-diffs] emacs-24 r117177: * src/cmds.c (Fself_insert_command): Allow zero repeat count.
Date: Sat, 31 May 2014 02:53:36 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117177
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/17649
committer: Glenn Morris <address@hidden>
branch nick: emacs-24
timestamp: Fri 2014-05-30 19:53:29 -0700
message:
  * src/cmds.c (Fself_insert_command): Allow zero repeat count.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/cmds.c                     cmds.c-20091113204419-o5vbwnq5f7feedwu-214
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-05-30 20:19:29 +0000
+++ b/src/ChangeLog     2014-05-31 02:53:29 +0000
@@ -1,3 +1,7 @@
+2014-05-31  Glenn Morris  <address@hidden>
+
+       * cmds.c (Fself_insert_command): Allow zero repeat count.  (Bug#17649)
+
 2014-05-30  Paul Eggert  <address@hidden>
 
        Fix port to 32-bit AIX with xlc (Bug#17598).

=== modified file 'src/cmds.c'
--- a/src/cmds.c        2014-03-04 03:14:11 +0000
+++ b/src/cmds.c        2014-05-31 02:53:29 +0000
@@ -280,8 +280,8 @@
   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;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]