]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/doc.c (Fsnarf_documentation): Fix bug#48019
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 29 Apr 2021 22:11:04 +0000 (18:11 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 29 Apr 2021 22:11:04 +0000 (18:11 -0400)
Don't presume that `custom-delayed-init-variables` holds a list.

src/doc.c

index 01f4368e3b6b4abd0d9a910140d936138f765693..e179a126184071704573246a93da0e91cc2ffc0d 100644 (file)
--- a/src/doc.c
+++ b/src/doc.c
@@ -550,7 +550,7 @@ the same file name is found in the `doc-directory'.  */)
   Lisp_Object delayed_init =
     find_symbol_value (intern ("custom-delayed-init-variables"));
 
-  if (EQ (delayed_init, Qunbound)) delayed_init = Qnil;
+  if (!CONSP (delayed_init)) delayed_init = Qnil;
 
   CHECK_STRING (filename);