unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* whitespace.el does not seem to delete its overlays
@ 2005-04-08 13:43 Stephan Stahl
  2005-04-08 14:46 ` Stefan Monnier
  2005-04-09  3:38 ` Richard Stallman
  0 siblings, 2 replies; 9+ messages in thread
From: Stephan Stahl @ 2005-04-08 13:43 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1274 bytes --]

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

[-- Attachment #2: test.c --]
[-- Type: application/octet-stream, Size: 13 bytes --]

int 	foo=1;

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-04-11  6:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 13:43 whitespace.el does not seem to delete its overlays Stephan Stahl
2005-04-08 14:46 ` Stefan Monnier
2005-04-08 22:57   ` Stephan Stahl
2005-04-09  3:38 ` Richard Stallman
2005-04-09  8:05   ` Stephan Stahl
2005-04-10  1:55     ` Richard Stallman
2005-04-10 12:04       ` Stephan Stahl
2005-04-11  1:56         ` Richard Stallman
2005-04-11  6:13           ` Stephan Stahl

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).