From: Richard M. Stallman Date: Wed, 14 Sep 1994 23:24:45 +0000 (+0000) Subject: Include puresize.h. X-Git-Tag: emacs-19.34~7108 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=62010a73d81a04e4c2526b30aeba0d852ddd9f3b;p=emacs.git Include puresize.h. (menu_item_equiv_key): Use CHECK_IMPURE. --- 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;