From c5565ce5b00e4234339ef6a4bdea50d8b6b6aec7 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 7 Aug 2015 13:34:34 -0400 Subject: [PATCH] * lisp/emacs-lisp/cl-generic.el (cl--generic-struct-tag): Don't burp on non-struct vectors. --- lisp/emacs-lisp/cl-generic.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/cl-generic.el b/lisp/emacs-lisp/cl-generic.el index 619428d46bd..63cd9108410 100644 --- a/lisp/emacs-lisp/cl-generic.el +++ b/lisp/emacs-lisp/cl-generic.el @@ -986,8 +986,9 @@ The value returned is a list of elements of the form `(and (vectorp ,name) (> (length ,name) 0) (let ((tag (aref ,name 0))) - (if (eq (symbol-function tag) :quick-object-witness-check) - tag)))) + (and (symbolp tag) + (eq (symbol-function tag) :quick-object-witness-check) + tag)))) (defun cl--generic-class-parents (class) (let ((parents ()) -- 2.39.2