From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: whitespace.el does not seem to delete its overlays Date: Sun, 10 Apr 2005 21:56:26 -0400 Message-ID: References: <61435.217.194.34.123.1112967791.squirrel@wwws.franken.de> <47420.194.95.226.87.1113033917.squirrel@wwws.franken.de> <1176.194.95.226.87.1113134685.squirrel@wwws.franken.de> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1113184896 21308 80.91.229.2 (11 Apr 2005 02:01:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2005 02:01:36 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 11 04:01:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DKoEn-0003lL-AT for ged-emacs-devel@m.gmane.org; Mon, 11 Apr 2005 04:01:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DKnoo-0005x4-MU for ged-emacs-devel@m.gmane.org; Sun, 10 Apr 2005 21:34:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DKnm8-00043e-ON for emacs-devel@gnu.org; Sun, 10 Apr 2005 21:31:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DKnm1-00040A-5n for emacs-devel@gnu.org; Sun, 10 Apr 2005 21:31:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DKnm0-0003xu-OM for emacs-devel@gnu.org; Sun, 10 Apr 2005 21:31:32 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DKoCD-00061k-Jh for emacs-devel@gnu.org; Sun, 10 Apr 2005 21:58:37 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DKoA6-0000oC-4c; Sun, 10 Apr 2005 21:56:26 -0400 Original-To: "Stephan Stahl" In-reply-to: <1176.194.95.226.87.1113134685.squirrel@wwws.franken.de> (stahl@eos.franken.de) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:35850 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35850 I was used to the old behavior showing all the "wrong" whitespaces not just the last one. Now I understand what you want it to do. Does this replacement function make it work right? (defun whitespace-highlight-the-space (b e) "Highlight the current line, unhighlighting a previously jumped to line." (if whitespace-display-spaces-in-color (let ((ol (whitespace-make-overlay b e))) (push ol whitespace-highlighted-space) (whitespace-overlay-put ol 'face 'whitespace-highlight-face))))