summaryrefslogtreecommitdiff
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-09-14 23:24:45 +0000
committerRichard M. Stallman <rms@gnu.org>1994-09-14 23:24:45 +0000
commit62010a73d81a04e4c2526b30aeba0d852ddd9f3b (patch)
tree33c4ac7519ae6f9c4d6596651063a047e5b814e5 /src/xmenu.c
parent62f91105e48e4375bc36282be271421d1a232f32 (diff)
downloademacs-62010a73d81a04e4c2526b30aeba0d852ddd9f3b.tar.gz
Include puresize.h.
(menu_item_equiv_key): Use CHECK_IMPURE.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c6
1 files changed, 5 insertions, 1 deletions
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;