"Assign markchars confusable properties between BEG and END."
(let* ((text (buffer-substring-no-properties beg end))
(scripts (mapcar
- '(lambda (c) (aref char-script-table c))
- (string-to-list text)))
+ (lambda (c) (aref char-script-table c))
+ (string-to-list text)))
;; `scripts-extra' is not nil is there was more than one script
(scripts-extra (delq (car scripts) scripts)))
(when scripts-extra
(add-to-list props 'markchars))
(font-lock-add-keywords nil markchars-used-keywords))
(font-lock-remove-keywords nil markchars-used-keywords))
- (font-lock-fontify-buffer))
+ (if (fboundp 'font-lock-flush)
+ (font-lock-flush) (font-lock-fontify-buffer)))
;;;###autoload
(define-globalized-minor-mode markchars-global-mode markchars-mode