File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -212,16 +212,16 @@ a value of t. This is mainly for modes like `org-mode' which
212
212
strip invisible properties during fontification. In such cases,
213
213
the jupyter-invisible property can act as an alias to the
214
214
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) )))
225
225
226
226
; ;; `jupyter-insert' method
227
227
Original file line number Diff line number Diff line change @@ -2605,7 +2605,8 @@ publish_display_data({'text/plain': 'AB\x1b[43mCD\x1b[0mEF'});"
2605
2605
(let ((test-fun
2606
2606
(lambda (face-pos invisible-pos )
2607
2607
(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)
2609
2610
(should (listp (get-text-property face-pos 'face )))
2610
2611
(should (get-text-property face-pos 'jupyter-face ))
2611
2612
(should (memq (caar (get-text-property face-pos 'face ))
You can’t perform that action at this time.
0 commit comments