Skip to content

Commit 32a6907

Browse files
authored
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 7d20c0a commit 32a6907

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
@@ -1698,7 +1698,8 @@ Return the buffer switched to."
16981698
(setq-local yank-handled-properties
16991699
(append '((field . jupyter-repl-yank-handle-field-property))
17001700
yank-handled-properties))
1701-
(setq-local yank-excluded-properties (remq 'field yank-excluded-properties))
1701+
(unless (booleanp yank-excluded-properties) ; `yank-excluded-properties' can be set to t
1702+
(setq-local yank-excluded-properties (remq 'field yank-excluded-properties)))
17021703
;; Initialize a buffer using the major-mode correponding to the kernel's
17031704
;; language. This will be used for indentation and to capture font lock
17041705
;; properties.

0 commit comments

Comments
 (0)