hilit19: faster unhighlighting

hilit19: faster unhighlighting

Post by William Michael Canfie » Wed, 19 Feb 1997 04:00:00



Hi:

Don't know if anyone has already done this, but I see it's not in
Stig's latest ftp-able thing.  For me, it often works in 1/3 to 1/6
the time of the hilit19 function, by eliminating the call to
        (overlays-at start)
within a while loop.

;; A faster unhighlighting function for hilit19
(defun hilit-unhighlight-region (start end &optional quietly)
  "Unhighlights the region from START to END, optionally in a QUIET way"
  (interactive "r")
  (or quietly hilit-quietly (message "Unhighlighting"))
  (let ((list (overlay-lists)))
        (mapcar (function (lambda (ovr)
                            (and (overlay-get ovr 'hilit)
                                 (>= (overlay-start ovr) start)
                                 (<= (overlay-end ovr) end)
                                 (delete-overlay ovr))))
                (append (car list) (cdr list))))
  (or quietly hilit-quietly (message "Done unhighlighting")))

Bill

 
 
 

1. Faster, faster ?

I just downloaded, compiled, and installed emacs from CVS today, and
have noticed a definite speed improvement from previous versions I've
used, which have been installed from the then-latest Mandrake rpms,
and kept current.  It starts up faster, grabs newsgroup articles
faster, etc.

I'm not complaining, mind, just curious -- anybody have an idea as to
why?  
--
------------------------------------------------------------
http://islamthereligionofpeace.blogspot.com

2. A570 and a Hard Drive!!

3. highlight-region and unhighlight-region

4. SP4 madness!

5. A bit faster startup?

6. problem with fonts

7. How to get faster start of Xemacs ?

8. Palo Alto, CA -- Computational Linguist; C++/Java/perl/Prolog/Lisp

9. Getting xemacs to start faster

10. XEmacs is great; kbd macros s/b faster

11. Use this version of line-col.el with XEmacs; it works and is faster.

12. faster emacs

13. Navigation Hotkeys - anything faster?