emacs-devel
[Top][All Lists]
Advanced

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

Re: Last steps for pretesting (font-lock-extend-region-function)


From: Stefan Monnier
Subject: Re: Last steps for pretesting (font-lock-extend-region-function)
Date: Wed, 26 Apr 2006 00:25:03 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Would this not be very inconvenient?  Somebody needing the extend-region
> functionality in f-l-d-f-r would then have to copy the entire source of
> the default function, amend the source, make the
> f-l-fontify-region-funtion buffer local, then set it.

Of course not, just use a function like

   (defun c-awk-font-lock-fontify-region (beg end &rest args)
     (apply 'font-lock-default-fontify-region
            (c-awk-beginning-of-logical-line beg)
            (c-awk-end-of-logical-line end)
            args))


-- Stefan




reply via email to

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