changeset 91670:a06d59678f5a

(Fkey_description): Move side effect outside of macro call.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 08 Feb 2008 16:23:19 +0000
parents 5cc13165f746
children 7d8392863f85
files src/ChangeLog src/keymap.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Feb 08 16:22:36 2008 +0000
+++ b/src/ChangeLog	Fri Feb 08 16:23:19 2008 +0000
@@ -1,5 +1,7 @@
 2008-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* keymap.c (Fkey_description): Move side effect outside of macro call.
+
 	* keyboard.c (add_command_key, parse_menu_item): Use ASET.
 
 	* fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
--- a/src/keymap.c	Fri Feb 08 16:22:36 2008 +0000
+++ b/src/keymap.c	Fri Feb 08 16:23:19 2008 +0000
@@ -2304,7 +2304,7 @@
 	}
       else if (VECTORP (list))
 	{
-	  key = AREF (list, i++);
+	  key = AREF (list, i); i++;
 	}
       else
 	{