From xemacs-m  Thu Aug 21 02:59:41 1997
Received: from bittersweet.inetarena.com (karlheg@bittersweet.inetarena.com [206.129.216.38])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id CAA02083
	for <xemacs-beta@xemacs.org>; Thu, 21 Aug 1997 02:59:15 -0500 (CDT)
Received: (from karlheg@localhost)
	by bittersweet.inetarena.com (8.8.6/8.8.6/Debian/GNU) id AAA31509;
	Thu, 21 Aug 1997 00:58:35 -0700
To: XEmacs BETA <xemacs-beta@xemacs.org>
Subject: Re: New regex syntax
References: <m0x1QRE-00006tC@turnbull.sk.tsukuba.ac.jp>
X-Face: /Q}=yl}1_v7nP)xXo5XjG8+tl@=uVu7o5u6)f]zN?+<hB!K.m9:[|*p34jVN`O;:XZXVSy>/\R>qDt(t8w!-i{(y0"`jFw^uk8inzO9wXabd'CdjUWfC\GHi:6nO*YC89#-qD>Q4r%9!V"<RYJ=7D#$";q=zML5'!=wvXk^$`6FT=5CMofQX)WUKt0p:OKl.mFOXx/D
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
From: karlheg@inetarena.com (Karl M. Hegbloom)
Date: 21 Aug 1997 00:58:33 -0700
In-Reply-To: "Stephen J. Turnbull"'s message of "Thu, 21 Aug 1997 15:09:44 +0900"
Message-ID: <87u3gkj7bq.fsf@bittersweet.inetarena.com>
Lines: 34
X-Mailer: Gnus v5.4.64/XEmacs 20.3(beta18) - "Bratislava"

>>>>> Stephen J Turnbull writes:

    Stephen>  Heaven help me if I used a `.' in a regexp I first wrote
    Stephen> in 1980.  I'm so near-sighted I'd never see back from the
    Stephen> end of the buffer to where the bug was....

 You can add things to lisp-font-lock-keywords without too much
trouble.  Here's one I've added to mine, followed by one for your
nearsightedness.

       ;;
       ;; cons cells written with dot notation get a bold dot.
       ;; '("\\s-\\(\\.\\)\\s-" (1 bold prepend))

       ;;
       ;; Bold all periods for nearsighted folks.
       '("\\(\\.\\)" (1 bold prepend))
 

 You have to find the right spot in "lisp/packages/font-lock.el" for
those, perhaps in several places.  Byte-compile and restart XEmacs for
it to have effect.

 I want to make it so that XEmacs doesn't need to be restarted for
changes to the font-lock variables to take effect.  I've not read all
of `font-lock.el' yet...  I expect that will show me how it can be
done.


-- 
mailto:karlheg@inetarena.com (Karl M. Hegbloom)
http://www.inetarena.com/~karlheg
Portland, OR  USA
Debian GNU 1.3.1  Linux 2.0.30+parport AMD K5 PR-133

