MM> I've started using font-lock yesterday;
MM> and now bbdb starts behaving funnily, when mail reading, it asks
MM>  (for every entry!)

MM>     replace "Martin B. Maechler"  by   "Martin B. Maechler" ?

MM> (both are the same).

The problem is that bbdb is getting a fontified version of the name from
the mail (or news) agent.  To bbdb this new name does not look like the old
name, so it asks about replacing or adding an AKA.

We need something that will translate
        #("Ted" 0 3 (face bold)) #("Labuza" 0 6 (face bold))
into
        ("Ted" "Labuza")
automatically.  

I think this might actually need to go in the function
mail-extract-address-components.  Unfortunately, I think there are several
versions floating around.  I think a kludgy fix would be to add a single
line which ensures that font-lock-mode is off in the extraction-buffer used
by m-e-a-c.  Here is a context diff for the version 1.8 of mail-extr (sent
with emacs 19.29).

~/emacs-19.29/lisp> diff -c mail-extr.el~ mail-extr.el
*** mail-extr.el~       Mon May 29 03:06:56 1995
--- mail-extr.el        Thu Jul 20 08:59:20 1995
***************
*** 760,765 ****
--- 760,767 ----
             (insert-buffer-substring address))
            (t
             (error "Illegal address: %s" address)))
+       ;Turn off font-lock in this buffer: Jack Vinson 20 July 1995
+       (font-lock-unfontify-region (point-min) (point-max)) 
        
        ;; stolen from rfc822.el
        ;; Unfold multiple lines.

Jack Vinson - [EMAIL PROTECTED] - Captain Jack - Purple Puddle Eater
   __o __o     __o     __o __o     __o     __o __o     __o     __o __o  
 _`\<_`\<_   _`\<_   _`\<_`\<_   _`\<_   _`\<_`\<_   _`\<_   _`\<_`\<_  
(_)/---/(_) (_)/(_) (_)/---/(_) (_)/(_) (_)/---/(_) (_)/(_) (_)/---/(_) 
Sunderland, MA                            http://www.cis.upenn.edu/~vinson/




Reply via email to