Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b2615c75
Commit
b2615c75
authored
Sep 11, 2015
by
Stefan Monnier
Browse files
* lisp/emacs-lisp/eieio-core.el (class-p): Accept class objects
parent
3928ef2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lisp/emacs-lisp/eieio-core.el
lisp/emacs-lisp/eieio-core.el
+4
-4
No files found.
lisp/emacs-lisp/eieio-core.el
View file @
b2615c75
...
...
@@ -135,10 +135,10 @@ Currently under control of this var:
(
or
(
cl--find-class
class
)
class
)
class
))
(
defun
class-p
(
class
)
"Return non-nil if
CLASS
is a valid class vector.
CLASS is a symbol."
;FIXME: Is it a vector or
a symbol
?
(
and
(
symbolp
class
)
(
eieio--class-p
(
cl--find-class
class
)
)))
(
defun
class-p
(
x
)
"Return non-nil if
X
is a valid class vector.
X can also be is
a symbol
."
(
eieio--class-p
(
if
(
symbolp
x
)
(
cl--find-class
x
)
x
)))
(
defun
eieio--class-print-name
(
class
)
"Return a printed representation of CLASS."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment