emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: jit-lock refontifies too much


From: martin rudalics
Subject: Re: jit-lock refontifies too much
Date: Thu, 15 Sep 2005 07:31:22 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> How 'bout the patch below instead?
>
>
>         Stefan
>
>
> --- orig/lisp/font-lock.el
> +++ mod/lisp/font-lock.el
> @@ -1058,7 +1058,8 @@
>                                       'font-lock-multiline nil)
>                    (point-max)))
>      (goto-char end)
> -    (setq end (line-beginning-position 2))
> +          ;; Round up to a whole line.
> +          (unless (bolp) (setq end (line-beginning-position 2)))
>      ;; Now do the fontification.
>      (font-lock-unfontify-region beg end)
>      (when font-lock-syntactic-keywords
>
>

... splendide





reply via email to

[Prev in Thread] Current Thread [Next in Thread]