[Top][All Lists]

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

Re: [elpa] master 2ae5b9c 3/7: swiper.el (swiper-font-lock-ensure): Igno

From: Oleh Krehel
Subject: Re: [elpa] master 2ae5b9c 3/7: swiper.el (swiper-font-lock-ensure): Ignore gnus modes
Date: Thu, 26 Mar 2015 14:52:57 +0100

On Thu, Mar 26, 2015 at 2:43 PM, Stefan Monnier
<address@hidden> wrote:
>>    "Ensure the entired buffer is highlighted."
>>    (unless (or (derived-mode-p 'magit-mode)
>>                (memq major-mode '(package-menu-mode
>> +                                 gnus-summary-mode
>> +                                 gnus-article-mode
>> +                                 gnus-group-mode
>>                                   emms-playlist-mode erc-mode)))
>>      (if (fboundp 'font-lock-ensure)
>>          (font-lock-ensure)
> I think you'll want to list many more modes here.  Or rather, I think
> what you really want to test is whether font-lock is in use on
> this buffer.
> There are various ways to test it, such as testing the value of
> font-lock-fontified or font-lock-mode, or calling font-lock-specified-p,
> and there might be others.

But what is the cause of discoloration when I call `font-lock-ensure`?

For instance, in `gnus-group-mode`, `font-lock-mode` is t, but
`font-lock-fontified` is nil, and the color is erased when I call


reply via email to

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