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: Fri, 08 Apr 2005 23:38:47 -0400 Message-ID: References: <61435.217.194.34.123.1112967791.squirrel@wwws.franken.de> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1113017998 29904 80.91.229.2 (9 Apr 2005 03:39:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2005 03:39:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 09 05:39:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DK6ox-0000ID-3o for ged-emacs-devel@m.gmane.org; Sat, 09 Apr 2005 05:39:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DK6Oa-00045O-7N for ged-emacs-devel@m.gmane.org; Fri, 08 Apr 2005 23:12:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DK6OF-000447-Pk for emacs-devel@gnu.org; Fri, 08 Apr 2005 23:12:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DK6OE-00043A-Eq for emacs-devel@gnu.org; Fri, 08 Apr 2005 23:12:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DK6OE-000437-C6 for emacs-devel@gnu.org; Fri, 08 Apr 2005 23:12:06 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DK6pX-0001Lo-8H for emacs-devel@gnu.org; Fri, 08 Apr 2005 23:40:19 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DK6o3-0007VC-6q; Fri, 08 Apr 2005 23:38:47 -0400 Original-To: "Stephan Stahl" In-reply-to: <61435.217.194.34.123.1112967791.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:35788 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35788 Does this make it work right? *** whitespace.el 01 Oct 2004 13:57:03 -0400 1.30 --- whitespace.el 08 Apr 2005 21:54:36 -0400 *************** *** 736,747 **** (defun whitespace-highlight-the-space (b e) "Highlight the current line, unhighlighting a previously jumped to line." (if whitespace-display-spaces-in-color ! (progn (whitespace-unhighlight-the-space) ! (add-to-list 'whitespace-highlighted-space ! (whitespace-make-overlay b e)) ! (whitespace-overlay-put (whitespace-make-overlay b e) 'face ! 'whitespace-highlight-face)))) ;; (add-hook 'pre-command-hook 'whitespace-unhighlight-the-space)) (defun whitespace-unhighlight-the-space () --- 736,746 ---- (defun whitespace-highlight-the-space (b e) "Highlight the current line, unhighlighting a previously jumped to line." (if whitespace-display-spaces-in-color ! (let (overlay) (whitespace-unhighlight-the-space) ! (setq overlay (whitespace-make-overlay b e)) ! (add-to-list 'whitespace-highlighted-space overlay) ! (whitespace-overlay-put overlay 'face 'whitespace-highlight-face)))) ;; (add-hook 'pre-command-hook 'whitespace-unhighlight-the-space)) (defun whitespace-unhighlight-the-space ()