Skip to content

Commit 010f5c5

Browse files
committed
Fix wrong keyword usage and usage of the result of plist-member
* jupyter-messages.el (jupyter-message-time): :data -> :date. Access value not key of the result of `plist-member`.
1 parent 78225f1 commit 010f5c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jupyter-messages.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,10 +645,10 @@ return the value of KEY in MSG."
645645
The returned time has the same form as returned by
646646
`current-time'."
647647
(let* ((header (jupyter-message-header msg))
648-
(date (plist-member header :data)))
649-
(when (stringp (car date))
650-
(setcar date (jupyter-decode-time (car date))))
651-
(car date)))
648+
(date (plist-member header :date)))
649+
(when (stringp (cadr date))
650+
(setcar (cdr date) (jupyter-decode-time (cadr date))))
651+
(cadr date)))
652652

653653
(defsubst jupyter-message-get (msg key)
654654
"Get the value in MSG's `jupyter-message-content' that corresponds to KEY."

0 commit comments

Comments
 (0)