2015-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
+ * emacs-lisp/cl-macs.el (cl-struct-slot-value): Handle a nil type.
+
* emacs-lisp/smie.el (smie-prec2->grammar): Fix corner case problem.
2015-02-18 Kelly Dean <kelly@prtime.org>
;; We could use `elt', but since the byte compiler will resolve the
;; branch below at compile time, it's more efficient to use the
;; type-specific accessor.
- (if (eq (cl-struct-sequence-type ,struct-type) 'vector)
- (aref ,inst (cl-struct-slot-offset ,struct-type ,slot-name))
- (nth (cl-struct-slot-offset ,struct-type ,slot-name) ,inst))))))
+ (if (eq (cl-struct-sequence-type ,struct-type) 'list)
+ (nth (cl-struct-slot-offset ,struct-type ,slot-name) ,inst)
+ (aref ,inst (cl-struct-slot-offset ,struct-type ,slot-name)))))))
(run-hooks 'cl-macs-load-hook)