[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [elpa] master 19862ff: Use font-lock-fontify-region instead of jit-l
From: |
Teemu Likonen |
Subject: |
Re: [elpa] master 19862ff: Use font-lock-fontify-region instead of jit-lock-fontify-now |
Date: |
Sun, 07 Feb 2016 12:56:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) |
Teemu Likonen [2016-02-07 12:10:55+02] wrote:
> Are there established practices for writing a compatibility code in
> situations like this? Perhaps calling a custom function
> wcheck--fontify-region and having code like below?
There are some "alias wrappers" like below in Emacs code so maybe I'll
use similar with wcheck-mode.
(eval-when-compile
(defalias 'wcheck--fontify-region
(if (fboundp 'font-lock-ensure)
'font-lock-ensure
'font-lock-fontify-region)))
signature.asc
Description: PGP signature