Skip to content

Commit e2e2cd2

Browse files
committed
jupyter-repl-mode handle yank-excluded-properties t
The value of `yank-excluded-properties' can be t, in which case it is not possible to `remq' 'field, causing an error. This fix will allow the mode to start, but does not handle the fact that the 'field property is still stripped.
1 parent 1baabc8 commit e2e2cd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter-repl.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1651,7 +1651,8 @@ Return the buffer switched to."
16511651
(setq-local yank-handled-properties
16521652
(append '((field . jupyter-repl-yank-handle-field-property))
16531653
yank-handled-properties))
1654-
(setq-local yank-excluded-properties (remq 'field yank-excluded-properties))
1654+
(unless (booleanp yank-excluded-properties) ; `yank-excluded-properties' can be set to t
1655+
(setq-local yank-excluded-properties (remq 'field yank-excluded-properties)))
16551656
;; Initialize a buffer using the major-mode correponding to the kernel's
16561657
;; language. This will be used for indentation and to capture font lock
16571658
;; properties.

0 commit comments

Comments
 (0)