From 62010a73d81a04e4c2526b30aeba0d852ddd9f3b Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 14 Sep 1994 23:24:45 +0000 Subject: [PATCH] Include puresize.h. (menu_item_equiv_key): Use CHECK_IMPURE. --- src/xmenu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/xmenu.c b/src/xmenu.c index 1adf12fbcc0..3cb4ae8dc2b 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -40,6 +40,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "window.h" #include "keyboard.h" #include "blockinput.h" +#include "puresize.h" /* This may include sys/types.h, and that somehow loses if this is not done before the other system files. */ @@ -360,7 +361,10 @@ menu_item_equiv_key (item_string, item1, descrip_ptr) /* Cache the data we just got in a sublist of the menu binding. */ if (NILP (cachelist)) - XCONS (item1)->cdr = Fcons (Fcons (savedkey, descrip), def); + { + CHECK_IMPURE (item1); + XCONS (item1)->cdr = Fcons (Fcons (savedkey, descrip), def); + } else if (changed) { XCONS (cachelist)->car = savedkey; -- 2.39.5