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
235c3cb1
Commit
235c3cb1
authored
Feb 19, 2015
by
Stefan Monnier
Browse files
* lisp/emacs-lisp/cl-macs.el (cl-struct-slot-value): Handle a nil type.
parent
a2f90498
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/emacs-lisp/cl-macs.el
lisp/emacs-lisp/cl-macs.el
+3
-3
No files found.
lisp/ChangeLog
View file @
235c3cb1
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>
...
...
lisp/emacs-lisp/cl-macs.el
View file @
235c3cb1
...
...
@@ -2978,9 +2978,9 @@ STRUCT and SLOT-NAME are symbols. INST is a structure instance."
;; 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
)
...
...
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