projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
872481d
)
* cl-generic.el (cl-generic-generalizers): Clean up after braindamage
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Wed, 18 Mar 2015 14:49:55 +0000
(10:49 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Wed, 18 Mar 2015 14:49:55 +0000
(10:49 -0400)
lisp/emacs-lisp/cl-generic.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/cl-generic.el
b/lisp/emacs-lisp/cl-generic.el
index c9ca92d7c09b3886bd1d36702e1999ba21918762..fb11a3e25a1e49ba5893d70ec2d91e7d423b10dd 100644
(file)
--- a/
lisp/emacs-lisp/cl-generic.el
+++ b/
lisp/emacs-lisp/cl-generic.el
@@
-903,8
+903,8
@@
Can only be used from within the lexical body of a primary or around method."
;; take place without requiring cl-lib.
(let ((class (cl--find-class type)))
(and (cl-typep class 'cl-structure-class)
- (
when (cl--struct-class-type class
)
- (error "Can't dispatch on cl-struct %S: type is %S"
+ (
or (null (cl--struct-class-type class)
)
+
(error "Can't dispatch on cl-struct %S: type is %S"
type (cl--struct-class-type class)))
(progn (cl-assert (null (cl--struct-class-named class))) t)
(list cl--generic-struct-generalizer))))