From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#13837: 24.2; Make it possible to turn whitespace-mode only when there are no existing problems Date: Sun, 26 Jan 2014 23:12:10 +0000 Message-ID: References: <878v69fn8q.fsf@sc3d.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bea2e5483047004f0e7b83a X-Trace: ger.gmane.org 1390777990 18658 80.91.229.3 (26 Jan 2014 23:13:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Jan 2014 23:13:10 +0000 (UTC) Cc: 13837@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 27 00:13:15 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W7Yt9-0002Od-GA for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 00:13:15 +0100 Original-Received: from localhost ([::1]:56656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7Yt9-0005RW-2M for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Jan 2014 18:13:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7Yt1-0005RC-HH for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2014 18:13:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7Ysw-0002aV-Ki for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2014 18:13:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7Ysw-0002aR-7K for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2014 18:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W7Ysv-00075U-Pr for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2014 18:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Jan 2014 23:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13837 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13837-submit@debbugs.gnu.org id=B13837.139077793327185 (code B ref 13837); Sun, 26 Jan 2014 23:13:01 +0000 Original-Received: (at 13837) by debbugs.gnu.org; 26 Jan 2014 23:12:13 +0000 Original-Received: from localhost ([127.0.0.1]:37010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7Ys8-00074O-Us for submit@debbugs.gnu.org; Sun, 26 Jan 2014 18:12:13 -0500 Original-Received: from mail-qa0-f54.google.com ([209.85.216.54]:51102) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7Ys7-00074H-7x for 13837@debbugs.gnu.org; Sun, 26 Jan 2014 18:12:11 -0500 Original-Received: by mail-qa0-f54.google.com with SMTP id i13so6456145qae.13 for <13837@debbugs.gnu.org>; Sun, 26 Jan 2014 15:12:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gVepey50ESTo82OnmNpLm/leaWcYlEL8cTMZWn2FcG0=; b=n1HmjQI2PryOCJvo8kRNeYNwtSRngvzWT6ag5WHrRhMNIpxZNSOXELzrKG4PaPGRi3 y1cB3dYgf9QB62HbgkIHXm7JTkw/wTdv7sktq+rZu1U7HHEYwbjVWgdUGUtN/vQ7fdfl DktIcbknUXVqnFnKm/mDWMZwfvOmyuqX5ef3U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=gVepey50ESTo82OnmNpLm/leaWcYlEL8cTMZWn2FcG0=; b=S3jQmSXfv4sfgBXWqtCkispu8NNAHCvSCaxWfjAnyPz+QKvfJ960vK+s44GgKGlE0I l91DdFH0oPcjG2abpx6w1SPZB3emQm9yos2R38f1zxFgXXsb6jn7t6RhvNBe+fGkfsgb kH3n8kCwRy/7m3l0L9Fi0I/+2ubZIWLD01OoF/byOVWvL6WzfN+V4nX6rRjG8cd/HDaJ vJonJuCp+UWSAW3bfDp1JA1mjTZS/OZGYv8myl1r+mrNm6RNejPSFJuxXFNpNX3amPmd 6k6dGTJyV1t1XfGRBzjt+c0vTOQaOzN55NJDdyg3yRDzRpaEvXRn2TDQTps5CPOm92Cr q/eQ== X-Gm-Message-State: ALoCoQknZWxMrORAaOzdAZ2tdVHKnhaCmIG6Md56u4x+5v/Z/sC+LrQ1Yu+Aahnf09pIoBu8zO62 X-Received: by 10.224.15.76 with SMTP id j12mr38736996qaa.74.1390777930539; Sun, 26 Jan 2014 15:12:10 -0800 (PST) Original-Received: by 10.229.71.66 with HTTP; Sun, 26 Jan 2014 15:12:10 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84073 Archived-At: --047d7bea2e5483047004f0e7b83a Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 18 October 2013 00:09, Reuben Thomas wrote: > On 10 April 2013 01:50, Reuben Thomas wrote: > >> On 2 March 2013 07:49, Reuben Thomas wrote: >> >>> On 2 March 2013 03:01, Stefan Monnier wrote: >>> >>> You can =85 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: >>> >>> =3D=3D=3D 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.) --=20 http://rrt.sc3d.org --047d7bea2e5483047004f0e7b83a Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
On 1= 8 October 2013 00:09, Reuben Thomas <rrt@sc3d.org> wrote:
On 10 April 2013 01:50, Reuben Thom= as <= rrt@sc3d.org> wrote:
On 2 March 2013 07:49, Reuben Thomas <rrt@sc3d.org>= ; wrote:
On 2 March 2013 03:01, Stefan Monnier <monnier@iro.umontreal.ca> wro= te:
>>> You can =85 refactor the
>>> whitespace-report-region so as to provide whitespace-test-regi= on.
>> Here's an attempt at that:
>
> Can you please (re)send it as a patch?

Sure:

=3D=3D=3D modified file 'lisp/whitespace.el'
=

[patch snipped]

Ping?

Ping ag= ain? My patch still applies cleanly to trunk.
<= div>
Ping again! My patch still applies cleanly to trunk. Just to= repeat why this patch is worthwhile, it splits out a function whitespace-t= est-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<= /a>
--047d7bea2e5483047004f0e7b83a--