Subject: bug#13837: 24.2; Make it possible to turn whitespace-mode only when there are no existing problems

From: Reuben Thomas <[email-masked]>
Date: Sun, 26 Jan 2014 23:12:10 +0000

On 18 October 2013 00:09, Reuben Thomas <[email-masked]> wrote:

> On 10 April 2013 01:50, Reuben Thomas <[email-masked]> wrote:
>
>> On 2 March 2013 07:49, Reuben Thomas <[email-masked]> wrote:
>>
>>> On 2 March 2013 03:01, Stefan Monnier <[email-masked]> wrote:
>>> >>> You can … refactor the
>>> >>> whitespace-report-region so as to provide whitespace-test-region.
>>> >> Here's an attempt at that:
>>> >
>>> > Can you please (re)send it as a patch?
>>>
>>> Sure:
>>>
>>> === modified file 'lisp/whitespace.el'
>>>
>>
>> [patch snipped]
>>
>> Ping?
>>
>
> Ping again? My patch still applies cleanly to trunk.
>

Ping again! My patch still applies cleanly to trunk. Just to repeat why
this patch is worthwhile, it splits out a function whitespace-test-region
which can usefully be used to advise whitespace-enable-predicate. (For use
with 24.3, I simply redefine whitespace-enable-predicate instead.)

-- 
http://rrt.sc3d.org