emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RMAIL slows


From: Stefan Monnier
Subject: Re: RMAIL slows
Date: Fri, 06 May 2005 16:50:19 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>     and then look at the *overlays* buffer, you should be able to see
>     the start/end points of those overlays, so you can at least see if
>     they're empty.  You maybe also want to check whether some/many of
>     them seem to be piled up one of top of the other.

> Here is part of what I see:

> #<overlay from 2144619 to 2144619 in RMAIL> #<overlay from 2144619 to 2144619 
> in RMAIL> #<overlay from 2144619 to 2144619 in RMAIL> #<overlay from 2144619 
> to 2144619 in RMAIL> #<overlay from 2144619 to 2144619 in RMAIL>)

> These overlap dramatically.

Not only they overlap but they're empty.
Would 2144619 happen to be at/near the end of the RMAIL buffer (or at/near
the last position of the buffer every displayed)?

Maybe we just need to make goto-address mark its overlay with the
`evaporate' propert so they disappear as soon as they beomce empty.

I doubt it's going to be sufficient, bu it may be a good start.


        Stefan


--- orig/lisp/net/goto-addr.el
+++ mod/lisp/net/goto-addr.el
@@ -165,6 +165,7 @@
                      (this-overlay (make-overlay s e)))
                (and goto-address-fontify-p
                      (overlay-put this-overlay 'face goto-address-url-face))
+                (overlay-put this-overlay 'evaporate t)
                (overlay-put this-overlay
                              'mouse-face goto-address-url-mouse-face)
                (overlay-put this-overlay
@@ -179,6 +180,7 @@
                      (this-overlay (make-overlay s e)))
                (and goto-address-fontify-p
                      (overlay-put this-overlay 'face goto-address-mail-face))
+                (overlay-put this-overlay 'evaporate t)
                 (overlay-put this-overlay 'mouse-face
                              goto-address-mail-mouse-face)
                (overlay-put this-overlay




reply via email to

[Prev in Thread] Current Thread [Next in Thread]