[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flypell and check-comments.
From: |
Stefan Monnier |
Subject: |
Re: flypell and check-comments. |
Date: |
Sun, 11 Mar 2007 17:58:30 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) |
> + ;; Avoid requiring 'jit-lock and 'lazy-lock.
> + (defalias 'font-lock--jitify 'jit-lock-fontify-now)
> + (defalias 'font-lock--lazify 'lazy-lock-fontify-region)
> +
> + (defun font-lock-ensure-fontified (beg end)
> + "Ensure the region BEG..END is fontified, if needed."
> + (cond ((and (boundp 'jit-lock-mode) (symbol-value 'jit-lock-mode))
> + (font-lock--jitify beg end))
> + ((and (boundp 'lazy-lock-mode) (symbol-value 'lazy-lock-mode))
> + (font-lock--lazify beg end))))
> +
Actually, I'd rather you do it as
(defvar font-lock-ensure-fontified-function 'ignore)
and then in jit-lock.el set it (buffer-locally) to jit-lock-fontify-now.
Stefan
- Re: flypell and check-comments., (continued)
- Re: flypell and check-comments., Michaël Cadilhac, 2007/03/07
- Re: flypell and check-comments., Stefan Monnier, 2007/03/07
- Re: flypell and check-comments., martin rudalics, 2007/03/07
- Re: flypell and check-comments., Richard Stallman, 2007/03/10
- Re: flypell and check-comments., Michaël Cadilhac, 2007/03/11
- Re: flypell and check-comments., martin rudalics, 2007/03/11
- Re: flypell and check-comments., Michaël Cadilhac, 2007/03/11
- Re: flypell and check-comments., martin rudalics, 2007/03/11
- Re: flypell and check-comments., Michaël Cadilhac, 2007/03/12
- Re: flypell and check-comments., martin rudalics, 2007/03/12
- Re: flypell and check-comments.,
Stefan Monnier <=
- Re: flypell and check-comments., Chong Yidong, 2007/03/24
- Re: flypell and check-comments., Stefan Monnier, 2007/03/25