[Top][All Lists]

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

Conflict between font-lock and justification.

From: Cyril Bouthors
Subject: Conflict between font-lock and justification.
Date: Mon, 9 Jul 2001 16:51:17 +0200


        In my ~/.emacs, I have the following :

(global-font-lock-mode t)

(setq vm-reply-hook
       '(lambda ()
          (setq default-justification "full")


        As  you know,  the "font-lock-mode"  tells VM  to  display the
quotes in red when I reply to an email, this is quite useful.

        The full justification allow me to write lines that has always
the same length when filled (72  caracters by default) has you can see
in this email.

        I'm quite used to quote  only the minimal needed text and fill
it in order to take always less than 72 caracters: I'm doing this with
fill-paragraph (M-q) on each sentence/paragraph I quote. This was used
to  work fine with  colors (quotes  were always  red even  after being
filled) when I  didn't have to hook to justify  text. Now, every lines
in which fill-paragraph adds spaces to justify it are written in black
instead of  red, this  is quite confusing.   The lines are  coming red
back if I edit them.

        Maybe  it's a  bug in  VM, maybe  in  textmodes/fill.el, maybe
both.  I  really don't know.   Kyle Jones <kyle_jones@wonderworks.com>
told me  "I think it  is a bug  in the filling  code.  VM does  not do
anything to affect font-lock colors." so that's why I'm posting here.

        Sorry for my poor English, do you understand what I mean ?

In GNU Emacs 20.7.1 (i386-redhat-linux-gnu, X toolkit)
 of Fri Mar 16 2001 on porky.devel.redhat.com
configured using `configure  --mandir=/usr/share/man --infodir=/usr/share/info 
--prefix=/usr --libexecdir=/usr/lib --sharedstatedir=/var --with-gcc --with-pop 
--with-x-toolkit i386-redhat-linux-gnu'
Cyril Bouthors  phone:+33 1 41 66 47 06
                  fax:+33 1 41 66 47 10

reply via email to

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