]> git.eshelyaron.com Git - emacs.git/commitdiff
* cmds.c (Fself_insert_command): Respect the width of EMACS_INT
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 10 Feb 2014 05:41:42 +0000 (09:41 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 10 Feb 2014 05:41:42 +0000 (09:41 +0400)
and avoid warning.

src/ChangeLog
src/cmds.c

index 399138a1d806480c9b93f3f85c3d155f231a911e..a0b7c449b953ea32d47803fe0e2ebc574cbdec35 100644 (file)
@@ -1,3 +1,8 @@
+2014-02-10  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * cmds.c (Fself_insert_command): Respect the width of EMACS_INT
+       and avoid warning.
+
 2014-02-09  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * cmds.c (Fself_insert_command): Output a clearer error message on
index 29c574abb14d982a53b0fa2752002bda96506279..03ce54c8ee4ff7842968a69b0dca81201ad84114 100644 (file)
@@ -280,7 +280,7 @@ At the end, it runs `post-self-insert-hook'.  */)
   CHECK_NUMBER (n);
 
   if (XFASTINT (n) < 1)
-    error ("Repetition argument is %d, but must be higher than 0.",
+    error ("Repetition argument is %"pI"d, but must be higher than 0.",
           XFASTINT (n));
 
   if (!EQ (Vthis_command, KVAR (current_kboard, Vlast_command)))