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
212212strip invisible properties during fontification. In such cases,
213213the jupyter-invisible property can act as an alias to the
214214invisible 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
Original file line number Diff line number Diff 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 ))
You can’t perform that action at this time.
0 commit comments