Skip to content

Commit 1f45c93

Browse files
committed
debug
1 parent 6d12ad5 commit 1f45c93

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

jupyter-mime.el

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -212,16 +212,16 @@ a value of t. This is mainly for modes like `org-mode' which
212212
strip invisible properties during fontification. In such cases,
213213
the jupyter-invisible property can act as an alias to the
214214
invisible property by adding it to `char-property-alias-alist'."
215-
(cl-letf (((symbol-function #'delete-region)
216-
(lambda (beg end)
217-
(add-text-properties beg end '(invisible t jupyter-invisible t))))
218-
(ansi-color-apply-face-function
219-
(lambda (beg end face)
220-
(when face
221-
(setq face (list face))
222-
(font-lock-prepend-text-property beg end 'face face)
223-
(put-text-property beg end (or face-prop 'font-lock-face) face)))))
224-
(ansi-color-apply-on-region begin end)))
215+
(let ((ansi-color-apply-face-function
216+
(lambda (beg end face)
217+
(when face
218+
(setq face (list face))
219+
(font-lock-prepend-text-property beg end 'face face)
220+
(put-text-property beg end (or face-prop 'font-lock-face) face)))))
221+
(cl-letf (((symbol-function #'delete-region)
222+
(lambda (beg end)
223+
(add-text-properties beg end '(invisible t jupyter-invisible t)))))
224+
(ansi-color-apply-on-region begin end))))
225225

226226
;;; `jupyter-insert' method
227227

test/jupyter-test.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2605,7 +2605,8 @@ publish_display_data({'text/plain': 'AB\x1b[43mCD\x1b[0mEF'});"
26052605
(let ((test-fun
26062606
(lambda (face-pos invisible-pos)
26072607
(font-lock-ensure)
2608-
(jupyter-test-text-has-property 'invisible t invisible-pos)
2608+
(message "TEXT %S TEXT" (buffer-substring (point-min) (point-max)))
2609+
(jupyter-test-text-has-property 'jupyter-invisible t invisible-pos)
26092610
(should (listp (get-text-property face-pos 'face)))
26102611
(should (get-text-property face-pos 'jupyter-face))
26112612
(should (memq (caar (get-text-property face-pos 'face))

0 commit comments

Comments
 (0)