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
70ac815e
Commit
70ac815e
authored
Mar 18, 2024
by
Stefan Monnier
Browse files
* lisp/emacs-lisp/cl-preloaded.el (user-ptr): Add predicate
parent
be08372b
Pipeline
#28544
failed with stages
in 46 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lisp/emacs-lisp/cl-preloaded.el
lisp/emacs-lisp/cl-preloaded.el
+5
-2
No files found.
lisp/emacs-lisp/cl-preloaded.el
View file @
70ac815e
...
...
@@ -328,7 +328,9 @@
(
:predicate
(
setq
predicate
val
))
(
_
(
error
"Unknown keyword arg: %S"
kw
)))))
`
(
progn
,
(
if
predicate
`
(
put
',name
'cl-deftype-satisfies
#'
,
predicate
))
,
(
if
predicate
`
(
put
',name
'cl-deftype-satisfies
#'
,
predicate
)
;; (message "Missing predicate for: %S" name)
nil
)
(
put
',name
'cl--class
(
built-in-class--make
',name
,
docstring
(
mapcar
(
lambda
(
type
)
...
...
@@ -352,7 +354,8 @@
(
cl--define-built-in-type
tree-sitter-compiled-query
atom
)
(
cl--define-built-in-type
tree-sitter-node
atom
)
(
cl--define-built-in-type
tree-sitter-parser
atom
)
(
cl--define-built-in-type
user-ptr
atom
)
(
cl--define-built-in-type
user-ptr
atom
nil
:predicate
user-ptrp
)
;; FIXME: Shouldn't it be called `user-ptr-p'?
(
cl--define-built-in-type
font-object
atom
)
(
cl--define-built-in-type
font-entity
atom
)
(
cl--define-built-in-type
font-spec
atom
)
...
...
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