From mboxrd@z Thu Jan 1 00:00:00 1970 From: khi at users.sourceforge.jp (khi at users.sourceforge.jp) Date: Wed, 21 Feb 2007 21:33:42 +0900 Subject: [Howm-eng 32] Re: highlighting keywords, but not within a word In-Reply-To: <447775300702201232l590b6b2eha2276d63f16d56c7@mail.gmail.com> References: <447775300702201232l590b6b2eha2276d63f16d56c7@mail.gmail.com> Message-ID: At Tue, 20 Feb 2007 13:32:28 -0700, Peter Mielke wrote: > One irritation i had with the highlighing in howm buffers is that the > keywords were being highlighted even within a word. So for example i > have one keyword "ris" and the "ris" in "highrise" was being > highlighted. So i added word breaks to the regular expression for > highlighting keywords: Thanks! I'll put your code into the next test-version in a few days. I'd like to make it an optional feature; Japanese language doesn't have explicit separators between words, and "\b" often overlooks word breaks. -- khi at users.sourceforge.jp