* emacs-lisp/cl-lib.el (cl--old-struct-type-of): Accept `[]'

This commit is contained in:
Stefan Monnier 2017-07-18 12:01:27 -04:00
parent a20f4f02c6
commit fa72de6cf7

View file

@ -631,7 +631,7 @@ If ALIST is non-nil, the new pairs are prepended to it."
(require 'cl-seq))
(defun cl--old-struct-type-of (orig-fun object)
(or (and (vectorp object)
(or (and (vectorp object) (> (length object) 0)
(let ((tag (aref object 0)))
(when (and (symbolp tag)
(string-prefix-p "cl-struct-" (symbol-name tag)))