]> code.delx.au - gnu-emacs/commitdiff
* doc.c (Fsnarf_documentation): Signal an error if this is
authorJim Blandy <jimb@redhat.com>
Sun, 13 Sep 1992 12:20:40 +0000 (12:20 +0000)
committerJim Blandy <jimb@redhat.com>
Sun, 13 Sep 1992 12:20:40 +0000 (12:20 +0000)
called in a dumped Emacs.

src/doc.c

index 6dceb587fcb15374cf49076277bc453601281554..fbe4f834a32efb89ab258184e39d6b9341eabe78 100644 (file)
--- a/src/doc.c
+++ b/src/doc.c
@@ -215,6 +215,11 @@ when doc strings are referred to later in the dumped Emacs.")
   char *name;
   extern char *index ();
 
+#ifndef CANNOT_DUMP
+  if (NILP (Vpurify_flag))
+    error ("Snarf-documentation can only be called in an undumped Emacs");
+#endif
+
   CHECK_STRING (filename, 0);
 
 #ifndef CANNOT_DUMP