Skip to content

Commit

Permalink
Fix wrong keyword usage and usage of the result of plist-member
Browse files Browse the repository at this point in the history
* jupyter-messages.el (jupyter-message-time): :data -> :date. Access
value not key of the result of `plist-member`.
  • Loading branch information
nnicandro committed Apr 20, 2024
1 parent 78225f1 commit 010f5c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jupyter-messages.el
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,10 @@ return the value of KEY in MSG."
The returned time has the same form as returned by
`current-time'."
(let* ((header (jupyter-message-header msg))
(date (plist-member header :data)))
(when (stringp (car date))
(setcar date (jupyter-decode-time (car date))))
(car date)))
(date (plist-member header :date)))
(when (stringp (cadr date))
(setcar (cdr date) (jupyter-decode-time (cadr date))))
(cadr date)))

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

0 comments on commit 010f5c5

Please sign in to comment.