* WL-MK (make-wl-news): Replace "^(" by "\\\\(" to avoid font-lock
authoryoichi <yoichi>
Tue, 4 Feb 2003 19:09:23 +0000 (19:09 +0000)
committeryoichi <yoichi>
Tue, 4 Feb 2003 19:09:23 +0000 (19:09 +0000)
confusion.

ChangeLog
WL-MK

index 4135398..0dd38cd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-05  Yoichi NAKAYAMA  <yoichi@eken.phys.nagoya-u.ac.jp>
+
+       * WL-MK (make-wl-news): Replace "^(" by "\\\\(" to avoid font-lock
+       confusion.
+
 2003-01-17  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
        * WL-MK (test-wl): Added `make-wl-news'.
diff --git a/WL-MK b/WL-MK
index a3cd3a0..74303dc 100644 (file)
--- a/WL-MK
+++ b/WL-MK
            (if wl-news-lang
                (progn
                  (insert "(defconst wl-news-news-alist\n  '")
-                 (prin1 (wl-news-parse-news wl-news-lang) (current-buffer))
+                 (let ((p (point)))
+                   (prin1 (wl-news-parse-news wl-news-lang) (current-buffer))
+                   (save-excursion
+                     (replace-regexp "^(" "\\\\(" nil p (point)))) ; avoid font-lock confusion
                  (insert ")\n"))
              (insert "(defconst wl-news-news-alist nil)\n\n"))
            (let ((buffer-file-coding-system (mime-charset-to-coding-system 'x-ctext)))