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: Fri, 1 Mar 2013 22:02:00 +0000 Message-ID: References: <878v69fn8q.fsf@sc3d.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1362175385 9255 80.91.229.3 (1 Mar 2013 22:03:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Mar 2013 22:03:05 +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 Fri Mar 01 23:03:26 2013 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 1UBY32-0000GG-EY for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Mar 2013 23:03:24 +0100 Original-Received: from localhost ([::1]:60897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBY2h-0002gj-Bn for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Mar 2013 17:03:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBY2e-0002fo-6j for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2013 17:03:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBY2c-00011L-3u for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2013 17:03:00 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBY2c-00011A-1w for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2013 17:02:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UBY4b-0005tL-Jx for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2013 17:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Mar 2013 22:05: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.136217545022573 (code B ref 13837); Fri, 01 Mar 2013 22:05:01 +0000 Original-Received: (at 13837) by debbugs.gnu.org; 1 Mar 2013 22:04:10 +0000 Original-Received: from localhost ([127.0.0.1]:58687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UBY3m-0005s1-84 for submit@debbugs.gnu.org; Fri, 01 Mar 2013 17:04:10 -0500 Original-Received: from exprod7og103.obsmtp.com ([64.18.2.159]:56288) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1UBY3j-0005rs-1c for 13837@debbugs.gnu.org; Fri, 01 Mar 2013 17:04:08 -0500 Original-Received: from mail-ee0-f70.google.com ([74.125.83.70]) (using TLSv1) by exprod7ob103.postini.com ([64.18.6.12]) with SMTP ID DSNKUTElWSeSCgu5NslKsjs13JIAi3JWFk9r@postini.com; Fri, 01 Mar 2013 14:02:03 PST Original-Received: by mail-ee0-f70.google.com with SMTP id l10so4263766eei.5 for <13837@debbugs.gnu.org>; Fri, 01 Mar 2013 14:02:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=p+glFYVn9+uefjV3jLe3kQ+98yHsMDGgUlAsK68UjQs=; b=agmdWTKFii2PI8jWnGWm6PplAdn1Beg8PAPqTQ69MO97TLDGyQfMRW09Z0zcq7ka8+ urMIn5O7+TihY6cF2xpXnXARcm+Xt2YtV66J5SqIqycAxTdiyYbwTtAQ4A97rHXovE8h PW7vrTz+kYap5qnmLlR0UOMWauVieVvW82S83liMoiTvSjXfeIukNoEvflKi4cwYmNZp Rc6yiKcjBSbyjlYCcCDtJjvcVuW1/qx2WX/SaE8+7SHDtDKr4DKQR/s+D6Pp1+YPISTz Jaei3boQooHykSK26AIPvkFqF+svTPXMzyhRj4FJpU6QSHNWnqtoCxJJkUek3dOWISRr KsSA== X-Received: by 10.112.13.162 with SMTP id i2mr1300646lbc.105.1362175320470; Fri, 01 Mar 2013 14:02:00 -0800 (PST) X-Received: by 10.112.13.162 with SMTP id i2mr1300644lbc.105.1362175320325; Fri, 01 Mar 2013 14:02:00 -0800 (PST) Original-Received: by 10.152.5.40 with HTTP; Fri, 1 Mar 2013 14:02:00 -0800 (PST) In-Reply-To: X-Gm-Message-State: ALoCoQmkmpSmmpRYGRHTOGO1QT98FdE95YUu1mRKSU8AWZp5SA4qmM0EMnE2vtjjWsxbR+o/ujfLfj1bGs7ILA1c8Jd4IJayZaPdPUdyhI+rp4kSu3QLHXZT9mm3NEJ3HT0uIfXua2+8qmmr2FpLoASl5WDQBD0jk0u5rH4b0Aer5zXCge5qqIk= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:72004 Archived-At: On 28 February 2013 16:32, Stefan Monnier wrote: >> (add-function :after-while whitespace-enable-predicate >> #'whitespace-check-cleanliness) > > Sorry, this should be > > (add-function :after-while (default-value 'whitespace-enable-predicate) > #'whitespace-check-cleanliness) Emacs 24 doesn't seem to have add-function; copying nadvice.el into my site-lisp directory seems to take me down the gv-ref rabbit hole (in the sense that I tried installing it into Emacs 24 before and found I was just copying more and more stuff from master). Do you have an old-fashioned alternative? (Sorry, I only tried advice for the first time, while trying to do the above hack more neatly.) -- http://rrt.sc3d.org