From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephan Stahl" Newsgroups: gmane.emacs.devel Subject: whitespace.el does not seem to delete its overlays Date: Fri, 8 Apr 2005 15:43:11 +0200 (CEST) Message-ID: <61435.217.194.34.123.1112967791.squirrel@wwws.franken.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed;charset=iso-8859-1; boundary="----=_20050408154311_53573" X-Trace: sea.gmane.org 1112968644 15032 80.91.229.2 (8 Apr 2005 13:57:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2005 13:57:24 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 08 15:57:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJtw9-0008U8-3E for ged-emacs-devel@m.gmane.org; Fri, 08 Apr 2005 15:54:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJtUv-0004uh-Ra for ged-emacs-devel@m.gmane.org; Fri, 08 Apr 2005 09:26:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DJtSq-0003Lc-Ns for emacs-devel@gnu.org; Fri, 08 Apr 2005 09:24:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJtSi-0003Ho-4a for emacs-devel@gnu.org; Fri, 08 Apr 2005 09:23:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJtSb-0003AB-Ae for emacs-devel@gnu.org; Fri, 08 Apr 2005 09:23:45 -0400 Original-Received: from [193.175.24.27] (helo=ilsa.franken.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DJtmK-0007bh-D0 for emacs-devel@gnu.org; Fri, 08 Apr 2005 09:44:08 -0400 Original-Received: from wwws.franken.de (mail-n.franken.de [193.175.24.27]) by ilsa.franken.de (Postfix) with SMTP id 72074245CC for ; Fri, 8 Apr 2005 15:43:11 +0200 (CEST) Original-Received: from 217.194.34.123 (SquirrelMail authenticated user eos) by wwws.franken.de with HTTP; Fri, 8 Apr 2005 15:43:11 +0200 (CEST) Original-To: emacs-devel@gnu.org User-Agent: SquirrelMail/1.4.0 X-Priority: 3 Importance: Normal 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:35760 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35760 ------=_20050408154311_53573 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hi. whitespace-buffer does not delete its overlays but adds more and more onto the buffer. try this to reproduce: 1.: emacs -Q C-x C-f test.c (attached, just contains int foo=1; seperated by a space followed by a tab) 2.: M-x whitespace-buffer put point on the highlighted overlay and press C-u C-x = this shows character: SPC (040, 32, 0x20, U+0020) charset: ascii (ASCII (ISO646 IRV)) code point: 32 syntax: which means: whitespace category: a:ASCII l:Latin buffer code: 0x20 file code: 0x20 (encoded by coding system undecided-dos) display: by this font (glyph code) -outline-Courier New-normal-r-normal-normal-13-97-96-96-c-90-iso8859-1 (0x20) There are 2 overlays here: From 14 to 15 face [whitespace-highlight-face] From 14 to 15 There are text properties here: fontified t repeat 2. to see that now there are 3 overlays repeat 2. to see that now there are 4 overlays ... It seems whitespace.el does try to delete some overlay by calling the function whitespace-unhighlight-the-space but this is not enough or does not work. The same thing does happen when global-whitespace-mode is enabled because then whitespace-buffer is called from a timer. -- Stephan Stahl ------=_20050408154311_53573 Content-Type: application/octet-stream; name="test.c" Content-Transfer-Encoding: base64 Content-Disposition: ATTACHMENT; filename="test.c" aW50IAlmb289MTsNCg== ------=_20050408154311_53573 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel ------=_20050408154311_53573--