home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!fstop.csc.ti.com!kenb
- From: kenb@dadd.ti.com (Ken Butler)
- Subject: Highlighting in RMAIL
- Message-ID: <KENB.93Jan11165841@bigears.dadd.ti.com>
- Sender: usenet@csc.ti.com
- Nntp-Posting-Host: bigears.dadd.ti.com
- Organization: Texas Instruments, Inc., Dallas, TX
- Distribution: alt
- Date: Mon, 11 Jan 1993 22:58:41 GMT
- Lines: 45
-
- I've seen several postings on this subject, and I've tried to implement
- my own version of this, but it seems to make RMAIL annoyingly slow.
- Here's what I've done:
-
- (setq rmail-mode-hook
- '(lambda ()
- ;; Commented out 01/04/92 due to slow execution speed.
- ;; Uncomment to use MIME
- ;; (load "mime-compose")
- (load-library "lhilit.elc")
- (setq rmail-mode-hilit
- '(
- ("^[ ]*[a-zA-Z0-9 ]*[ =]*>[ ]*.*" nil hilit0)
- ("^[ ]*[Ss][UuBbJjEeCcTt]*[ ]*[:; ]+.*" nil hilit1)
- ("^[ ]*[Rr][Ee][Ff]*[ ]*[:; ].*" nil hilit1)
- ("^Return-Path:[ ]*.*" nil hilit9)
- ("^Date:[ ]*.*" nil hilit9)
- ("^From:[ ]*.*[!@%].*" nil hilit9)
- ("^To:[ ]*.*[!@%].*" nil hilit9)
- ("^C[Cc]:[ ]*.*[!@%].*" nil hilit9)
- ))
- (hilit::mode-list-update "RMAIL" rmail-mode-hilit)
- ))
- (setq rmail-show-message-hook
- '(lambda ()
- (hilit::hilit-buffer)
- ))
-
- What happens when I use this code is that everytime the displayed
- message buffer is modified (when I move between messages, start or stop
- the summary buffer, etc.), there is quite a bit of lag time before the
- buffer is finished updating.
-
- Is there something that I've done that is making it slower than it needs
- to be? If so, how can I correct my mistake?
-
- Thanks.
- --
-
- *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
- Kenneth M. Butler (214) 917-1759 (office)
- Texas Instruments (214) 917-7966 (FAX)
- P.O. Box 650311 MS 3937 kenb@dadd.ti.com
- Dallas, TX 75265
- *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-